[2025-03-30 00:00:05] Production.INFO: next invoice date [2025-03-30 00:00:05] Production.INFO: 2025-04-30 [2025-03-30 00:00:05] Production.INFO: getdaysdiff [2025-03-30 00:00:05] Production.INFO: +31 [2025-03-30 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2025-03-30 00:00:05,0,0,,,0) [2025-03-30 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:00:06 [end_date_ymd] => 2025-03-30 00:00:06 [RateCDR] => 1 ) [2025-03-30 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` >= '2025-03-29 21:00:06' and `end` < '2025-03-30 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-03-30 00:00:20] Production.INFO: count ==1853 [2025-03-30 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-29 21:00:06 - End Time 2025-03-30 00:00:06 [2025-03-30 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792363', 'tblTempUsageDetail_20' ) start [2025-03-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792363', 'tblTempUsageDetail_20' ) end [2025-03-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792363', 'tblTempVendorCDR_20' ) start [2025-03-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792363', 'tblTempVendorCDR_20' ) end [2025-03-30 00:00:20] Production.INFO: ProcessCDR(1,14792363,1,1,2) [2025-03-30 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792363', 'tblTempUsageDetail_20' ) start [2025-03-30 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792363', 'tblTempUsageDetail_20' ) end [2025-03-30 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:00:25] Production.INFO: ==28976== Releasing lock... [2025-03-30 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:00:25] Production.INFO: 43 MB #Memory Used# [2025-03-30 00:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:01:07 [end_date_ymd] => 2025-03-30 00:01:07 [RateCDR] => 1 ) [2025-03-30 00:01: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-03-29 21:01:07' and `end` < '2025-03-30 00:01: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-03-30 00:01:20] Production.INFO: count ==1191 [2025-03-30 00:01:22] Production.ERROR: pbx CDR StartTime 2025-03-29 21:01:07 - End Time 2025-03-30 00:01:07 [2025-03-30 00:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792368', 'tblTempUsageDetail_20' ) start [2025-03-30 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792368', 'tblTempUsageDetail_20' ) end [2025-03-30 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792368', 'tblTempVendorCDR_20' ) start [2025-03-30 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792368', 'tblTempVendorCDR_20' ) end [2025-03-30 00:01:22] Production.INFO: ProcessCDR(1,14792368,1,1,2) [2025-03-30 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792368', 'tblTempUsageDetail_20' ) start [2025-03-30 00:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792368', 'tblTempUsageDetail_20' ) end [2025-03-30 00:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:01:27] Production.INFO: ==29069== Releasing lock... [2025-03-30 00:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:01:27] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:02:05 [end_date_ymd] => 2025-03-30 00:02:05 [RateCDR] => 1 ) [2025-03-30 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:02:05' and `end` < '2025-03-30 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-03-30 00:02:18] Production.INFO: count ==1191 [2025-03-30 00:02:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:02:05 - End Time 2025-03-30 00:02:05 [2025-03-30 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792373', 'tblTempUsageDetail_20' ) start [2025-03-30 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792373', 'tblTempUsageDetail_20' ) end [2025-03-30 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792373', 'tblTempVendorCDR_20' ) start [2025-03-30 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792373', 'tblTempVendorCDR_20' ) end [2025-03-30 00:02:19] Production.INFO: ProcessCDR(1,14792373,1,1,2) [2025-03-30 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792373', 'tblTempUsageDetail_20' ) start [2025-03-30 00:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792373', 'tblTempUsageDetail_20' ) end [2025-03-30 00:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:02:24] Production.INFO: ==29141== Releasing lock... [2025-03-30 00:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:02:24] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:03:05 [end_date_ymd] => 2025-03-30 00:03:05 [RateCDR] => 1 ) [2025-03-30 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:03:05' and `end` < '2025-03-30 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-03-30 00:03:18] Production.INFO: count ==1193 [2025-03-30 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:03:05 - End Time 2025-03-30 00:03:05 [2025-03-30 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792378', 'tblTempUsageDetail_20' ) start [2025-03-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792378', 'tblTempUsageDetail_20' ) end [2025-03-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792378', 'tblTempVendorCDR_20' ) start [2025-03-30 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792378', 'tblTempVendorCDR_20' ) end [2025-03-30 00:03:18] Production.INFO: ProcessCDR(1,14792378,1,1,2) [2025-03-30 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792378', 'tblTempUsageDetail_20' ) start [2025-03-30 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792378', 'tblTempUsageDetail_20' ) end [2025-03-30 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:03:24] Production.INFO: ==29221== Releasing lock... [2025-03-30 00:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:03:24] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:04:05 [end_date_ymd] => 2025-03-30 00:04:05 [RateCDR] => 1 ) [2025-03-30 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:04:05' and `end` < '2025-03-30 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-03-30 00:04:30] Production.INFO: count ==1200 [2025-03-30 00:04:31] Production.ERROR: pbx CDR StartTime 2025-03-29 21:04:05 - End Time 2025-03-30 00:04:05 [2025-03-30 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792383', 'tblTempUsageDetail_20' ) start [2025-03-30 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792383', 'tblTempUsageDetail_20' ) end [2025-03-30 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792383', 'tblTempVendorCDR_20' ) start [2025-03-30 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792383', 'tblTempVendorCDR_20' ) end [2025-03-30 00:04:31] Production.INFO: ProcessCDR(1,14792383,1,1,2) [2025-03-30 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792383', 'tblTempUsageDetail_20' ) start [2025-03-30 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792383', 'tblTempUsageDetail_20' ) end [2025-03-30 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:04:34] Production.INFO: ==29298== Releasing lock... [2025-03-30 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:04:34] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:05:06 [end_date_ymd] => 2025-03-30 00:05:06 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:05:06' and `end` < '2025-03-30 00: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-03-30 00:05:25] Production.INFO: count ==1199 [2025-03-30 00:05:26] Production.ERROR: pbx CDR StartTime 2025-03-29 21:05:06 - End Time 2025-03-30 00:05:06 [2025-03-30 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792388', 'tblTempUsageDetail_20' ) start [2025-03-30 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792388', 'tblTempUsageDetail_20' ) end [2025-03-30 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792388', 'tblTempVendorCDR_20' ) start [2025-03-30 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792388', 'tblTempVendorCDR_20' ) end [2025-03-30 00:05:26] Production.INFO: ProcessCDR(1,14792388,1,1,2) [2025-03-30 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792388', 'tblTempUsageDetail_20' ) start [2025-03-30 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792388', 'tblTempUsageDetail_20' ) end [2025-03-30 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:05:29] Production.INFO: ==29374== Releasing lock... [2025-03-30 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:05:29] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:06:05 [end_date_ymd] => 2025-03-30 00:06:05 [RateCDR] => 1 ) [2025-03-30 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:06:05' and `end` < '2025-03-30 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-03-30 00:06:29] Production.INFO: count ==1189 [2025-03-30 00:06:30] Production.ERROR: pbx CDR StartTime 2025-03-29 21:06:05 - End Time 2025-03-30 00:06:05 [2025-03-30 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792393', 'tblTempUsageDetail_20' ) start [2025-03-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792393', 'tblTempUsageDetail_20' ) end [2025-03-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792393', 'tblTempVendorCDR_20' ) start [2025-03-30 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792393', 'tblTempVendorCDR_20' ) end [2025-03-30 00:06:30] Production.INFO: ProcessCDR(1,14792393,1,1,2) [2025-03-30 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792393', 'tblTempUsageDetail_20' ) start [2025-03-30 00:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792393', 'tblTempUsageDetail_20' ) end [2025-03-30 00:06:35] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:06:35] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:06:35] Production.INFO: ==29447== Releasing lock... [2025-03-30 00:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:06:35] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:07:05 [end_date_ymd] => 2025-03-30 00:07:05 [RateCDR] => 1 ) [2025-03-30 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:07:05' and `end` < '2025-03-30 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-03-30 00:07:23] Production.INFO: count ==1183 [2025-03-30 00:07:24] Production.ERROR: pbx CDR StartTime 2025-03-29 21:07:05 - End Time 2025-03-30 00:07:05 [2025-03-30 00:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792398', 'tblTempUsageDetail_20' ) start [2025-03-30 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792398', 'tblTempUsageDetail_20' ) end [2025-03-30 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792398', 'tblTempVendorCDR_20' ) start [2025-03-30 00:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792398', 'tblTempVendorCDR_20' ) end [2025-03-30 00:07:24] Production.INFO: ProcessCDR(1,14792398,1,1,2) [2025-03-30 00:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792398', 'tblTempUsageDetail_20' ) start [2025-03-30 00:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792398', 'tblTempUsageDetail_20' ) end [2025-03-30 00:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:07:27] Production.INFO: ==29524== Releasing lock... [2025-03-30 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:07:27] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:08:04 [end_date_ymd] => 2025-03-30 00:08:04 [RateCDR] => 1 ) [2025-03-30 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:08:04' and `end` < '2025-03-30 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:08:17] Production.INFO: count ==1179 [2025-03-30 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:08:04 - End Time 2025-03-30 00:08:04 [2025-03-30 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792403', 'tblTempUsageDetail_20' ) start [2025-03-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792403', 'tblTempUsageDetail_20' ) end [2025-03-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792403', 'tblTempVendorCDR_20' ) start [2025-03-30 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792403', 'tblTempVendorCDR_20' ) end [2025-03-30 00:08:18] Production.INFO: ProcessCDR(1,14792403,1,1,2) [2025-03-30 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792403', 'tblTempUsageDetail_20' ) start [2025-03-30 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792403', 'tblTempUsageDetail_20' ) end [2025-03-30 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:08:21] Production.INFO: ==29636== Releasing lock... [2025-03-30 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:09:05 [end_date_ymd] => 2025-03-30 00:09:05 [RateCDR] => 1 ) [2025-03-30 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:09:05' and `end` < '2025-03-30 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-03-30 00:09:18] Production.INFO: count ==1177 [2025-03-30 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:09:05 - End Time 2025-03-30 00:09:05 [2025-03-30 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792408', 'tblTempUsageDetail_20' ) start [2025-03-30 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792408', 'tblTempUsageDetail_20' ) end [2025-03-30 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792408', 'tblTempVendorCDR_20' ) start [2025-03-30 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792408', 'tblTempVendorCDR_20' ) end [2025-03-30 00:09:19] Production.INFO: ProcessCDR(1,14792408,1,1,2) [2025-03-30 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792408', 'tblTempUsageDetail_20' ) start [2025-03-30 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792408', 'tblTempUsageDetail_20' ) end [2025-03-30 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:09:22] Production.INFO: ==29716== Releasing lock... [2025-03-30 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:10:05 [end_date_ymd] => 2025-03-30 00:10:05 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:10:05' and `end` < '2025-03-30 00: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-03-30 00:10:18] Production.INFO: count ==1183 [2025-03-30 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:10:05 - End Time 2025-03-30 00:10:05 [2025-03-30 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792414', 'tblTempUsageDetail_20' ) start [2025-03-30 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792414', 'tblTempUsageDetail_20' ) end [2025-03-30 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792414', 'tblTempVendorCDR_20' ) start [2025-03-30 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792414', 'tblTempVendorCDR_20' ) end [2025-03-30 00:10:19] Production.INFO: ProcessCDR(1,14792414,1,1,2) [2025-03-30 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792414', 'tblTempUsageDetail_20' ) start [2025-03-30 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792414', 'tblTempUsageDetail_20' ) end [2025-03-30 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:10:22] Production.INFO: ==29791== Releasing lock... [2025-03-30 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:10:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:11:05 [end_date_ymd] => 2025-03-30 00:11:05 [RateCDR] => 1 ) [2025-03-30 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:11:05' and `end` < '2025-03-30 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-03-30 00:11:18] Production.INFO: count ==1186 [2025-03-30 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:11:05 - End Time 2025-03-30 00:11:05 [2025-03-30 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792419', 'tblTempUsageDetail_20' ) start [2025-03-30 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792419', 'tblTempUsageDetail_20' ) end [2025-03-30 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792419', 'tblTempVendorCDR_20' ) start [2025-03-30 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792419', 'tblTempVendorCDR_20' ) end [2025-03-30 00:11:18] Production.INFO: ProcessCDR(1,14792419,1,1,2) [2025-03-30 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792419', 'tblTempUsageDetail_20' ) start [2025-03-30 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792419', 'tblTempUsageDetail_20' ) end [2025-03-30 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:11:22] Production.INFO: ==29868== Releasing lock... [2025-03-30 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:11:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:12:06 [end_date_ymd] => 2025-03-30 00:12:06 [RateCDR] => 1 ) [2025-03-30 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:12:06' and `end` < '2025-03-30 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:12:18] Production.INFO: count ==1172 [2025-03-30 00:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:12:06 - End Time 2025-03-30 00:12:06 [2025-03-30 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792424', 'tblTempUsageDetail_20' ) start [2025-03-30 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792424', 'tblTempUsageDetail_20' ) end [2025-03-30 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792424', 'tblTempVendorCDR_20' ) start [2025-03-30 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792424', 'tblTempVendorCDR_20' ) end [2025-03-30 00:12:19] Production.INFO: ProcessCDR(1,14792424,1,1,2) [2025-03-30 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792424', 'tblTempUsageDetail_20' ) start [2025-03-30 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792424', 'tblTempUsageDetail_20' ) end [2025-03-30 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:12:22] Production.INFO: ==29945== Releasing lock... [2025-03-30 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:12:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:13:05 [end_date_ymd] => 2025-03-30 00:13:05 [RateCDR] => 1 ) [2025-03-30 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:13:05' and `end` < '2025-03-30 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-03-30 00:13:17] Production.INFO: count ==1176 [2025-03-30 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:13:05 - End Time 2025-03-30 00:13:05 [2025-03-30 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792429', 'tblTempUsageDetail_20' ) start [2025-03-30 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792429', 'tblTempUsageDetail_20' ) end [2025-03-30 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792429', 'tblTempVendorCDR_20' ) start [2025-03-30 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792429', 'tblTempVendorCDR_20' ) end [2025-03-30 00:13:18] Production.INFO: ProcessCDR(1,14792429,1,1,2) [2025-03-30 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792429', 'tblTempUsageDetail_20' ) start [2025-03-30 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792429', 'tblTempUsageDetail_20' ) end [2025-03-30 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:13:21] Production.INFO: ==30022== Releasing lock... [2025-03-30 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:13:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:14:05 [end_date_ymd] => 2025-03-30 00:14:05 [RateCDR] => 1 ) [2025-03-30 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:14:05' and `end` < '2025-03-30 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-03-30 00:14:18] Production.INFO: count ==1186 [2025-03-30 00:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:14:05 - End Time 2025-03-30 00:14:05 [2025-03-30 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792434', 'tblTempUsageDetail_20' ) start [2025-03-30 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792434', 'tblTempUsageDetail_20' ) end [2025-03-30 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792434', 'tblTempVendorCDR_20' ) start [2025-03-30 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792434', 'tblTempVendorCDR_20' ) end [2025-03-30 00:14:19] Production.INFO: ProcessCDR(1,14792434,1,1,2) [2025-03-30 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792434', 'tblTempUsageDetail_20' ) start [2025-03-30 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792434', 'tblTempUsageDetail_20' ) end [2025-03-30 00:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:14:23] Production.INFO: ==30111== Releasing lock... [2025-03-30 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:14:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:15:05 [end_date_ymd] => 2025-03-30 00:15:05 [RateCDR] => 1 ) [2025-03-30 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:15:05' and `end` < '2025-03-30 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-03-30 00:15:18] Production.INFO: count ==1186 [2025-03-30 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:15:05 - End Time 2025-03-30 00:15:05 [2025-03-30 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792439', 'tblTempUsageDetail_20' ) start [2025-03-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792439', 'tblTempUsageDetail_20' ) end [2025-03-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792439', 'tblTempVendorCDR_20' ) start [2025-03-30 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792439', 'tblTempVendorCDR_20' ) end [2025-03-30 00:15:18] Production.INFO: ProcessCDR(1,14792439,1,1,2) [2025-03-30 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792439', 'tblTempUsageDetail_20' ) start [2025-03-30 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792439', 'tblTempUsageDetail_20' ) end [2025-03-30 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:15:21] Production.INFO: ==30252== Releasing lock... [2025-03-30 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:16:05 [end_date_ymd] => 2025-03-30 00:16:05 [RateCDR] => 1 ) [2025-03-30 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:16:05' and `end` < '2025-03-30 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-03-30 00:16:18] Production.INFO: count ==1196 [2025-03-30 00:16:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:16:05 - End Time 2025-03-30 00:16:05 [2025-03-30 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792444', 'tblTempUsageDetail_20' ) start [2025-03-30 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792444', 'tblTempUsageDetail_20' ) end [2025-03-30 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792444', 'tblTempVendorCDR_20' ) start [2025-03-30 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792444', 'tblTempVendorCDR_20' ) end [2025-03-30 00:16:19] Production.INFO: ProcessCDR(1,14792444,1,1,2) [2025-03-30 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792444', 'tblTempUsageDetail_20' ) start [2025-03-30 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792444', 'tblTempUsageDetail_20' ) end [2025-03-30 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:16:23] Production.INFO: ==30370== Releasing lock... [2025-03-30 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:16:23] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:17:05 [end_date_ymd] => 2025-03-30 00:17:05 [RateCDR] => 1 ) [2025-03-30 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:17:05' and `end` < '2025-03-30 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-03-30 00:17:17] Production.INFO: count ==1210 [2025-03-30 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:17:05 - End Time 2025-03-30 00:17:05 [2025-03-30 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792449', 'tblTempUsageDetail_20' ) start [2025-03-30 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792449', 'tblTempUsageDetail_20' ) end [2025-03-30 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792449', 'tblTempVendorCDR_20' ) start [2025-03-30 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792449', 'tblTempVendorCDR_20' ) end [2025-03-30 00:17:18] Production.INFO: ProcessCDR(1,14792449,1,1,2) [2025-03-30 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792449', 'tblTempUsageDetail_20' ) start [2025-03-30 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792449', 'tblTempUsageDetail_20' ) end [2025-03-30 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:17:21] Production.INFO: ==30445== Releasing lock... [2025-03-30 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:17:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:18:06 [end_date_ymd] => 2025-03-30 00:18:06 [RateCDR] => 1 ) [2025-03-30 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:18:06' and `end` < '2025-03-30 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:18:18] Production.INFO: count ==1211 [2025-03-30 00:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:18:06 - End Time 2025-03-30 00:18:06 [2025-03-30 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792454', 'tblTempUsageDetail_20' ) start [2025-03-30 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792454', 'tblTempUsageDetail_20' ) end [2025-03-30 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792454', 'tblTempVendorCDR_20' ) start [2025-03-30 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792454', 'tblTempVendorCDR_20' ) end [2025-03-30 00:18:19] Production.INFO: ProcessCDR(1,14792454,1,1,2) [2025-03-30 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792454', 'tblTempUsageDetail_20' ) start [2025-03-30 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792454', 'tblTempUsageDetail_20' ) end [2025-03-30 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:18:23] Production.INFO: ==30521== Releasing lock... [2025-03-30 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:18:23] Production.INFO: 38 MB #Memory Used# [2025-03-30 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:19:04 [end_date_ymd] => 2025-03-30 00:19:04 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:19:04' and `end` < '2025-03-30 00: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-03-30 00:19:17] Production.INFO: count ==1210 [2025-03-30 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:19:04 - End Time 2025-03-30 00:19:04 [2025-03-30 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792458', 'tblTempUsageDetail_20' ) start [2025-03-30 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792458', 'tblTempUsageDetail_20' ) end [2025-03-30 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792458', 'tblTempVendorCDR_20' ) start [2025-03-30 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792458', 'tblTempVendorCDR_20' ) end [2025-03-30 00:19:18] Production.INFO: ProcessCDR(1,14792458,1,1,2) [2025-03-30 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792458', 'tblTempUsageDetail_20' ) start [2025-03-30 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792458', 'tblTempUsageDetail_20' ) end [2025-03-30 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:19:21] Production.INFO: ==30593== Releasing lock... [2025-03-30 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:19:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:20:06 [end_date_ymd] => 2025-03-30 00:20:06 [RateCDR] => 1 ) [2025-03-30 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:20:06' and `end` < '2025-03-30 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:20:19] Production.INFO: count ==1214 [2025-03-30 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:20:06 - End Time 2025-03-30 00:20:06 [2025-03-30 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792465', 'tblTempUsageDetail_20' ) start [2025-03-30 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792465', 'tblTempUsageDetail_20' ) end [2025-03-30 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792465', 'tblTempVendorCDR_20' ) start [2025-03-30 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792465', 'tblTempVendorCDR_20' ) end [2025-03-30 00:20:19] Production.INFO: ProcessCDR(1,14792465,1,1,2) [2025-03-30 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792465', 'tblTempUsageDetail_20' ) start [2025-03-30 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792465', 'tblTempUsageDetail_20' ) end [2025-03-30 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:20:23] Production.INFO: ==30673== Releasing lock... [2025-03-30 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:21:04 [end_date_ymd] => 2025-03-30 00:21:04 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:21:04' and `end` < '2025-03-30 00: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-03-30 00:21:17] Production.INFO: count ==1250 [2025-03-30 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:21:04 - End Time 2025-03-30 00:21:04 [2025-03-30 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792470', 'tblTempUsageDetail_20' ) start [2025-03-30 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792470', 'tblTempUsageDetail_20' ) end [2025-03-30 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792470', 'tblTempVendorCDR_20' ) start [2025-03-30 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792470', 'tblTempVendorCDR_20' ) end [2025-03-30 00:21:18] Production.INFO: ProcessCDR(1,14792470,1,1,2) [2025-03-30 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792470', 'tblTempUsageDetail_20' ) start [2025-03-30 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792470', 'tblTempUsageDetail_20' ) end [2025-03-30 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:21:21] Production.INFO: ==30749== Releasing lock... [2025-03-30 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:21:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:22:06 [end_date_ymd] => 2025-03-30 00:22:06 [RateCDR] => 1 ) [2025-03-30 00:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:22:06' and `end` < '2025-03-30 00:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:22:18] Production.INFO: count ==1253 [2025-03-30 00:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:22:06 - End Time 2025-03-30 00:22:06 [2025-03-30 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792475', 'tblTempUsageDetail_20' ) start [2025-03-30 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792475', 'tblTempUsageDetail_20' ) end [2025-03-30 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792475', 'tblTempVendorCDR_20' ) start [2025-03-30 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792475', 'tblTempVendorCDR_20' ) end [2025-03-30 00:22:19] Production.INFO: ProcessCDR(1,14792475,1,1,2) [2025-03-30 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792475', 'tblTempUsageDetail_20' ) start [2025-03-30 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792475', 'tblTempUsageDetail_20' ) end [2025-03-30 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:22:23] Production.INFO: ==30821== Releasing lock... [2025-03-30 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:22:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:23:05 [end_date_ymd] => 2025-03-30 00:23:05 [RateCDR] => 1 ) [2025-03-30 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:23:05' and `end` < '2025-03-30 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:23:17] Production.INFO: count ==1252 [2025-03-30 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:23:05 - End Time 2025-03-30 00:23:05 [2025-03-30 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792480', 'tblTempUsageDetail_20' ) start [2025-03-30 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792480', 'tblTempUsageDetail_20' ) end [2025-03-30 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792480', 'tblTempVendorCDR_20' ) start [2025-03-30 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792480', 'tblTempVendorCDR_20' ) end [2025-03-30 00:23:18] Production.INFO: ProcessCDR(1,14792480,1,1,2) [2025-03-30 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792480', 'tblTempUsageDetail_20' ) start [2025-03-30 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792480', 'tblTempUsageDetail_20' ) end [2025-03-30 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:23:23] Production.INFO: ==30934== Releasing lock... [2025-03-30 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:23:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:24:05 [end_date_ymd] => 2025-03-30 00:24:05 [RateCDR] => 1 ) [2025-03-30 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:24:05' and `end` < '2025-03-30 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-03-30 00:24:18] Production.INFO: count ==1248 [2025-03-30 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:24:05 - End Time 2025-03-30 00:24:05 [2025-03-30 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792485', 'tblTempUsageDetail_20' ) start [2025-03-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792485', 'tblTempUsageDetail_20' ) end [2025-03-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792485', 'tblTempVendorCDR_20' ) start [2025-03-30 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792485', 'tblTempVendorCDR_20' ) end [2025-03-30 00:24:18] Production.INFO: ProcessCDR(1,14792485,1,1,2) [2025-03-30 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792485', 'tblTempUsageDetail_20' ) start [2025-03-30 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792485', 'tblTempUsageDetail_20' ) end [2025-03-30 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:24:22] Production.INFO: ==31010== Releasing lock... [2025-03-30 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:24:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:25:05 [end_date_ymd] => 2025-03-30 00:25:05 [RateCDR] => 1 ) [2025-03-30 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:25:05' and `end` < '2025-03-30 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:25:17] Production.INFO: count ==1247 [2025-03-30 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:25:05 - End Time 2025-03-30 00:25:05 [2025-03-30 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792490', 'tblTempUsageDetail_20' ) start [2025-03-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792490', 'tblTempUsageDetail_20' ) end [2025-03-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792490', 'tblTempVendorCDR_20' ) start [2025-03-30 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792490', 'tblTempVendorCDR_20' ) end [2025-03-30 00:25:18] Production.INFO: ProcessCDR(1,14792490,1,1,2) [2025-03-30 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792490', 'tblTempUsageDetail_20' ) start [2025-03-30 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792490', 'tblTempUsageDetail_20' ) end [2025-03-30 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:25:21] Production.INFO: ==31089== Releasing lock... [2025-03-30 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:25:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:26:05 [end_date_ymd] => 2025-03-30 00:26:05 [RateCDR] => 1 ) [2025-03-30 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:26:05' and `end` < '2025-03-30 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-03-30 00:26:17] Production.INFO: count ==1252 [2025-03-30 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:26:05 - End Time 2025-03-30 00:26:05 [2025-03-30 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792495', 'tblTempUsageDetail_20' ) start [2025-03-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792495', 'tblTempUsageDetail_20' ) end [2025-03-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792495', 'tblTempVendorCDR_20' ) start [2025-03-30 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792495', 'tblTempVendorCDR_20' ) end [2025-03-30 00:26:18] Production.INFO: ProcessCDR(1,14792495,1,1,2) [2025-03-30 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792495', 'tblTempUsageDetail_20' ) start [2025-03-30 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792495', 'tblTempUsageDetail_20' ) end [2025-03-30 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:26:21] Production.INFO: ==31168== Releasing lock... [2025-03-30 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:27:05 [end_date_ymd] => 2025-03-30 00:27:05 [RateCDR] => 1 ) [2025-03-30 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:27:05' and `end` < '2025-03-30 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-03-30 00:27:18] Production.INFO: count ==1252 [2025-03-30 00:27:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:27:05 - End Time 2025-03-30 00:27:05 [2025-03-30 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792500', 'tblTempUsageDetail_20' ) start [2025-03-30 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792500', 'tblTempUsageDetail_20' ) end [2025-03-30 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792500', 'tblTempVendorCDR_20' ) start [2025-03-30 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792500', 'tblTempVendorCDR_20' ) end [2025-03-30 00:27:19] Production.INFO: ProcessCDR(1,14792500,1,1,2) [2025-03-30 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792500', 'tblTempUsageDetail_20' ) start [2025-03-30 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792500', 'tblTempUsageDetail_20' ) end [2025-03-30 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:27:22] Production.INFO: ==31245== Releasing lock... [2025-03-30 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:28:05 [end_date_ymd] => 2025-03-30 00:28:05 [RateCDR] => 1 ) [2025-03-30 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:28:05' and `end` < '2025-03-30 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-03-30 00:28:18] Production.INFO: count ==1251 [2025-03-30 00:28:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:28:05 - End Time 2025-03-30 00:28:05 [2025-03-30 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792505', 'tblTempUsageDetail_20' ) start [2025-03-30 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792505', 'tblTempUsageDetail_20' ) end [2025-03-30 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792505', 'tblTempVendorCDR_20' ) start [2025-03-30 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792505', 'tblTempVendorCDR_20' ) end [2025-03-30 00:28:19] Production.INFO: ProcessCDR(1,14792505,1,1,2) [2025-03-30 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792505', 'tblTempUsageDetail_20' ) start [2025-03-30 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792505', 'tblTempUsageDetail_20' ) end [2025-03-30 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:28:22] Production.INFO: ==31321== Releasing lock... [2025-03-30 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:29:06 [end_date_ymd] => 2025-03-30 00:29:06 [RateCDR] => 1 ) [2025-03-30 00:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:29:06' and `end` < '2025-03-30 00:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:29:18] Production.INFO: count ==1237 [2025-03-30 00:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:29:06 - End Time 2025-03-30 00:29:06 [2025-03-30 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792510', 'tblTempUsageDetail_20' ) start [2025-03-30 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792510', 'tblTempUsageDetail_20' ) end [2025-03-30 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792510', 'tblTempVendorCDR_20' ) start [2025-03-30 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792510', 'tblTempVendorCDR_20' ) end [2025-03-30 00:29:19] Production.INFO: ProcessCDR(1,14792510,1,1,2) [2025-03-30 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792510', 'tblTempUsageDetail_20' ) start [2025-03-30 00:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792510', 'tblTempUsageDetail_20' ) end [2025-03-30 00:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:29:24] Production.INFO: ==31395== Releasing lock... [2025-03-30 00:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:29:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:30:06 [end_date_ymd] => 2025-03-30 00:30:06 [RateCDR] => 1 ) [2025-03-30 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:30:06' and `end` < '2025-03-30 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:30:19] Production.INFO: count ==1254 [2025-03-30 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:30:06 - End Time 2025-03-30 00:30:06 [2025-03-30 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792516', 'tblTempUsageDetail_20' ) start [2025-03-30 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792516', 'tblTempUsageDetail_20' ) end [2025-03-30 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792516', 'tblTempVendorCDR_20' ) start [2025-03-30 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792516', 'tblTempVendorCDR_20' ) end [2025-03-30 00:30:19] Production.INFO: ProcessCDR(1,14792516,1,1,2) [2025-03-30 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792516', 'tblTempUsageDetail_20' ) start [2025-03-30 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792516', 'tblTempUsageDetail_20' ) end [2025-03-30 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:30:23] Production.INFO: ==31473== Releasing lock... [2025-03-30 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:31:05 [end_date_ymd] => 2025-03-30 00:31:05 [RateCDR] => 1 ) [2025-03-30 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:31:05' and `end` < '2025-03-30 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-03-30 00:31:18] Production.INFO: count ==1251 [2025-03-30 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:31:05 - End Time 2025-03-30 00:31:05 [2025-03-30 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792521', 'tblTempUsageDetail_20' ) start [2025-03-30 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792521', 'tblTempUsageDetail_20' ) end [2025-03-30 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792521', 'tblTempVendorCDR_20' ) start [2025-03-30 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792521', 'tblTempVendorCDR_20' ) end [2025-03-30 00:31:18] Production.INFO: ProcessCDR(1,14792521,1,1,2) [2025-03-30 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792521', 'tblTempUsageDetail_20' ) start [2025-03-30 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792521', 'tblTempUsageDetail_20' ) end [2025-03-30 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:31:22] Production.INFO: ==31550== Releasing lock... [2025-03-30 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:31:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:32:05 [end_date_ymd] => 2025-03-30 00:32:05 [RateCDR] => 1 ) [2025-03-30 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:32:05' and `end` < '2025-03-30 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-03-30 00:32:18] Production.INFO: count ==1249 [2025-03-30 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:32:05 - End Time 2025-03-30 00:32:05 [2025-03-30 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792526', 'tblTempUsageDetail_20' ) start [2025-03-30 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792526', 'tblTempUsageDetail_20' ) end [2025-03-30 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792526', 'tblTempVendorCDR_20' ) start [2025-03-30 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792526', 'tblTempVendorCDR_20' ) end [2025-03-30 00:32:18] Production.INFO: ProcessCDR(1,14792526,1,1,2) [2025-03-30 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792526', 'tblTempUsageDetail_20' ) start [2025-03-30 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792526', 'tblTempUsageDetail_20' ) end [2025-03-30 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:32:22] Production.INFO: ==31619== Releasing lock... [2025-03-30 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:33:05 [end_date_ymd] => 2025-03-30 00:33:05 [RateCDR] => 1 ) [2025-03-30 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:33:05' and `end` < '2025-03-30 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:33:18] Production.INFO: count ==1234 [2025-03-30 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:33:05 - End Time 2025-03-30 00:33:05 [2025-03-30 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792531', 'tblTempUsageDetail_20' ) start [2025-03-30 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792531', 'tblTempUsageDetail_20' ) end [2025-03-30 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792531', 'tblTempVendorCDR_20' ) start [2025-03-30 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792531', 'tblTempVendorCDR_20' ) end [2025-03-30 00:33:19] Production.INFO: ProcessCDR(1,14792531,1,1,2) [2025-03-30 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792531', 'tblTempUsageDetail_20' ) start [2025-03-30 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792531', 'tblTempUsageDetail_20' ) end [2025-03-30 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:33:22] Production.INFO: ==31692== Releasing lock... [2025-03-30 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:33:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:34:05 [end_date_ymd] => 2025-03-30 00:34:05 [RateCDR] => 1 ) [2025-03-30 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:34:05' and `end` < '2025-03-30 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-03-30 00:34:18] Production.INFO: count ==1223 [2025-03-30 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:34:05 - End Time 2025-03-30 00:34:05 [2025-03-30 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792536', 'tblTempUsageDetail_20' ) start [2025-03-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792536', 'tblTempUsageDetail_20' ) end [2025-03-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792536', 'tblTempVendorCDR_20' ) start [2025-03-30 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792536', 'tblTempVendorCDR_20' ) end [2025-03-30 00:34:18] Production.INFO: ProcessCDR(1,14792536,1,1,2) [2025-03-30 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792536', 'tblTempUsageDetail_20' ) start [2025-03-30 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792536', 'tblTempUsageDetail_20' ) end [2025-03-30 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:34:22] Production.INFO: ==31772== Releasing lock... [2025-03-30 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:35:06 [end_date_ymd] => 2025-03-30 00:35:06 [RateCDR] => 1 ) [2025-03-30 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:35:06' and `end` < '2025-03-30 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:35:18] Production.INFO: count ==1221 [2025-03-30 00:35:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:35:06 - End Time 2025-03-30 00:35:06 [2025-03-30 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792541', 'tblTempUsageDetail_20' ) start [2025-03-30 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792541', 'tblTempUsageDetail_20' ) end [2025-03-30 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792541', 'tblTempVendorCDR_20' ) start [2025-03-30 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792541', 'tblTempVendorCDR_20' ) end [2025-03-30 00:35:19] Production.INFO: ProcessCDR(1,14792541,1,1,2) [2025-03-30 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792541', 'tblTempUsageDetail_20' ) start [2025-03-30 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792541', 'tblTempUsageDetail_20' ) end [2025-03-30 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:35:22] Production.INFO: ==31846== Releasing lock... [2025-03-30 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:35:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:36:05 [end_date_ymd] => 2025-03-30 00:36:05 [RateCDR] => 1 ) [2025-03-30 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:36:05' and `end` < '2025-03-30 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-03-30 00:36:18] Production.INFO: count ==1221 [2025-03-30 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:36:05 - End Time 2025-03-30 00:36:05 [2025-03-30 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792546', 'tblTempUsageDetail_20' ) start [2025-03-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792546', 'tblTempUsageDetail_20' ) end [2025-03-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792546', 'tblTempVendorCDR_20' ) start [2025-03-30 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792546', 'tblTempVendorCDR_20' ) end [2025-03-30 00:36:18] Production.INFO: ProcessCDR(1,14792546,1,1,2) [2025-03-30 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792546', 'tblTempUsageDetail_20' ) start [2025-03-30 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792546', 'tblTempUsageDetail_20' ) end [2025-03-30 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:36:22] Production.INFO: ==31919== Releasing lock... [2025-03-30 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:37:05 [end_date_ymd] => 2025-03-30 00:37:05 [RateCDR] => 1 ) [2025-03-30 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:37:05' and `end` < '2025-03-30 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:37:18] Production.INFO: count ==1227 [2025-03-30 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:37:05 - End Time 2025-03-30 00:37:05 [2025-03-30 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792551', 'tblTempUsageDetail_20' ) start [2025-03-30 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792551', 'tblTempUsageDetail_20' ) end [2025-03-30 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792551', 'tblTempVendorCDR_20' ) start [2025-03-30 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792551', 'tblTempVendorCDR_20' ) end [2025-03-30 00:37:18] Production.INFO: ProcessCDR(1,14792551,1,1,2) [2025-03-30 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792551', 'tblTempUsageDetail_20' ) start [2025-03-30 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792551', 'tblTempUsageDetail_20' ) end [2025-03-30 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:37:22] Production.INFO: ==31993== Releasing lock... [2025-03-30 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:37:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:38:05 [end_date_ymd] => 2025-03-30 00:38:05 [RateCDR] => 1 ) [2025-03-30 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:38:05' and `end` < '2025-03-30 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-03-30 00:38:17] Production.INFO: count ==1222 [2025-03-30 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:38:05 - End Time 2025-03-30 00:38:05 [2025-03-30 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792556', 'tblTempUsageDetail_20' ) start [2025-03-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792556', 'tblTempUsageDetail_20' ) end [2025-03-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792556', 'tblTempVendorCDR_20' ) start [2025-03-30 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792556', 'tblTempVendorCDR_20' ) end [2025-03-30 00:38:18] Production.INFO: ProcessCDR(1,14792556,1,1,2) [2025-03-30 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792556', 'tblTempUsageDetail_20' ) start [2025-03-30 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792556', 'tblTempUsageDetail_20' ) end [2025-03-30 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:38:23] Production.INFO: ==32066== Releasing lock... [2025-03-30 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:39:05 [end_date_ymd] => 2025-03-30 00:39:05 [RateCDR] => 1 ) [2025-03-30 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:39:05' and `end` < '2025-03-30 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-03-30 00:39:18] Production.INFO: count ==1220 [2025-03-30 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:39:05 - End Time 2025-03-30 00:39:05 [2025-03-30 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792561', 'tblTempUsageDetail_20' ) start [2025-03-30 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792561', 'tblTempUsageDetail_20' ) end [2025-03-30 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792561', 'tblTempVendorCDR_20' ) start [2025-03-30 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792561', 'tblTempVendorCDR_20' ) end [2025-03-30 00:39:18] Production.INFO: ProcessCDR(1,14792561,1,1,2) [2025-03-30 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792561', 'tblTempUsageDetail_20' ) start [2025-03-30 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792561', 'tblTempUsageDetail_20' ) end [2025-03-30 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:39:22] Production.INFO: ==32185== Releasing lock... [2025-03-30 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:40:05 [end_date_ymd] => 2025-03-30 00:40:05 [RateCDR] => 1 ) [2025-03-30 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` >= '2025-03-29 21:40:05' and `end` < '2025-03-30 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-03-30 00:40:18] Production.INFO: count ==1222 [2025-03-30 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:40:05 - End Time 2025-03-30 00:40:05 [2025-03-30 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792566', 'tblTempUsageDetail_20' ) start [2025-03-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792566', 'tblTempUsageDetail_20' ) end [2025-03-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792566', 'tblTempVendorCDR_20' ) start [2025-03-30 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792566', 'tblTempVendorCDR_20' ) end [2025-03-30 00:40:18] Production.INFO: ProcessCDR(1,14792566,1,1,2) [2025-03-30 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792566', 'tblTempUsageDetail_20' ) start [2025-03-30 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792566', 'tblTempUsageDetail_20' ) end [2025-03-30 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:40:22] Production.INFO: ==32298== Releasing lock... [2025-03-30 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:40:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:41:05 [end_date_ymd] => 2025-03-30 00:41:05 [RateCDR] => 1 ) [2025-03-30 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:41:05' and `end` < '2025-03-30 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-03-30 00:41:18] Production.INFO: count ==1228 [2025-03-30 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:41:05 - End Time 2025-03-30 00:41:05 [2025-03-30 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792572', 'tblTempUsageDetail_20' ) start [2025-03-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792572', 'tblTempUsageDetail_20' ) end [2025-03-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792572', 'tblTempVendorCDR_20' ) start [2025-03-30 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792572', 'tblTempVendorCDR_20' ) end [2025-03-30 00:41:18] Production.INFO: ProcessCDR(1,14792572,1,1,2) [2025-03-30 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792572', 'tblTempUsageDetail_20' ) start [2025-03-30 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792572', 'tblTempUsageDetail_20' ) end [2025-03-30 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:41:22] Production.INFO: ==32371== Releasing lock... [2025-03-30 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:41:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:42:06 [end_date_ymd] => 2025-03-30 00:42:06 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:42:06' and `end` < '2025-03-30 00: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-03-30 00:42:18] Production.INFO: count ==1226 [2025-03-30 00:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:42:06 - End Time 2025-03-30 00:42:06 [2025-03-30 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792577', 'tblTempUsageDetail_20' ) start [2025-03-30 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792577', 'tblTempUsageDetail_20' ) end [2025-03-30 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792577', 'tblTempVendorCDR_20' ) start [2025-03-30 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792577', 'tblTempVendorCDR_20' ) end [2025-03-30 00:42:19] Production.INFO: ProcessCDR(1,14792577,1,1,2) [2025-03-30 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792577', 'tblTempUsageDetail_20' ) start [2025-03-30 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792577', 'tblTempUsageDetail_20' ) end [2025-03-30 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:42:22] Production.INFO: ==32445== Releasing lock... [2025-03-30 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:42:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:43:05 [end_date_ymd] => 2025-03-30 00:43:05 [RateCDR] => 1 ) [2025-03-30 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:43:05' and `end` < '2025-03-30 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-03-30 00:43:18] Production.INFO: count ==1226 [2025-03-30 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:43:05 - End Time 2025-03-30 00:43:05 [2025-03-30 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792582', 'tblTempUsageDetail_20' ) start [2025-03-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792582', 'tblTempUsageDetail_20' ) end [2025-03-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792582', 'tblTempVendorCDR_20' ) start [2025-03-30 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792582', 'tblTempVendorCDR_20' ) end [2025-03-30 00:43:18] Production.INFO: ProcessCDR(1,14792582,1,1,2) [2025-03-30 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792582', 'tblTempUsageDetail_20' ) start [2025-03-30 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792582', 'tblTempUsageDetail_20' ) end [2025-03-30 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:43:22] Production.INFO: ==32518== Releasing lock... [2025-03-30 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:44:05 [end_date_ymd] => 2025-03-30 00:44:05 [RateCDR] => 1 ) [2025-03-30 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:44:05' and `end` < '2025-03-30 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:44:18] Production.INFO: count ==1231 [2025-03-30 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:44:05 - End Time 2025-03-30 00:44:05 [2025-03-30 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792587', 'tblTempUsageDetail_20' ) start [2025-03-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792587', 'tblTempUsageDetail_20' ) end [2025-03-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792587', 'tblTempVendorCDR_20' ) start [2025-03-30 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792587', 'tblTempVendorCDR_20' ) end [2025-03-30 00:44:18] Production.INFO: ProcessCDR(1,14792587,1,1,2) [2025-03-30 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792587', 'tblTempUsageDetail_20' ) start [2025-03-30 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792587', 'tblTempUsageDetail_20' ) end [2025-03-30 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:44:24] Production.INFO: ==32591== Releasing lock... [2025-03-30 00:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:44:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:45:05 [end_date_ymd] => 2025-03-30 00:45:05 [RateCDR] => 1 ) [2025-03-30 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:45:05' and `end` < '2025-03-30 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:45:18] Production.INFO: count ==1233 [2025-03-30 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:45:05 - End Time 2025-03-30 00:45:05 [2025-03-30 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792592', 'tblTempUsageDetail_20' ) start [2025-03-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792592', 'tblTempUsageDetail_20' ) end [2025-03-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792592', 'tblTempVendorCDR_20' ) start [2025-03-30 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792592', 'tblTempVendorCDR_20' ) end [2025-03-30 00:45:18] Production.INFO: ProcessCDR(1,14792592,1,1,2) [2025-03-30 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792592', 'tblTempUsageDetail_20' ) start [2025-03-30 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792592', 'tblTempUsageDetail_20' ) end [2025-03-30 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:45:22] Production.INFO: ==32668== Releasing lock... [2025-03-30 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:45:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:46:05 [end_date_ymd] => 2025-03-30 00:46:05 [RateCDR] => 1 ) [2025-03-30 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:46:05' and `end` < '2025-03-30 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-03-30 00:46:18] Production.INFO: count ==1230 [2025-03-30 00:46:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:46:05 - End Time 2025-03-30 00:46:05 [2025-03-30 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792597', 'tblTempUsageDetail_20' ) start [2025-03-30 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792597', 'tblTempUsageDetail_20' ) end [2025-03-30 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792597', 'tblTempVendorCDR_20' ) start [2025-03-30 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792597', 'tblTempVendorCDR_20' ) end [2025-03-30 00:46:19] Production.INFO: ProcessCDR(1,14792597,1,1,2) [2025-03-30 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792597', 'tblTempUsageDetail_20' ) start [2025-03-30 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792597', 'tblTempUsageDetail_20' ) end [2025-03-30 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:46:22] Production.INFO: ==32741== Releasing lock... [2025-03-30 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:46:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:47:06 [end_date_ymd] => 2025-03-30 00:47:06 [RateCDR] => 1 ) [2025-03-30 00:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:47:06' and `end` < '2025-03-30 00:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:47:18] Production.INFO: count ==1229 [2025-03-30 00:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:47:06 - End Time 2025-03-30 00:47:06 [2025-03-30 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792602', 'tblTempUsageDetail_20' ) start [2025-03-30 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792602', 'tblTempUsageDetail_20' ) end [2025-03-30 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792602', 'tblTempVendorCDR_20' ) start [2025-03-30 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792602', 'tblTempVendorCDR_20' ) end [2025-03-30 00:47:19] Production.INFO: ProcessCDR(1,14792602,1,1,2) [2025-03-30 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792602', 'tblTempUsageDetail_20' ) start [2025-03-30 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792602', 'tblTempUsageDetail_20' ) end [2025-03-30 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:47:22] Production.INFO: ==364== Releasing lock... [2025-03-30 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:47:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:48:06 [end_date_ymd] => 2025-03-30 00:48:06 [RateCDR] => 1 ) [2025-03-30 00: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-03-29 21:48:06' and `end` < '2025-03-30 00: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-03-30 00:48:18] Production.INFO: count ==1235 [2025-03-30 00:48:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:48:06 - End Time 2025-03-30 00:48:06 [2025-03-30 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792607', 'tblTempUsageDetail_20' ) start [2025-03-30 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792607', 'tblTempUsageDetail_20' ) end [2025-03-30 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792607', 'tblTempVendorCDR_20' ) start [2025-03-30 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792607', 'tblTempVendorCDR_20' ) end [2025-03-30 00:48:19] Production.INFO: ProcessCDR(1,14792607,1,1,2) [2025-03-30 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792607', 'tblTempUsageDetail_20' ) start [2025-03-30 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792607', 'tblTempUsageDetail_20' ) end [2025-03-30 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:48:23] Production.INFO: ==435== Releasing lock... [2025-03-30 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:48:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:49:05 [end_date_ymd] => 2025-03-30 00:49:05 [RateCDR] => 1 ) [2025-03-30 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:49:05' and `end` < '2025-03-30 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:49:18] Production.INFO: count ==1222 [2025-03-30 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:49:05 - End Time 2025-03-30 00:49:05 [2025-03-30 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792612', 'tblTempUsageDetail_20' ) start [2025-03-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792612', 'tblTempUsageDetail_20' ) end [2025-03-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792612', 'tblTempVendorCDR_20' ) start [2025-03-30 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792612', 'tblTempVendorCDR_20' ) end [2025-03-30 00:49:18] Production.INFO: ProcessCDR(1,14792612,1,1,2) [2025-03-30 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792612', 'tblTempUsageDetail_20' ) start [2025-03-30 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792612', 'tblTempUsageDetail_20' ) end [2025-03-30 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:49:22] Production.INFO: ==510== Releasing lock... [2025-03-30 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:49:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:50:06 [end_date_ymd] => 2025-03-30 00:50:06 [RateCDR] => 1 ) [2025-03-30 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:50:06' and `end` < '2025-03-30 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-03-30 00:50:18] Production.INFO: count ==1211 [2025-03-30 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:50:06 - End Time 2025-03-30 00:50:06 [2025-03-30 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792618', 'tblTempUsageDetail_20' ) start [2025-03-30 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792618', 'tblTempUsageDetail_20' ) end [2025-03-30 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792618', 'tblTempVendorCDR_20' ) start [2025-03-30 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792618', 'tblTempVendorCDR_20' ) end [2025-03-30 00:50:19] Production.INFO: ProcessCDR(1,14792618,1,1,2) [2025-03-30 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792618', 'tblTempUsageDetail_20' ) start [2025-03-30 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792618', 'tblTempUsageDetail_20' ) end [2025-03-30 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:50:22] Production.INFO: ==589== Releasing lock... [2025-03-30 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:51:05 [end_date_ymd] => 2025-03-30 00:51:05 [RateCDR] => 1 ) [2025-03-30 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:51:05' and `end` < '2025-03-30 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-03-30 00:51:18] Production.INFO: count ==1199 [2025-03-30 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:51:05 - End Time 2025-03-30 00:51:05 [2025-03-30 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792623', 'tblTempUsageDetail_20' ) start [2025-03-30 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792623', 'tblTempUsageDetail_20' ) end [2025-03-30 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792623', 'tblTempVendorCDR_20' ) start [2025-03-30 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792623', 'tblTempVendorCDR_20' ) end [2025-03-30 00:51:18] Production.INFO: ProcessCDR(1,14792623,1,1,2) [2025-03-30 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792623', 'tblTempUsageDetail_20' ) start [2025-03-30 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792623', 'tblTempUsageDetail_20' ) end [2025-03-30 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:51:21] Production.INFO: ==694== Releasing lock... [2025-03-30 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:51:21] Production.INFO: 37 MB #Memory Used# [2025-03-30 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:52:05 [end_date_ymd] => 2025-03-30 00:52:05 [RateCDR] => 1 ) [2025-03-30 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:52:05' and `end` < '2025-03-30 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-03-30 00:52:18] Production.INFO: count ==1188 [2025-03-30 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:52:05 - End Time 2025-03-30 00:52:05 [2025-03-30 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792628', 'tblTempUsageDetail_20' ) start [2025-03-30 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792628', 'tblTempUsageDetail_20' ) end [2025-03-30 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792628', 'tblTempVendorCDR_20' ) start [2025-03-30 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792628', 'tblTempVendorCDR_20' ) end [2025-03-30 00:52:19] Production.INFO: ProcessCDR(1,14792628,1,1,2) [2025-03-30 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792628', 'tblTempUsageDetail_20' ) start [2025-03-30 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792628', 'tblTempUsageDetail_20' ) end [2025-03-30 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:52:22] Production.INFO: ==783== Releasing lock... [2025-03-30 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:53:05 [end_date_ymd] => 2025-03-30 00:53:05 [RateCDR] => 1 ) [2025-03-30 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:53:05' and `end` < '2025-03-30 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-03-30 00:53:17] Production.INFO: count ==1144 [2025-03-30 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:53:05 - End Time 2025-03-30 00:53:05 [2025-03-30 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792633', 'tblTempUsageDetail_20' ) start [2025-03-30 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792633', 'tblTempUsageDetail_20' ) end [2025-03-30 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792633', 'tblTempVendorCDR_20' ) start [2025-03-30 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792633', 'tblTempVendorCDR_20' ) end [2025-03-30 00:53:18] Production.INFO: ProcessCDR(1,14792633,1,1,2) [2025-03-30 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792633', 'tblTempUsageDetail_20' ) start [2025-03-30 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792633', 'tblTempUsageDetail_20' ) end [2025-03-30 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:53:21] Production.INFO: ==861== Releasing lock... [2025-03-30 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:53:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:54:06 [end_date_ymd] => 2025-03-30 00:54:06 [RateCDR] => 1 ) [2025-03-30 00:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:54:06' and `end` < '2025-03-30 00:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:54:18] Production.INFO: count ==1137 [2025-03-30 00:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:54:06 - End Time 2025-03-30 00:54:06 [2025-03-30 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792638', 'tblTempUsageDetail_20' ) start [2025-03-30 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792638', 'tblTempUsageDetail_20' ) end [2025-03-30 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792638', 'tblTempVendorCDR_20' ) start [2025-03-30 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792638', 'tblTempVendorCDR_20' ) end [2025-03-30 00:54:19] Production.INFO: ProcessCDR(1,14792638,1,1,2) [2025-03-30 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792638', 'tblTempUsageDetail_20' ) start [2025-03-30 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792638', 'tblTempUsageDetail_20' ) end [2025-03-30 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:54:22] Production.INFO: ==986== Releasing lock... [2025-03-30 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:54:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:55:06 [end_date_ymd] => 2025-03-30 00:55:06 [RateCDR] => 1 ) [2025-03-30 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:55:06' and `end` < '2025-03-30 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:55:18] Production.INFO: count ==1122 [2025-03-30 00:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:55:06 - End Time 2025-03-30 00:55:06 [2025-03-30 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792643', 'tblTempUsageDetail_20' ) start [2025-03-30 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792643', 'tblTempUsageDetail_20' ) end [2025-03-30 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792643', 'tblTempVendorCDR_20' ) start [2025-03-30 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792643', 'tblTempVendorCDR_20' ) end [2025-03-30 00:55:19] Production.INFO: ProcessCDR(1,14792643,1,1,2) [2025-03-30 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792643', 'tblTempUsageDetail_20' ) start [2025-03-30 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792643', 'tblTempUsageDetail_20' ) end [2025-03-30 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:55:22] Production.INFO: ==1062== Releasing lock... [2025-03-30 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:56:05 [end_date_ymd] => 2025-03-30 00:56:05 [RateCDR] => 1 ) [2025-03-30 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:56:05' and `end` < '2025-03-30 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-03-30 00:56:18] Production.INFO: count ==1122 [2025-03-30 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:56:05 - End Time 2025-03-30 00:56:05 [2025-03-30 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792648', 'tblTempUsageDetail_20' ) start [2025-03-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792648', 'tblTempUsageDetail_20' ) end [2025-03-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792648', 'tblTempVendorCDR_20' ) start [2025-03-30 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792648', 'tblTempVendorCDR_20' ) end [2025-03-30 00:56:18] Production.INFO: ProcessCDR(1,14792648,1,1,2) [2025-03-30 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792648', 'tblTempUsageDetail_20' ) start [2025-03-30 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792648', 'tblTempUsageDetail_20' ) end [2025-03-30 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:56:22] Production.INFO: ==1140== Releasing lock... [2025-03-30 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:57:05 [end_date_ymd] => 2025-03-30 00:57:05 [RateCDR] => 1 ) [2025-03-30 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:57:05' and `end` < '2025-03-30 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:57:18] Production.INFO: count ==1122 [2025-03-30 00:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:57:05 - End Time 2025-03-30 00:57:05 [2025-03-30 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792653', 'tblTempUsageDetail_20' ) start [2025-03-30 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792653', 'tblTempUsageDetail_20' ) end [2025-03-30 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792653', 'tblTempVendorCDR_20' ) start [2025-03-30 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792653', 'tblTempVendorCDR_20' ) end [2025-03-30 00:57:19] Production.INFO: ProcessCDR(1,14792653,1,1,2) [2025-03-30 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792653', 'tblTempUsageDetail_20' ) start [2025-03-30 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792653', 'tblTempUsageDetail_20' ) end [2025-03-30 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:57:22] Production.INFO: ==1221== Releasing lock... [2025-03-30 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:58:05 [end_date_ymd] => 2025-03-30 00:58:05 [RateCDR] => 1 ) [2025-03-30 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:58:05' and `end` < '2025-03-30 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-03-30 00:58:18] Production.INFO: count ==1121 [2025-03-30 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 21:58:05 - End Time 2025-03-30 00:58:05 [2025-03-30 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792658', 'tblTempUsageDetail_20' ) start [2025-03-30 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792658', 'tblTempUsageDetail_20' ) end [2025-03-30 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792658', 'tblTempVendorCDR_20' ) start [2025-03-30 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792658', 'tblTempVendorCDR_20' ) end [2025-03-30 00:58:18] Production.INFO: ProcessCDR(1,14792658,1,1,2) [2025-03-30 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792658', 'tblTempUsageDetail_20' ) start [2025-03-30 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792658', 'tblTempUsageDetail_20' ) end [2025-03-30 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:58:22] Production.INFO: ==1304== Releasing lock... [2025-03-30 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:58:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 21:59:06 [end_date_ymd] => 2025-03-30 00:59:06 [RateCDR] => 1 ) [2025-03-30 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 21:59:06' and `end` < '2025-03-30 00:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 00:59:18] Production.INFO: count ==1119 [2025-03-30 00:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 21:59:06 - End Time 2025-03-30 00:59:06 [2025-03-30 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792663', 'tblTempUsageDetail_20' ) start [2025-03-30 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792663', 'tblTempUsageDetail_20' ) end [2025-03-30 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792663', 'tblTempVendorCDR_20' ) start [2025-03-30 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792663', 'tblTempVendorCDR_20' ) end [2025-03-30 00:59:19] Production.INFO: ProcessCDR(1,14792663,1,1,2) [2025-03-30 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792663', 'tblTempUsageDetail_20' ) start [2025-03-30 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792663', 'tblTempUsageDetail_20' ) end [2025-03-30 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 00:59:22] Production.INFO: ==1376== Releasing lock... [2025-03-30 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 00:59:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:00:05 [end_date_ymd] => 2025-03-30 01:00:05 [RateCDR] => 1 ) [2025-03-30 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` >= '2025-03-29 22:00:05' and `end` < '2025-03-30 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-03-30 01:00:18] Production.INFO: count ==1129 [2025-03-30 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:00:05 - End Time 2025-03-30 01:00:05 [2025-03-30 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792669', 'tblTempUsageDetail_20' ) start [2025-03-30 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792669', 'tblTempUsageDetail_20' ) end [2025-03-30 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792669', 'tblTempVendorCDR_20' ) start [2025-03-30 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792669', 'tblTempVendorCDR_20' ) end [2025-03-30 01:00:19] Production.INFO: ProcessCDR(1,14792669,1,1,2) [2025-03-30 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792669', 'tblTempUsageDetail_20' ) start [2025-03-30 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792669', 'tblTempUsageDetail_20' ) end [2025-03-30 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:00:22] Production.INFO: ==1451== Releasing lock... [2025-03-30 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:00:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:01:05 [end_date_ymd] => 2025-03-30 01:01:05 [RateCDR] => 1 ) [2025-03-30 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:01:05' and `end` < '2025-03-30 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-03-30 01:01:18] Production.INFO: count ==1144 [2025-03-30 01:01:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:01:05 - End Time 2025-03-30 01:01:05 [2025-03-30 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792674', 'tblTempUsageDetail_20' ) start [2025-03-30 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792674', 'tblTempUsageDetail_20' ) end [2025-03-30 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792674', 'tblTempVendorCDR_20' ) start [2025-03-30 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792674', 'tblTempVendorCDR_20' ) end [2025-03-30 01:01:19] Production.INFO: ProcessCDR(1,14792674,1,1,2) [2025-03-30 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792674', 'tblTempUsageDetail_20' ) start [2025-03-30 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792674', 'tblTempUsageDetail_20' ) end [2025-03-30 01:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:01:24] Production.INFO: ==1580== Releasing lock... [2025-03-30 01:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:01:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:02:05 [end_date_ymd] => 2025-03-30 01:02:05 [RateCDR] => 1 ) [2025-03-30 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:02:05' and `end` < '2025-03-30 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:02:18] Production.INFO: count ==1146 [2025-03-30 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:02:05 - End Time 2025-03-30 01:02:05 [2025-03-30 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792679', 'tblTempUsageDetail_20' ) start [2025-03-30 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792679', 'tblTempUsageDetail_20' ) end [2025-03-30 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792679', 'tblTempVendorCDR_20' ) start [2025-03-30 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792679', 'tblTempVendorCDR_20' ) end [2025-03-30 01:02:18] Production.INFO: ProcessCDR(1,14792679,1,1,2) [2025-03-30 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792679', 'tblTempUsageDetail_20' ) start [2025-03-30 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792679', 'tblTempUsageDetail_20' ) end [2025-03-30 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:02:23] Production.INFO: ==1653== Releasing lock... [2025-03-30 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:02:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:03:05 [end_date_ymd] => 2025-03-30 01:03:05 [RateCDR] => 1 ) [2025-03-30 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:03:05' and `end` < '2025-03-30 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-03-30 01:03:18] Production.INFO: count ==1153 [2025-03-30 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:03:05 - End Time 2025-03-30 01:03:05 [2025-03-30 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792684', 'tblTempUsageDetail_20' ) start [2025-03-30 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792684', 'tblTempUsageDetail_20' ) end [2025-03-30 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792684', 'tblTempVendorCDR_20' ) start [2025-03-30 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792684', 'tblTempVendorCDR_20' ) end [2025-03-30 01:03:18] Production.INFO: ProcessCDR(1,14792684,1,1,2) [2025-03-30 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792684', 'tblTempUsageDetail_20' ) start [2025-03-30 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792684', 'tblTempUsageDetail_20' ) end [2025-03-30 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:03:22] Production.INFO: ==1723== Releasing lock... [2025-03-30 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:04:05 [end_date_ymd] => 2025-03-30 01:04:05 [RateCDR] => 1 ) [2025-03-30 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:04:05' and `end` < '2025-03-30 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:04:18] Production.INFO: count ==1158 [2025-03-30 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:04:05 - End Time 2025-03-30 01:04:05 [2025-03-30 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792689', 'tblTempUsageDetail_20' ) start [2025-03-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792689', 'tblTempUsageDetail_20' ) end [2025-03-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792689', 'tblTempVendorCDR_20' ) start [2025-03-30 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792689', 'tblTempVendorCDR_20' ) end [2025-03-30 01:04:18] Production.INFO: ProcessCDR(1,14792689,1,1,2) [2025-03-30 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792689', 'tblTempUsageDetail_20' ) start [2025-03-30 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792689', 'tblTempUsageDetail_20' ) end [2025-03-30 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:04:22] Production.INFO: ==1807== Releasing lock... [2025-03-30 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:04:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:05:05 [end_date_ymd] => 2025-03-30 01:05:05 [RateCDR] => 1 ) [2025-03-30 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:05:05' and `end` < '2025-03-30 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:05:18] Production.INFO: count ==1144 [2025-03-30 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:05:05 - End Time 2025-03-30 01:05:05 [2025-03-30 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792694', 'tblTempUsageDetail_20' ) start [2025-03-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792694', 'tblTempUsageDetail_20' ) end [2025-03-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792694', 'tblTempVendorCDR_20' ) start [2025-03-30 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792694', 'tblTempVendorCDR_20' ) end [2025-03-30 01:05:18] Production.INFO: ProcessCDR(1,14792694,1,1,2) [2025-03-30 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792694', 'tblTempUsageDetail_20' ) start [2025-03-30 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792694', 'tblTempUsageDetail_20' ) end [2025-03-30 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:05:22] Production.INFO: ==1885== Releasing lock... [2025-03-30 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:06:05 [end_date_ymd] => 2025-03-30 01:06:05 [RateCDR] => 1 ) [2025-03-30 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:06:05' and `end` < '2025-03-30 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-03-30 01:06:18] Production.INFO: count ==1141 [2025-03-30 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:06:05 - End Time 2025-03-30 01:06:05 [2025-03-30 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792699', 'tblTempUsageDetail_20' ) start [2025-03-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792699', 'tblTempUsageDetail_20' ) end [2025-03-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792699', 'tblTempVendorCDR_20' ) start [2025-03-30 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792699', 'tblTempVendorCDR_20' ) end [2025-03-30 01:06:18] Production.INFO: ProcessCDR(1,14792699,1,1,2) [2025-03-30 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792699', 'tblTempUsageDetail_20' ) start [2025-03-30 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792699', 'tblTempUsageDetail_20' ) end [2025-03-30 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:06:22] Production.INFO: ==1961== Releasing lock... [2025-03-30 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:06:22] Production.INFO: 38 MB #Memory Used# [2025-03-30 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:07:05 [end_date_ymd] => 2025-03-30 01:07:05 [RateCDR] => 1 ) [2025-03-30 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:07:05' and `end` < '2025-03-30 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:07:18] Production.INFO: count ==1135 [2025-03-30 01:07:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:07:05 - End Time 2025-03-30 01:07:05 [2025-03-30 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792704', 'tblTempUsageDetail_20' ) start [2025-03-30 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792704', 'tblTempUsageDetail_20' ) end [2025-03-30 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792704', 'tblTempVendorCDR_20' ) start [2025-03-30 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792704', 'tblTempVendorCDR_20' ) end [2025-03-30 01:07:19] Production.INFO: ProcessCDR(1,14792704,1,1,2) [2025-03-30 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792704', 'tblTempUsageDetail_20' ) start [2025-03-30 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792704', 'tblTempUsageDetail_20' ) end [2025-03-30 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:07:22] Production.INFO: ==2036== Releasing lock... [2025-03-30 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:08:04 [end_date_ymd] => 2025-03-30 01:08:04 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:08:04' and `end` < '2025-03-30 01: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-03-30 01:08:17] Production.INFO: count ==1129 [2025-03-30 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-29 22:08:04 - End Time 2025-03-30 01:08:04 [2025-03-30 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792709', 'tblTempUsageDetail_20' ) start [2025-03-30 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792709', 'tblTempUsageDetail_20' ) end [2025-03-30 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792709', 'tblTempVendorCDR_20' ) start [2025-03-30 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792709', 'tblTempVendorCDR_20' ) end [2025-03-30 01:08:17] Production.INFO: ProcessCDR(1,14792709,1,1,2) [2025-03-30 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792709', 'tblTempUsageDetail_20' ) start [2025-03-30 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792709', 'tblTempUsageDetail_20' ) end [2025-03-30 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:08:21] Production.INFO: ==2114== Releasing lock... [2025-03-30 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:09:05 [end_date_ymd] => 2025-03-30 01:09:05 [RateCDR] => 1 ) [2025-03-30 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:09:05' and `end` < '2025-03-30 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:09:17] Production.INFO: count ==1112 [2025-03-30 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:09:05 - End Time 2025-03-30 01:09:05 [2025-03-30 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792714', 'tblTempUsageDetail_20' ) start [2025-03-30 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792714', 'tblTempUsageDetail_20' ) end [2025-03-30 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792714', 'tblTempVendorCDR_20' ) start [2025-03-30 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792714', 'tblTempVendorCDR_20' ) end [2025-03-30 01:09:18] Production.INFO: ProcessCDR(1,14792714,1,1,2) [2025-03-30 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792714', 'tblTempUsageDetail_20' ) start [2025-03-30 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792714', 'tblTempUsageDetail_20' ) end [2025-03-30 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:09:21] Production.INFO: ==2190== Releasing lock... [2025-03-30 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:10:07 [end_date_ymd] => 2025-03-30 01:10:07 [RateCDR] => 1 ) [2025-03-30 01:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:10:07' and `end` < '2025-03-30 01:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:10:19] Production.INFO: count ==1127 [2025-03-30 01:10:20] Production.ERROR: pbx CDR StartTime 2025-03-29 22:10:07 - End Time 2025-03-30 01:10:07 [2025-03-30 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792720', 'tblTempUsageDetail_20' ) start [2025-03-30 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792720', 'tblTempUsageDetail_20' ) end [2025-03-30 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792720', 'tblTempVendorCDR_20' ) start [2025-03-30 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792720', 'tblTempVendorCDR_20' ) end [2025-03-30 01:10:20] Production.INFO: ProcessCDR(1,14792720,1,1,2) [2025-03-30 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792720', 'tblTempUsageDetail_20' ) start [2025-03-30 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792720', 'tblTempUsageDetail_20' ) end [2025-03-30 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:10:23] Production.INFO: ==2307== Releasing lock... [2025-03-30 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:11:05 [end_date_ymd] => 2025-03-30 01:11:05 [RateCDR] => 1 ) [2025-03-30 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:11:05' and `end` < '2025-03-30 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-03-30 01:11:18] Production.INFO: count ==1139 [2025-03-30 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:11:05 - End Time 2025-03-30 01:11:05 [2025-03-30 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792725', 'tblTempUsageDetail_20' ) start [2025-03-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792725', 'tblTempUsageDetail_20' ) end [2025-03-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792725', 'tblTempVendorCDR_20' ) start [2025-03-30 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792725', 'tblTempVendorCDR_20' ) end [2025-03-30 01:11:18] Production.INFO: ProcessCDR(1,14792725,1,1,2) [2025-03-30 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792725', 'tblTempUsageDetail_20' ) start [2025-03-30 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792725', 'tblTempUsageDetail_20' ) end [2025-03-30 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:11:22] Production.INFO: ==2389== Releasing lock... [2025-03-30 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:11:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:12:06 [end_date_ymd] => 2025-03-30 01:12:06 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:12:06' and `end` < '2025-03-30 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:12:18] Production.INFO: count ==1134 [2025-03-30 01:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:12:06 - End Time 2025-03-30 01:12:06 [2025-03-30 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792730', 'tblTempUsageDetail_20' ) start [2025-03-30 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792730', 'tblTempUsageDetail_20' ) end [2025-03-30 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792730', 'tblTempVendorCDR_20' ) start [2025-03-30 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792730', 'tblTempVendorCDR_20' ) end [2025-03-30 01:12:19] Production.INFO: ProcessCDR(1,14792730,1,1,2) [2025-03-30 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792730', 'tblTempUsageDetail_20' ) start [2025-03-30 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792730', 'tblTempUsageDetail_20' ) end [2025-03-30 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:12:22] Production.INFO: ==2469== Releasing lock... [2025-03-30 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:12:22] Production.INFO: 38 MB #Memory Used# [2025-03-30 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:13:05 [end_date_ymd] => 2025-03-30 01:13:05 [RateCDR] => 1 ) [2025-03-30 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:13:05' and `end` < '2025-03-30 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-03-30 01:13:18] Production.INFO: count ==1133 [2025-03-30 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:13:05 - End Time 2025-03-30 01:13:05 [2025-03-30 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792735', 'tblTempUsageDetail_20' ) start [2025-03-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792735', 'tblTempUsageDetail_20' ) end [2025-03-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792735', 'tblTempVendorCDR_20' ) start [2025-03-30 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792735', 'tblTempVendorCDR_20' ) end [2025-03-30 01:13:18] Production.INFO: ProcessCDR(1,14792735,1,1,2) [2025-03-30 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792735', 'tblTempUsageDetail_20' ) start [2025-03-30 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792735', 'tblTempUsageDetail_20' ) end [2025-03-30 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:13:22] Production.INFO: ==2549== Releasing lock... [2025-03-30 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:13:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:14:06 [end_date_ymd] => 2025-03-30 01:14:06 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:14:06' and `end` < '2025-03-30 01: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-03-30 01:14:18] Production.INFO: count ==1130 [2025-03-30 01:14:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:14:06 - End Time 2025-03-30 01:14:06 [2025-03-30 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792740', 'tblTempUsageDetail_20' ) start [2025-03-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792740', 'tblTempUsageDetail_20' ) end [2025-03-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792740', 'tblTempVendorCDR_20' ) start [2025-03-30 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792740', 'tblTempVendorCDR_20' ) end [2025-03-30 01:14:19] Production.INFO: ProcessCDR(1,14792740,1,1,2) [2025-03-30 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792740', 'tblTempUsageDetail_20' ) start [2025-03-30 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792740', 'tblTempUsageDetail_20' ) end [2025-03-30 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:14:22] Production.INFO: ==2624== Releasing lock... [2025-03-30 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:14:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:15:05 [end_date_ymd] => 2025-03-30 01:15:05 [RateCDR] => 1 ) [2025-03-30 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:15:05' and `end` < '2025-03-30 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:15:18] Production.INFO: count ==1120 [2025-03-30 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:15:05 - End Time 2025-03-30 01:15:05 [2025-03-30 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792745', 'tblTempUsageDetail_20' ) start [2025-03-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792745', 'tblTempUsageDetail_20' ) end [2025-03-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792745', 'tblTempVendorCDR_20' ) start [2025-03-30 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792745', 'tblTempVendorCDR_20' ) end [2025-03-30 01:15:18] Production.INFO: ProcessCDR(1,14792745,1,1,2) [2025-03-30 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792745', 'tblTempUsageDetail_20' ) start [2025-03-30 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792745', 'tblTempUsageDetail_20' ) end [2025-03-30 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:15:22] Production.INFO: ==2701== Releasing lock... [2025-03-30 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:16:05 [end_date_ymd] => 2025-03-30 01:16:05 [RateCDR] => 1 ) [2025-03-30 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:16:05' and `end` < '2025-03-30 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-03-30 01:16:18] Production.INFO: count ==1123 [2025-03-30 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:16:05 - End Time 2025-03-30 01:16:05 [2025-03-30 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792750', 'tblTempUsageDetail_20' ) start [2025-03-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792750', 'tblTempUsageDetail_20' ) end [2025-03-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792750', 'tblTempVendorCDR_20' ) start [2025-03-30 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792750', 'tblTempVendorCDR_20' ) end [2025-03-30 01:16:18] Production.INFO: ProcessCDR(1,14792750,1,1,2) [2025-03-30 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792750', 'tblTempUsageDetail_20' ) start [2025-03-30 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792750', 'tblTempUsageDetail_20' ) end [2025-03-30 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:16:22] Production.INFO: ==2778== Releasing lock... [2025-03-30 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-30 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:17:05 [end_date_ymd] => 2025-03-30 01:17:05 [RateCDR] => 1 ) [2025-03-30 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:17:05' and `end` < '2025-03-30 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:17:18] Production.INFO: count ==1122 [2025-03-30 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:17:05 - End Time 2025-03-30 01:17:05 [2025-03-30 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792755', 'tblTempUsageDetail_20' ) start [2025-03-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792755', 'tblTempUsageDetail_20' ) end [2025-03-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792755', 'tblTempVendorCDR_20' ) start [2025-03-30 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792755', 'tblTempVendorCDR_20' ) end [2025-03-30 01:17:18] Production.INFO: ProcessCDR(1,14792755,1,1,2) [2025-03-30 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792755', 'tblTempUsageDetail_20' ) start [2025-03-30 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792755', 'tblTempUsageDetail_20' ) end [2025-03-30 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:17:22] Production.INFO: ==2861== Releasing lock... [2025-03-30 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:17:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:18:05 [end_date_ymd] => 2025-03-30 01:18:05 [RateCDR] => 1 ) [2025-03-30 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:18:05' and `end` < '2025-03-30 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-03-30 01:18:18] Production.INFO: count ==1104 [2025-03-30 01:18:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:18:05 - End Time 2025-03-30 01:18:05 [2025-03-30 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792760', 'tblTempUsageDetail_20' ) start [2025-03-30 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792760', 'tblTempUsageDetail_20' ) end [2025-03-30 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792760', 'tblTempVendorCDR_20' ) start [2025-03-30 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792760', 'tblTempVendorCDR_20' ) end [2025-03-30 01:18:19] Production.INFO: ProcessCDR(1,14792760,1,1,2) [2025-03-30 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792760', 'tblTempUsageDetail_20' ) start [2025-03-30 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792760', 'tblTempUsageDetail_20' ) end [2025-03-30 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:18:22] Production.INFO: ==2951== Releasing lock... [2025-03-30 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:19:05 [end_date_ymd] => 2025-03-30 01:19:05 [RateCDR] => 1 ) [2025-03-30 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:19:05' and `end` < '2025-03-30 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-03-30 01:19:18] Production.INFO: count ==1103 [2025-03-30 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:19:05 - End Time 2025-03-30 01:19:05 [2025-03-30 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792765', 'tblTempUsageDetail_20' ) start [2025-03-30 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792765', 'tblTempUsageDetail_20' ) end [2025-03-30 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792765', 'tblTempVendorCDR_20' ) start [2025-03-30 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792765', 'tblTempVendorCDR_20' ) end [2025-03-30 01:19:18] Production.INFO: ProcessCDR(1,14792765,1,1,2) [2025-03-30 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792765', 'tblTempUsageDetail_20' ) start [2025-03-30 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792765', 'tblTempUsageDetail_20' ) end [2025-03-30 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:19:22] Production.INFO: ==3021== Releasing lock... [2025-03-30 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:20:06 [end_date_ymd] => 2025-03-30 01:20:06 [RateCDR] => 1 ) [2025-03-30 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:20:06' and `end` < '2025-03-30 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:20:19] Production.INFO: count ==1111 [2025-03-30 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:20:06 - End Time 2025-03-30 01:20:06 [2025-03-30 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792770', 'tblTempUsageDetail_20' ) start [2025-03-30 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792770', 'tblTempUsageDetail_20' ) end [2025-03-30 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792770', 'tblTempVendorCDR_20' ) start [2025-03-30 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792770', 'tblTempVendorCDR_20' ) end [2025-03-30 01:20:19] Production.INFO: ProcessCDR(1,14792770,1,1,2) [2025-03-30 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792770', 'tblTempUsageDetail_20' ) start [2025-03-30 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792770', 'tblTempUsageDetail_20' ) end [2025-03-30 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:20:24] Production.INFO: ==3101== Releasing lock... [2025-03-30 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:21:05 [end_date_ymd] => 2025-03-30 01:21:05 [RateCDR] => 1 ) [2025-03-30 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:21:05' and `end` < '2025-03-30 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-03-30 01:21:17] Production.INFO: count ==1115 [2025-03-30 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:21:05 - End Time 2025-03-30 01:21:05 [2025-03-30 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792776', 'tblTempUsageDetail_20' ) start [2025-03-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792776', 'tblTempUsageDetail_20' ) end [2025-03-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792776', 'tblTempVendorCDR_20' ) start [2025-03-30 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792776', 'tblTempVendorCDR_20' ) end [2025-03-30 01:21:18] Production.INFO: ProcessCDR(1,14792776,1,1,2) [2025-03-30 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792776', 'tblTempUsageDetail_20' ) start [2025-03-30 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792776', 'tblTempUsageDetail_20' ) end [2025-03-30 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:21:21] Production.INFO: ==3184== Releasing lock... [2025-03-30 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:21:21] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:22:06 [end_date_ymd] => 2025-03-30 01:22:06 [RateCDR] => 1 ) [2025-03-30 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:22:06' and `end` < '2025-03-30 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:22:18] Production.INFO: count ==1112 [2025-03-30 01:22:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:22:06 - End Time 2025-03-30 01:22:06 [2025-03-30 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792781', 'tblTempUsageDetail_20' ) start [2025-03-30 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792781', 'tblTempUsageDetail_20' ) end [2025-03-30 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792781', 'tblTempVendorCDR_20' ) start [2025-03-30 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792781', 'tblTempVendorCDR_20' ) end [2025-03-30 01:22:19] Production.INFO: ProcessCDR(1,14792781,1,1,2) [2025-03-30 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792781', 'tblTempUsageDetail_20' ) start [2025-03-30 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792781', 'tblTempUsageDetail_20' ) end [2025-03-30 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:22:22] Production.INFO: ==3261== Releasing lock... [2025-03-30 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:23:05 [end_date_ymd] => 2025-03-30 01:23:05 [RateCDR] => 1 ) [2025-03-30 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:23:05' and `end` < '2025-03-30 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-03-30 01:23:17] Production.INFO: count ==1110 [2025-03-30 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:23:05 - End Time 2025-03-30 01:23:05 [2025-03-30 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792786', 'tblTempUsageDetail_20' ) start [2025-03-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792786', 'tblTempUsageDetail_20' ) end [2025-03-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792786', 'tblTempVendorCDR_20' ) start [2025-03-30 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792786', 'tblTempVendorCDR_20' ) end [2025-03-30 01:23:18] Production.INFO: ProcessCDR(1,14792786,1,1,2) [2025-03-30 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792786', 'tblTempUsageDetail_20' ) start [2025-03-30 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792786', 'tblTempUsageDetail_20' ) end [2025-03-30 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:23:22] Production.INFO: ==3336== Releasing lock... [2025-03-30 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:23:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:24:05 [end_date_ymd] => 2025-03-30 01:24:05 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:24:05' and `end` < '2025-03-30 01: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-03-30 01:24:17] Production.INFO: count ==1116 [2025-03-30 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:24:05 - End Time 2025-03-30 01:24:05 [2025-03-30 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792791', 'tblTempUsageDetail_20' ) start [2025-03-30 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792791', 'tblTempUsageDetail_20' ) end [2025-03-30 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792791', 'tblTempVendorCDR_20' ) start [2025-03-30 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792791', 'tblTempVendorCDR_20' ) end [2025-03-30 01:24:18] Production.INFO: ProcessCDR(1,14792791,1,1,2) [2025-03-30 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792791', 'tblTempUsageDetail_20' ) start [2025-03-30 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792791', 'tblTempUsageDetail_20' ) end [2025-03-30 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:24:21] Production.INFO: ==3415== Releasing lock... [2025-03-30 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:24:21] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:25:05 [end_date_ymd] => 2025-03-30 01:25:05 [RateCDR] => 1 ) [2025-03-30 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:25:05' and `end` < '2025-03-30 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-03-30 01:25:18] Production.INFO: count ==1116 [2025-03-30 01:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:25:05 - End Time 2025-03-30 01:25:05 [2025-03-30 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792796', 'tblTempUsageDetail_20' ) start [2025-03-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792796', 'tblTempUsageDetail_20' ) end [2025-03-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792796', 'tblTempVendorCDR_20' ) start [2025-03-30 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792796', 'tblTempVendorCDR_20' ) end [2025-03-30 01:25:19] Production.INFO: ProcessCDR(1,14792796,1,1,2) [2025-03-30 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792796', 'tblTempUsageDetail_20' ) start [2025-03-30 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792796', 'tblTempUsageDetail_20' ) end [2025-03-30 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:25:22] Production.INFO: ==3527== Releasing lock... [2025-03-30 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:25:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:26:05 [end_date_ymd] => 2025-03-30 01:26:05 [RateCDR] => 1 ) [2025-03-30 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:26:05' and `end` < '2025-03-30 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-03-30 01:26:17] Production.INFO: count ==1116 [2025-03-30 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:26:05 - End Time 2025-03-30 01:26:05 [2025-03-30 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792801', 'tblTempUsageDetail_20' ) start [2025-03-30 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792801', 'tblTempUsageDetail_20' ) end [2025-03-30 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792801', 'tblTempVendorCDR_20' ) start [2025-03-30 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792801', 'tblTempVendorCDR_20' ) end [2025-03-30 01:26:18] Production.INFO: ProcessCDR(1,14792801,1,1,2) [2025-03-30 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792801', 'tblTempUsageDetail_20' ) start [2025-03-30 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792801', 'tblTempUsageDetail_20' ) end [2025-03-30 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:26:21] Production.INFO: ==3606== Releasing lock... [2025-03-30 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:26:21] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:27:05 [end_date_ymd] => 2025-03-30 01:27:05 [RateCDR] => 1 ) [2025-03-30 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:27:05' and `end` < '2025-03-30 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-03-30 01:27:18] Production.INFO: count ==1121 [2025-03-30 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:27:05 - End Time 2025-03-30 01:27:05 [2025-03-30 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792806', 'tblTempUsageDetail_20' ) start [2025-03-30 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792806', 'tblTempUsageDetail_20' ) end [2025-03-30 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792806', 'tblTempVendorCDR_20' ) start [2025-03-30 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792806', 'tblTempVendorCDR_20' ) end [2025-03-30 01:27:18] Production.INFO: ProcessCDR(1,14792806,1,1,2) [2025-03-30 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792806', 'tblTempUsageDetail_20' ) start [2025-03-30 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792806', 'tblTempUsageDetail_20' ) end [2025-03-30 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:27:22] Production.INFO: ==3681== Releasing lock... [2025-03-30 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:27:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:28:05 [end_date_ymd] => 2025-03-30 01:28:05 [RateCDR] => 1 ) [2025-03-30 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:28:05' and `end` < '2025-03-30 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-03-30 01:28:18] Production.INFO: count ==1113 [2025-03-30 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:28:05 - End Time 2025-03-30 01:28:05 [2025-03-30 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792811', 'tblTempUsageDetail_20' ) start [2025-03-30 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792811', 'tblTempUsageDetail_20' ) end [2025-03-30 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792811', 'tblTempVendorCDR_20' ) start [2025-03-30 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792811', 'tblTempVendorCDR_20' ) end [2025-03-30 01:28:18] Production.INFO: ProcessCDR(1,14792811,1,1,2) [2025-03-30 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792811', 'tblTempUsageDetail_20' ) start [2025-03-30 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792811', 'tblTempUsageDetail_20' ) end [2025-03-30 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:28:22] Production.INFO: ==3758== Releasing lock... [2025-03-30 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:28:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:29:05 [end_date_ymd] => 2025-03-30 01:29:05 [RateCDR] => 1 ) [2025-03-30 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:29:05' and `end` < '2025-03-30 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:29:18] Production.INFO: count ==1096 [2025-03-30 01:29:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:29:05 - End Time 2025-03-30 01:29:05 [2025-03-30 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792816', 'tblTempUsageDetail_20' ) start [2025-03-30 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792816', 'tblTempUsageDetail_20' ) end [2025-03-30 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792816', 'tblTempVendorCDR_20' ) start [2025-03-30 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792816', 'tblTempVendorCDR_20' ) end [2025-03-30 01:29:19] Production.INFO: ProcessCDR(1,14792816,1,1,2) [2025-03-30 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792816', 'tblTempUsageDetail_20' ) start [2025-03-30 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792816', 'tblTempUsageDetail_20' ) end [2025-03-30 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:29:22] Production.INFO: ==3839== Releasing lock... [2025-03-30 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:29:22] Production.INFO: 37 MB #Memory Used# [2025-03-30 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:30:06 [end_date_ymd] => 2025-03-30 01:30:06 [RateCDR] => 1 ) [2025-03-30 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:30:06' and `end` < '2025-03-30 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:30:19] Production.INFO: count ==1106 [2025-03-30 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:30:06 - End Time 2025-03-30 01:30:06 [2025-03-30 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792821', 'tblTempUsageDetail_20' ) start [2025-03-30 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792821', 'tblTempUsageDetail_20' ) end [2025-03-30 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792821', 'tblTempVendorCDR_20' ) start [2025-03-30 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792821', 'tblTempVendorCDR_20' ) end [2025-03-30 01:30:19] Production.INFO: ProcessCDR(1,14792821,1,1,2) [2025-03-30 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792821', 'tblTempUsageDetail_20' ) start [2025-03-30 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792821', 'tblTempUsageDetail_20' ) end [2025-03-30 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:30:23] Production.INFO: ==3921== Releasing lock... [2025-03-30 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:30:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-30 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:31:06 [end_date_ymd] => 2025-03-30 01:31:06 [RateCDR] => 1 ) [2025-03-30 01:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:31:06' and `end` < '2025-03-30 01:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:31:18] Production.INFO: count ==1105 [2025-03-30 01:31:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:31:06 - End Time 2025-03-30 01:31:06 [2025-03-30 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792827', 'tblTempUsageDetail_20' ) start [2025-03-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792827', 'tblTempUsageDetail_20' ) end [2025-03-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792827', 'tblTempVendorCDR_20' ) start [2025-03-30 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792827', 'tblTempVendorCDR_20' ) end [2025-03-30 01:31:19] Production.INFO: ProcessCDR(1,14792827,1,1,2) [2025-03-30 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792827', 'tblTempUsageDetail_20' ) start [2025-03-30 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792827', 'tblTempUsageDetail_20' ) end [2025-03-30 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:31:22] Production.INFO: ==3996== Releasing lock... [2025-03-30 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-30 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:32:04 [end_date_ymd] => 2025-03-30 01:32:04 [RateCDR] => 1 ) [2025-03-30 01:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:32:04' and `end` < '2025-03-30 01:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:32:17] Production.INFO: count ==1089 [2025-03-30 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:32:04 - End Time 2025-03-30 01:32:04 [2025-03-30 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792832', 'tblTempUsageDetail_20' ) start [2025-03-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792832', 'tblTempUsageDetail_20' ) end [2025-03-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792832', 'tblTempVendorCDR_20' ) start [2025-03-30 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792832', 'tblTempVendorCDR_20' ) end [2025-03-30 01:32:18] Production.INFO: ProcessCDR(1,14792832,1,1,2) [2025-03-30 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792832', 'tblTempUsageDetail_20' ) start [2025-03-30 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792832', 'tblTempUsageDetail_20' ) end [2025-03-30 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:32:21] Production.INFO: ==4077== Releasing lock... [2025-03-30 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:32:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:33:06 [end_date_ymd] => 2025-03-30 01:33:06 [RateCDR] => 1 ) [2025-03-30 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:33:06' and `end` < '2025-03-30 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:33:18] Production.INFO: count ==1077 [2025-03-30 01:33:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:33:06 - End Time 2025-03-30 01:33:06 [2025-03-30 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792837', 'tblTempUsageDetail_20' ) start [2025-03-30 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792837', 'tblTempUsageDetail_20' ) end [2025-03-30 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792837', 'tblTempVendorCDR_20' ) start [2025-03-30 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792837', 'tblTempVendorCDR_20' ) end [2025-03-30 01:33:19] Production.INFO: ProcessCDR(1,14792837,1,1,2) [2025-03-30 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792837', 'tblTempUsageDetail_20' ) start [2025-03-30 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792837', 'tblTempUsageDetail_20' ) end [2025-03-30 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:33:22] Production.INFO: ==4155== Releasing lock... [2025-03-30 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:33:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:34:05 [end_date_ymd] => 2025-03-30 01:34:05 [RateCDR] => 1 ) [2025-03-30 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:34:05' and `end` < '2025-03-30 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-03-30 01:34:18] Production.INFO: count ==1075 [2025-03-30 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:34:05 - End Time 2025-03-30 01:34:05 [2025-03-30 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792842', 'tblTempUsageDetail_20' ) start [2025-03-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792842', 'tblTempUsageDetail_20' ) end [2025-03-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792842', 'tblTempVendorCDR_20' ) start [2025-03-30 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792842', 'tblTempVendorCDR_20' ) end [2025-03-30 01:34:18] Production.INFO: ProcessCDR(1,14792842,1,1,2) [2025-03-30 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792842', 'tblTempUsageDetail_20' ) start [2025-03-30 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792842', 'tblTempUsageDetail_20' ) end [2025-03-30 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:34:22] Production.INFO: ==4230== Releasing lock... [2025-03-30 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:34:22] Production.INFO: 36 MB #Memory Used# [2025-03-30 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:35:05 [end_date_ymd] => 2025-03-30 01:35:05 [RateCDR] => 1 ) [2025-03-30 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:35:05' and `end` < '2025-03-30 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:35:18] Production.INFO: count ==1057 [2025-03-30 01:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:35:05 - End Time 2025-03-30 01:35:05 [2025-03-30 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792847', 'tblTempUsageDetail_20' ) start [2025-03-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792847', 'tblTempUsageDetail_20' ) end [2025-03-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792847', 'tblTempVendorCDR_20' ) start [2025-03-30 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792847', 'tblTempVendorCDR_20' ) end [2025-03-30 01:35:18] Production.INFO: ProcessCDR(1,14792847,1,1,2) [2025-03-30 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792847', 'tblTempUsageDetail_20' ) start [2025-03-30 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792847', 'tblTempUsageDetail_20' ) end [2025-03-30 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:35:22] Production.INFO: ==4306== Releasing lock... [2025-03-30 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:35:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:36:05 [end_date_ymd] => 2025-03-30 01:36:05 [RateCDR] => 1 ) [2025-03-30 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:36:05' and `end` < '2025-03-30 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-03-30 01:36:17] Production.INFO: count ==1056 [2025-03-30 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:36:05 - End Time 2025-03-30 01:36:05 [2025-03-30 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792852', 'tblTempUsageDetail_20' ) start [2025-03-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792852', 'tblTempUsageDetail_20' ) end [2025-03-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792852', 'tblTempVendorCDR_20' ) start [2025-03-30 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792852', 'tblTempVendorCDR_20' ) end [2025-03-30 01:36:18] Production.INFO: ProcessCDR(1,14792852,1,1,2) [2025-03-30 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792852', 'tblTempUsageDetail_20' ) start [2025-03-30 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792852', 'tblTempUsageDetail_20' ) end [2025-03-30 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:36:21] Production.INFO: ==4384== Releasing lock... [2025-03-30 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:37:05 [end_date_ymd] => 2025-03-30 01:37:05 [RateCDR] => 1 ) [2025-03-30 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:37:05' and `end` < '2025-03-30 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-03-30 01:37:18] Production.INFO: count ==1052 [2025-03-30 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:37:05 - End Time 2025-03-30 01:37:05 [2025-03-30 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792857', 'tblTempUsageDetail_20' ) start [2025-03-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792857', 'tblTempUsageDetail_20' ) end [2025-03-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792857', 'tblTempVendorCDR_20' ) start [2025-03-30 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792857', 'tblTempVendorCDR_20' ) end [2025-03-30 01:37:18] Production.INFO: ProcessCDR(1,14792857,1,1,2) [2025-03-30 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792857', 'tblTempUsageDetail_20' ) start [2025-03-30 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792857', 'tblTempUsageDetail_20' ) end [2025-03-30 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:37:22] Production.INFO: ==4464== Releasing lock... [2025-03-30 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:37:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:38:06 [end_date_ymd] => 2025-03-30 01:38:06 [RateCDR] => 1 ) [2025-03-30 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:38:06' and `end` < '2025-03-30 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:38:19] Production.INFO: count ==1037 [2025-03-30 01:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:38:06 - End Time 2025-03-30 01:38:06 [2025-03-30 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792862', 'tblTempUsageDetail_20' ) start [2025-03-30 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792862', 'tblTempUsageDetail_20' ) end [2025-03-30 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792862', 'tblTempVendorCDR_20' ) start [2025-03-30 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792862', 'tblTempVendorCDR_20' ) end [2025-03-30 01:38:19] Production.INFO: ProcessCDR(1,14792862,1,1,2) [2025-03-30 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792862', 'tblTempUsageDetail_20' ) start [2025-03-30 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792862', 'tblTempUsageDetail_20' ) end [2025-03-30 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:38:23] Production.INFO: ==4541== Releasing lock... [2025-03-30 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:38:23] Production.INFO: 36 MB #Memory Used# [2025-03-30 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:39:05 [end_date_ymd] => 2025-03-30 01:39:05 [RateCDR] => 1 ) [2025-03-30 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:39:05' and `end` < '2025-03-30 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-03-30 01:39:18] Production.INFO: count ==1031 [2025-03-30 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:39:05 - End Time 2025-03-30 01:39:05 [2025-03-30 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792867', 'tblTempUsageDetail_20' ) start [2025-03-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792867', 'tblTempUsageDetail_20' ) end [2025-03-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792867', 'tblTempVendorCDR_20' ) start [2025-03-30 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792867', 'tblTempVendorCDR_20' ) end [2025-03-30 01:39:18] Production.INFO: ProcessCDR(1,14792867,1,1,2) [2025-03-30 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792867', 'tblTempUsageDetail_20' ) start [2025-03-30 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792867', 'tblTempUsageDetail_20' ) end [2025-03-30 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:39:22] Production.INFO: ==4619== Releasing lock... [2025-03-30 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:40:06 [end_date_ymd] => 2025-03-30 01:40:06 [RateCDR] => 1 ) [2025-03-30 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:40:06' and `end` < '2025-03-30 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:40:19] Production.INFO: count ==1041 [2025-03-30 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:40:06 - End Time 2025-03-30 01:40:06 [2025-03-30 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792873', 'tblTempUsageDetail_20' ) start [2025-03-30 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792873', 'tblTempUsageDetail_20' ) end [2025-03-30 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792873', 'tblTempVendorCDR_20' ) start [2025-03-30 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792873', 'tblTempVendorCDR_20' ) end [2025-03-30 01:40:19] Production.INFO: ProcessCDR(1,14792873,1,1,2) [2025-03-30 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792873', 'tblTempUsageDetail_20' ) start [2025-03-30 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792873', 'tblTempUsageDetail_20' ) end [2025-03-30 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:40:23] Production.INFO: ==4742== Releasing lock... [2025-03-30 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:41:04 [end_date_ymd] => 2025-03-30 01:41:04 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:41:04' and `end` < '2025-03-30 01: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-03-30 01:41:17] Production.INFO: count ==1043 [2025-03-30 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:41:04 - End Time 2025-03-30 01:41:04 [2025-03-30 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792878', 'tblTempUsageDetail_20' ) start [2025-03-30 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792878', 'tblTempUsageDetail_20' ) end [2025-03-30 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792878', 'tblTempVendorCDR_20' ) start [2025-03-30 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792878', 'tblTempVendorCDR_20' ) end [2025-03-30 01:41:18] Production.INFO: ProcessCDR(1,14792878,1,1,2) [2025-03-30 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792878', 'tblTempUsageDetail_20' ) start [2025-03-30 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792878', 'tblTempUsageDetail_20' ) end [2025-03-30 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:41:21] Production.INFO: ==4820== Releasing lock... [2025-03-30 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:41:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:42:06 [end_date_ymd] => 2025-03-30 01:42:06 [RateCDR] => 1 ) [2025-03-30 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:42:06' and `end` < '2025-03-30 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:42:19] Production.INFO: count ==1021 [2025-03-30 01:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:42:06 - End Time 2025-03-30 01:42:06 [2025-03-30 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792883', 'tblTempUsageDetail_20' ) start [2025-03-30 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792883', 'tblTempUsageDetail_20' ) end [2025-03-30 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792883', 'tblTempVendorCDR_20' ) start [2025-03-30 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792883', 'tblTempVendorCDR_20' ) end [2025-03-30 01:42:19] Production.INFO: ProcessCDR(1,14792883,1,1,2) [2025-03-30 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792883', 'tblTempUsageDetail_20' ) start [2025-03-30 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792883', 'tblTempUsageDetail_20' ) end [2025-03-30 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:42:23] Production.INFO: ==4900== Releasing lock... [2025-03-30 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:42:23] Production.INFO: 36 MB #Memory Used# [2025-03-30 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:43:05 [end_date_ymd] => 2025-03-30 01:43:05 [RateCDR] => 1 ) [2025-03-30 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:43:05' and `end` < '2025-03-30 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:43:17] Production.INFO: count ==1006 [2025-03-30 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:43:05 - End Time 2025-03-30 01:43:05 [2025-03-30 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792888', 'tblTempUsageDetail_20' ) start [2025-03-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792888', 'tblTempUsageDetail_20' ) end [2025-03-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792888', 'tblTempVendorCDR_20' ) start [2025-03-30 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792888', 'tblTempVendorCDR_20' ) end [2025-03-30 01:43:18] Production.INFO: ProcessCDR(1,14792888,1,1,2) [2025-03-30 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792888', 'tblTempUsageDetail_20' ) start [2025-03-30 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792888', 'tblTempUsageDetail_20' ) end [2025-03-30 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:43:22] Production.INFO: ==4984== Releasing lock... [2025-03-30 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:44:06 [end_date_ymd] => 2025-03-30 01:44:06 [RateCDR] => 1 ) [2025-03-30 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:44:06' and `end` < '2025-03-30 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:44:18] Production.INFO: count ==1019 [2025-03-30 01:44:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:44:06 - End Time 2025-03-30 01:44:06 [2025-03-30 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792893', 'tblTempUsageDetail_20' ) start [2025-03-30 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792893', 'tblTempUsageDetail_20' ) end [2025-03-30 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792893', 'tblTempVendorCDR_20' ) start [2025-03-30 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792893', 'tblTempVendorCDR_20' ) end [2025-03-30 01:44:19] Production.INFO: ProcessCDR(1,14792893,1,1,2) [2025-03-30 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792893', 'tblTempUsageDetail_20' ) start [2025-03-30 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792893', 'tblTempUsageDetail_20' ) end [2025-03-30 01:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:44:24] Production.INFO: ==5063== Releasing lock... [2025-03-30 01:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:44:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:45:05 [end_date_ymd] => 2025-03-30 01:45:05 [RateCDR] => 1 ) [2025-03-30 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:45:05' and `end` < '2025-03-30 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:45:17] Production.INFO: count ==1026 [2025-03-30 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:45:05 - End Time 2025-03-30 01:45:05 [2025-03-30 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792898', 'tblTempUsageDetail_20' ) start [2025-03-30 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792898', 'tblTempUsageDetail_20' ) end [2025-03-30 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792898', 'tblTempVendorCDR_20' ) start [2025-03-30 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792898', 'tblTempVendorCDR_20' ) end [2025-03-30 01:45:18] Production.INFO: ProcessCDR(1,14792898,1,1,2) [2025-03-30 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792898', 'tblTempUsageDetail_20' ) start [2025-03-30 01:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792898', 'tblTempUsageDetail_20' ) end [2025-03-30 01:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:45:23] Production.INFO: ==5145== Releasing lock... [2025-03-30 01:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:45:23] Production.INFO: 36 MB #Memory Used# [2025-03-30 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:46:05 [end_date_ymd] => 2025-03-30 01:46:05 [RateCDR] => 1 ) [2025-03-30 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:46:05' and `end` < '2025-03-30 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-03-30 01:46:18] Production.INFO: count ==1005 [2025-03-30 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:46:05 - End Time 2025-03-30 01:46:05 [2025-03-30 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792903', 'tblTempUsageDetail_20' ) start [2025-03-30 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792903', 'tblTempUsageDetail_20' ) end [2025-03-30 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792903', 'tblTempVendorCDR_20' ) start [2025-03-30 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792903', 'tblTempVendorCDR_20' ) end [2025-03-30 01:46:18] Production.INFO: ProcessCDR(1,14792903,1,1,2) [2025-03-30 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792903', 'tblTempUsageDetail_20' ) start [2025-03-30 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792903', 'tblTempUsageDetail_20' ) end [2025-03-30 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:46:21] Production.INFO: ==5221== Releasing lock... [2025-03-30 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:46:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-30 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:47:05 [end_date_ymd] => 2025-03-30 01:47:05 [RateCDR] => 1 ) [2025-03-30 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:47:05' and `end` < '2025-03-30 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:47:17] Production.INFO: count ==998 [2025-03-30 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:47:05 - End Time 2025-03-30 01:47:05 [2025-03-30 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792908', 'tblTempUsageDetail_20' ) start [2025-03-30 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792908', 'tblTempUsageDetail_20' ) end [2025-03-30 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792908', 'tblTempVendorCDR_20' ) start [2025-03-30 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792908', 'tblTempVendorCDR_20' ) end [2025-03-30 01:47:18] Production.INFO: ProcessCDR(1,14792908,1,1,2) [2025-03-30 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792908', 'tblTempUsageDetail_20' ) start [2025-03-30 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792908', 'tblTempUsageDetail_20' ) end [2025-03-30 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:47:21] Production.INFO: ==5293== Releasing lock... [2025-03-30 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-30 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:48:05 [end_date_ymd] => 2025-03-30 01:48:05 [RateCDR] => 1 ) [2025-03-30 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:48:05' and `end` < '2025-03-30 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-03-30 01:48:18] Production.INFO: count ==975 [2025-03-30 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:48:05 - End Time 2025-03-30 01:48:05 [2025-03-30 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792913', 'tblTempUsageDetail_20' ) start [2025-03-30 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792913', 'tblTempUsageDetail_20' ) end [2025-03-30 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792913', 'tblTempVendorCDR_20' ) start [2025-03-30 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792913', 'tblTempVendorCDR_20' ) end [2025-03-30 01:48:18] Production.INFO: ProcessCDR(1,14792913,1,1,2) [2025-03-30 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792913', 'tblTempUsageDetail_20' ) start [2025-03-30 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792913', 'tblTempUsageDetail_20' ) end [2025-03-30 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:48:22] Production.INFO: ==5370== Releasing lock... [2025-03-30 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:48:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-30 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:49:06 [end_date_ymd] => 2025-03-30 01:49:06 [RateCDR] => 1 ) [2025-03-30 01: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-03-29 22:49:06' and `end` < '2025-03-30 01: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-03-30 01:49:19] Production.INFO: count ==976 [2025-03-30 01:49:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:49:06 - End Time 2025-03-30 01:49:06 [2025-03-30 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792918', 'tblTempUsageDetail_20' ) start [2025-03-30 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792918', 'tblTempUsageDetail_20' ) end [2025-03-30 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792918', 'tblTempVendorCDR_20' ) start [2025-03-30 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792918', 'tblTempVendorCDR_20' ) end [2025-03-30 01:49:19] Production.INFO: ProcessCDR(1,14792918,1,1,2) [2025-03-30 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792918', 'tblTempUsageDetail_20' ) start [2025-03-30 01:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792918', 'tblTempUsageDetail_20' ) end [2025-03-30 01:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:49:24] Production.INFO: ==5449== Releasing lock... [2025-03-30 01:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:49:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-30 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:50:06 [end_date_ymd] => 2025-03-30 01:50:06 [RateCDR] => 1 ) [2025-03-30 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:50:06' and `end` < '2025-03-30 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-03-30 01:50:18] Production.INFO: count ==984 [2025-03-30 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:50:06 - End Time 2025-03-30 01:50:06 [2025-03-30 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792924', 'tblTempUsageDetail_20' ) start [2025-03-30 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792924', 'tblTempUsageDetail_20' ) end [2025-03-30 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792924', 'tblTempVendorCDR_20' ) start [2025-03-30 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792924', 'tblTempVendorCDR_20' ) end [2025-03-30 01:50:19] Production.INFO: ProcessCDR(1,14792924,1,1,2) [2025-03-30 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792924', 'tblTempUsageDetail_20' ) start [2025-03-30 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792924', 'tblTempUsageDetail_20' ) end [2025-03-30 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:50:22] Production.INFO: ==5523== Releasing lock... [2025-03-30 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:51:05 [end_date_ymd] => 2025-03-30 01:51:05 [RateCDR] => 1 ) [2025-03-30 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:51:05' and `end` < '2025-03-30 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-03-30 01:51:18] Production.INFO: count ==991 [2025-03-30 01:51:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:51:05 - End Time 2025-03-30 01:51:05 [2025-03-30 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792929', 'tblTempUsageDetail_20' ) start [2025-03-30 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792929', 'tblTempUsageDetail_20' ) end [2025-03-30 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792929', 'tblTempVendorCDR_20' ) start [2025-03-30 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792929', 'tblTempVendorCDR_20' ) end [2025-03-30 01:51:19] Production.INFO: ProcessCDR(1,14792929,1,1,2) [2025-03-30 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792929', 'tblTempUsageDetail_20' ) start [2025-03-30 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792929', 'tblTempUsageDetail_20' ) end [2025-03-30 01:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:51:24] Production.INFO: ==5601== Releasing lock... [2025-03-30 01:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:51:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-30 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:52:05 [end_date_ymd] => 2025-03-30 01:52:05 [RateCDR] => 1 ) [2025-03-30 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:52:05' and `end` < '2025-03-30 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-03-30 01:52:18] Production.INFO: count ==1001 [2025-03-30 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:52:05 - End Time 2025-03-30 01:52:05 [2025-03-30 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792934', 'tblTempUsageDetail_20' ) start [2025-03-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792934', 'tblTempUsageDetail_20' ) end [2025-03-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792934', 'tblTempVendorCDR_20' ) start [2025-03-30 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792934', 'tblTempVendorCDR_20' ) end [2025-03-30 01:52:18] Production.INFO: ProcessCDR(1,14792934,1,1,2) [2025-03-30 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792934', 'tblTempUsageDetail_20' ) start [2025-03-30 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792934', 'tblTempUsageDetail_20' ) end [2025-03-30 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:52:21] Production.INFO: ==5679== Releasing lock... [2025-03-30 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:52:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:53:05 [end_date_ymd] => 2025-03-30 01:53:05 [RateCDR] => 1 ) [2025-03-30 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:53:05' and `end` < '2025-03-30 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-03-30 01:53:18] Production.INFO: count ==974 [2025-03-30 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:53:05 - End Time 2025-03-30 01:53:05 [2025-03-30 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792939', 'tblTempUsageDetail_20' ) start [2025-03-30 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792939', 'tblTempUsageDetail_20' ) end [2025-03-30 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792939', 'tblTempVendorCDR_20' ) start [2025-03-30 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792939', 'tblTempVendorCDR_20' ) end [2025-03-30 01:53:18] Production.INFO: ProcessCDR(1,14792939,1,1,2) [2025-03-30 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792939', 'tblTempUsageDetail_20' ) start [2025-03-30 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792939', 'tblTempUsageDetail_20' ) end [2025-03-30 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:53:22] Production.INFO: ==5757== Releasing lock... [2025-03-30 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:53:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-30 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:54:05 [end_date_ymd] => 2025-03-30 01:54:05 [RateCDR] => 1 ) [2025-03-30 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:54:05' and `end` < '2025-03-30 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:54:18] Production.INFO: count ==934 [2025-03-30 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:54:05 - End Time 2025-03-30 01:54:05 [2025-03-30 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792944', 'tblTempUsageDetail_20' ) start [2025-03-30 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792944', 'tblTempUsageDetail_20' ) end [2025-03-30 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792944', 'tblTempVendorCDR_20' ) start [2025-03-30 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792944', 'tblTempVendorCDR_20' ) end [2025-03-30 01:54:18] Production.INFO: ProcessCDR(1,14792944,1,1,2) [2025-03-30 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792944', 'tblTempUsageDetail_20' ) start [2025-03-30 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792944', 'tblTempUsageDetail_20' ) end [2025-03-30 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:54:22] Production.INFO: ==5833== Releasing lock... [2025-03-30 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:54:22] Production.INFO: 35 MB #Memory Used# [2025-03-30 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:55:06 [end_date_ymd] => 2025-03-30 01:55:06 [RateCDR] => 1 ) [2025-03-30 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:55:06' and `end` < '2025-03-30 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:55:18] Production.INFO: count ==927 [2025-03-30 01:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 22:55:06 - End Time 2025-03-30 01:55:06 [2025-03-30 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792949', 'tblTempUsageDetail_20' ) start [2025-03-30 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792949', 'tblTempUsageDetail_20' ) end [2025-03-30 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792949', 'tblTempVendorCDR_20' ) start [2025-03-30 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792949', 'tblTempVendorCDR_20' ) end [2025-03-30 01:55:19] Production.INFO: ProcessCDR(1,14792949,1,1,2) [2025-03-30 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792949', 'tblTempUsageDetail_20' ) start [2025-03-30 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792949', 'tblTempUsageDetail_20' ) end [2025-03-30 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:55:23] Production.INFO: ==5913== Releasing lock... [2025-03-30 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:56:05 [end_date_ymd] => 2025-03-30 01:56:05 [RateCDR] => 1 ) [2025-03-30 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:56:05' and `end` < '2025-03-30 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-03-30 01:56:17] Production.INFO: count ==919 [2025-03-30 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:56:05 - End Time 2025-03-30 01:56:05 [2025-03-30 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792954', 'tblTempUsageDetail_20' ) start [2025-03-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792954', 'tblTempUsageDetail_20' ) end [2025-03-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792954', 'tblTempVendorCDR_20' ) start [2025-03-30 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792954', 'tblTempVendorCDR_20' ) end [2025-03-30 01:56:18] Production.INFO: ProcessCDR(1,14792954,1,1,2) [2025-03-30 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792954', 'tblTempUsageDetail_20' ) start [2025-03-30 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792954', 'tblTempUsageDetail_20' ) end [2025-03-30 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:56:21] Production.INFO: ==6039== Releasing lock... [2025-03-30 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:57:05 [end_date_ymd] => 2025-03-30 01:57:05 [RateCDR] => 1 ) [2025-03-30 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:57:05' and `end` < '2025-03-30 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-03-30 01:57:18] Production.INFO: count ==880 [2025-03-30 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:57:05 - End Time 2025-03-30 01:57:05 [2025-03-30 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792959', 'tblTempUsageDetail_20' ) start [2025-03-30 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792959', 'tblTempUsageDetail_20' ) end [2025-03-30 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792959', 'tblTempVendorCDR_20' ) start [2025-03-30 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792959', 'tblTempVendorCDR_20' ) end [2025-03-30 01:57:18] Production.INFO: ProcessCDR(1,14792959,1,1,2) [2025-03-30 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792959', 'tblTempUsageDetail_20' ) start [2025-03-30 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792959', 'tblTempUsageDetail_20' ) end [2025-03-30 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:57:21] Production.INFO: ==6119== Releasing lock... [2025-03-30 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:57:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:58:06 [end_date_ymd] => 2025-03-30 01:58:06 [RateCDR] => 1 ) [2025-03-30 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:58:06' and `end` < '2025-03-30 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 01:58:18] Production.INFO: count ==849 [2025-03-30 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:58:06 - End Time 2025-03-30 01:58:06 [2025-03-30 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792964', 'tblTempUsageDetail_20' ) start [2025-03-30 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792964', 'tblTempUsageDetail_20' ) end [2025-03-30 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792964', 'tblTempVendorCDR_20' ) start [2025-03-30 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792964', 'tblTempVendorCDR_20' ) end [2025-03-30 01:58:18] Production.INFO: ProcessCDR(1,14792964,1,1,2) [2025-03-30 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792964', 'tblTempUsageDetail_20' ) start [2025-03-30 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792964', 'tblTempUsageDetail_20' ) end [2025-03-30 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:58:22] Production.INFO: ==6200== Releasing lock... [2025-03-30 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:58:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 22:59:05 [end_date_ymd] => 2025-03-30 01:59:05 [RateCDR] => 1 ) [2025-03-30 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 22:59:05' and `end` < '2025-03-30 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-03-30 01:59:18] Production.INFO: count ==851 [2025-03-30 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-29 22:59:05 - End Time 2025-03-30 01:59:05 [2025-03-30 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792969', 'tblTempUsageDetail_20' ) start [2025-03-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792969', 'tblTempUsageDetail_20' ) end [2025-03-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792969', 'tblTempVendorCDR_20' ) start [2025-03-30 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792969', 'tblTempVendorCDR_20' ) end [2025-03-30 01:59:18] Production.INFO: ProcessCDR(1,14792969,1,1,2) [2025-03-30 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792969', 'tblTempUsageDetail_20' ) start [2025-03-30 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792969', 'tblTempUsageDetail_20' ) end [2025-03-30 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 01:59:21] Production.INFO: ==6287== Releasing lock... [2025-03-30 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 01:59:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:00:06 [end_date_ymd] => 2025-03-30 02:00:06 [RateCDR] => 1 ) [2025-03-30 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` >= '2025-03-29 23:00:06' and `end` < '2025-03-30 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-03-30 02:00:19] Production.INFO: count ==864 [2025-03-30 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:00:06 - End Time 2025-03-30 02:00:06 [2025-03-30 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792975', 'tblTempUsageDetail_20' ) start [2025-03-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792975', 'tblTempUsageDetail_20' ) end [2025-03-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792975', 'tblTempVendorCDR_20' ) start [2025-03-30 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792975', 'tblTempVendorCDR_20' ) end [2025-03-30 02:00:19] Production.INFO: ProcessCDR(1,14792975,1,1,2) [2025-03-30 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792975', 'tblTempUsageDetail_20' ) start [2025-03-30 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792975', 'tblTempUsageDetail_20' ) end [2025-03-30 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:00:23] Production.INFO: ==6371== Releasing lock... [2025-03-30 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:01:05 [end_date_ymd] => 2025-03-30 02:01:05 [RateCDR] => 1 ) [2025-03-30 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:01:05' and `end` < '2025-03-30 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-03-30 02:01:18] Production.INFO: count ==882 [2025-03-30 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:01:05 - End Time 2025-03-30 02:01:05 [2025-03-30 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792980', 'tblTempUsageDetail_20' ) start [2025-03-30 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792980', 'tblTempUsageDetail_20' ) end [2025-03-30 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792980', 'tblTempVendorCDR_20' ) start [2025-03-30 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792980', 'tblTempVendorCDR_20' ) end [2025-03-30 02:01:18] Production.INFO: ProcessCDR(1,14792980,1,1,2) [2025-03-30 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792980', 'tblTempUsageDetail_20' ) start [2025-03-30 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792980', 'tblTempUsageDetail_20' ) end [2025-03-30 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:01:22] Production.INFO: ==6467== Releasing lock... [2025-03-30 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:02:06 [end_date_ymd] => 2025-03-30 02:02:06 [RateCDR] => 1 ) [2025-03-30 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:02:06' and `end` < '2025-03-30 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:02:18] Production.INFO: count ==880 [2025-03-30 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:02:06 - End Time 2025-03-30 02:02:06 [2025-03-30 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792985', 'tblTempUsageDetail_20' ) start [2025-03-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792985', 'tblTempUsageDetail_20' ) end [2025-03-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792985', 'tblTempVendorCDR_20' ) start [2025-03-30 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792985', 'tblTempVendorCDR_20' ) end [2025-03-30 02:02:18] Production.INFO: ProcessCDR(1,14792985,1,1,2) [2025-03-30 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792985', 'tblTempUsageDetail_20' ) start [2025-03-30 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792985', 'tblTempUsageDetail_20' ) end [2025-03-30 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:02:22] Production.INFO: ==6632== Releasing lock... [2025-03-30 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:02:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:03:05 [end_date_ymd] => 2025-03-30 02:03:05 [RateCDR] => 1 ) [2025-03-30 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:03:05' and `end` < '2025-03-30 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-03-30 02:03:18] Production.INFO: count ==865 [2025-03-30 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:03:05 - End Time 2025-03-30 02:03:05 [2025-03-30 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792990', 'tblTempUsageDetail_20' ) start [2025-03-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792990', 'tblTempUsageDetail_20' ) end [2025-03-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792990', 'tblTempVendorCDR_20' ) start [2025-03-30 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792990', 'tblTempVendorCDR_20' ) end [2025-03-30 02:03:18] Production.INFO: ProcessCDR(1,14792990,1,1,2) [2025-03-30 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792990', 'tblTempUsageDetail_20' ) start [2025-03-30 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792990', 'tblTempUsageDetail_20' ) end [2025-03-30 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:03:22] Production.INFO: ==6710== Releasing lock... [2025-03-30 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:03:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:04:06 [end_date_ymd] => 2025-03-30 02:04:06 [RateCDR] => 1 ) [2025-03-30 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:04:06' and `end` < '2025-03-30 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:04:19] Production.INFO: count ==844 [2025-03-30 02:04:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:04:06 - End Time 2025-03-30 02:04:06 [2025-03-30 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792995', 'tblTempUsageDetail_20' ) start [2025-03-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14792995', 'tblTempUsageDetail_20' ) end [2025-03-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792995', 'tblTempVendorCDR_20' ) start [2025-03-30 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14792995', 'tblTempVendorCDR_20' ) end [2025-03-30 02:04:19] Production.INFO: ProcessCDR(1,14792995,1,1,2) [2025-03-30 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14792995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14792995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14792995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14792995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792995', 'tblTempUsageDetail_20' ) start [2025-03-30 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14792995', 'tblTempUsageDetail_20' ) end [2025-03-30 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:04:23] Production.INFO: ==6790== Releasing lock... [2025-03-30 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:05:05 [end_date_ymd] => 2025-03-30 02:05:05 [RateCDR] => 1 ) [2025-03-30 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:05:05' and `end` < '2025-03-30 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-03-30 02:05:18] Production.INFO: count ==844 [2025-03-30 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:05:05 - End Time 2025-03-30 02:05:05 [2025-03-30 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793000', 'tblTempUsageDetail_20' ) start [2025-03-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793000', 'tblTempUsageDetail_20' ) end [2025-03-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793000', 'tblTempVendorCDR_20' ) start [2025-03-30 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793000', 'tblTempVendorCDR_20' ) end [2025-03-30 02:05:18] Production.INFO: ProcessCDR(1,14793000,1,1,2) [2025-03-30 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793000', 'tblTempUsageDetail_20' ) start [2025-03-30 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793000', 'tblTempUsageDetail_20' ) end [2025-03-30 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:05:22] Production.INFO: ==6869== Releasing lock... [2025-03-30 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:05:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:06:06 [end_date_ymd] => 2025-03-30 02:06:06 [RateCDR] => 1 ) [2025-03-30 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:06:06' and `end` < '2025-03-30 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:06:18] Production.INFO: count ==842 [2025-03-30 02:06:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:06:06 - End Time 2025-03-30 02:06:06 [2025-03-30 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793005', 'tblTempUsageDetail_20' ) start [2025-03-30 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793005', 'tblTempUsageDetail_20' ) end [2025-03-30 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793005', 'tblTempVendorCDR_20' ) start [2025-03-30 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793005', 'tblTempVendorCDR_20' ) end [2025-03-30 02:06:19] Production.INFO: ProcessCDR(1,14793005,1,1,2) [2025-03-30 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793005', 'tblTempUsageDetail_20' ) start [2025-03-30 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793005', 'tblTempUsageDetail_20' ) end [2025-03-30 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:06:22] Production.INFO: ==6947== Releasing lock... [2025-03-30 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:06:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:07:05 [end_date_ymd] => 2025-03-30 02:07:05 [RateCDR] => 1 ) [2025-03-30 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:07:05' and `end` < '2025-03-30 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-03-30 02:07:18] Production.INFO: count ==834 [2025-03-30 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:07:05 - End Time 2025-03-30 02:07:05 [2025-03-30 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793010', 'tblTempUsageDetail_20' ) start [2025-03-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793010', 'tblTempUsageDetail_20' ) end [2025-03-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793010', 'tblTempVendorCDR_20' ) start [2025-03-30 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793010', 'tblTempVendorCDR_20' ) end [2025-03-30 02:07:18] Production.INFO: ProcessCDR(1,14793010,1,1,2) [2025-03-30 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793010', 'tblTempUsageDetail_20' ) start [2025-03-30 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793010', 'tblTempUsageDetail_20' ) end [2025-03-30 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:07:21] Production.INFO: ==7025== Releasing lock... [2025-03-30 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:07:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:08:05 [end_date_ymd] => 2025-03-30 02:08:05 [RateCDR] => 1 ) [2025-03-30 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` >= '2025-03-29 23:08:05' and `end` < '2025-03-30 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-03-30 02:08:18] Production.INFO: count ==817 [2025-03-30 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:08:05 - End Time 2025-03-30 02:08:05 [2025-03-30 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793015', 'tblTempUsageDetail_20' ) start [2025-03-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793015', 'tblTempUsageDetail_20' ) end [2025-03-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793015', 'tblTempVendorCDR_20' ) start [2025-03-30 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793015', 'tblTempVendorCDR_20' ) end [2025-03-30 02:08:18] Production.INFO: ProcessCDR(1,14793015,1,1,2) [2025-03-30 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793015', 'tblTempUsageDetail_20' ) start [2025-03-30 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793015', 'tblTempUsageDetail_20' ) end [2025-03-30 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:08:22] Production.INFO: ==7109== Releasing lock... [2025-03-30 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:08:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:09:05 [end_date_ymd] => 2025-03-30 02:09:05 [RateCDR] => 1 ) [2025-03-30 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:09:05' and `end` < '2025-03-30 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-03-30 02:09:17] Production.INFO: count ==810 [2025-03-30 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:09:05 - End Time 2025-03-30 02:09:05 [2025-03-30 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793020', 'tblTempUsageDetail_20' ) start [2025-03-30 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793020', 'tblTempUsageDetail_20' ) end [2025-03-30 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793020', 'tblTempVendorCDR_20' ) start [2025-03-30 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793020', 'tblTempVendorCDR_20' ) end [2025-03-30 02:09:18] Production.INFO: ProcessCDR(1,14793020,1,1,2) [2025-03-30 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793020', 'tblTempUsageDetail_20' ) start [2025-03-30 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793020', 'tblTempUsageDetail_20' ) end [2025-03-30 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:09:21] Production.INFO: ==7193== Releasing lock... [2025-03-30 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:09:21] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:10:06 [end_date_ymd] => 2025-03-30 02:10:06 [RateCDR] => 1 ) [2025-03-30 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:10:06' and `end` < '2025-03-30 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-03-30 02:10:19] Production.INFO: count ==830 [2025-03-30 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:10:06 - End Time 2025-03-30 02:10:06 [2025-03-30 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793026', 'tblTempUsageDetail_20' ) start [2025-03-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793026', 'tblTempUsageDetail_20' ) end [2025-03-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793026', 'tblTempVendorCDR_20' ) start [2025-03-30 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793026', 'tblTempVendorCDR_20' ) end [2025-03-30 02:10:19] Production.INFO: ProcessCDR(1,14793026,1,1,2) [2025-03-30 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793026', 'tblTempUsageDetail_20' ) start [2025-03-30 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793026', 'tblTempUsageDetail_20' ) end [2025-03-30 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:10:23] Production.INFO: ==7275== Releasing lock... [2025-03-30 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:10:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:11:05 [end_date_ymd] => 2025-03-30 02:11:05 [RateCDR] => 1 ) [2025-03-30 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:11:05' and `end` < '2025-03-30 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-03-30 02:11:18] Production.INFO: count ==830 [2025-03-30 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:11:05 - End Time 2025-03-30 02:11:05 [2025-03-30 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793031', 'tblTempUsageDetail_20' ) start [2025-03-30 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793031', 'tblTempUsageDetail_20' ) end [2025-03-30 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793031', 'tblTempVendorCDR_20' ) start [2025-03-30 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793031', 'tblTempVendorCDR_20' ) end [2025-03-30 02:11:18] Production.INFO: ProcessCDR(1,14793031,1,1,2) [2025-03-30 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793031', 'tblTempUsageDetail_20' ) start [2025-03-30 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793031', 'tblTempUsageDetail_20' ) end [2025-03-30 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:11:21] Production.INFO: ==7402== Releasing lock... [2025-03-30 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:11:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:12:06 [end_date_ymd] => 2025-03-30 02:12:06 [RateCDR] => 1 ) [2025-03-30 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:12:06' and `end` < '2025-03-30 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:12:18] Production.INFO: count ==793 [2025-03-30 02:12:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:12:06 - End Time 2025-03-30 02:12:06 [2025-03-30 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793036', 'tblTempUsageDetail_20' ) start [2025-03-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793036', 'tblTempUsageDetail_20' ) end [2025-03-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793036', 'tblTempVendorCDR_20' ) start [2025-03-30 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793036', 'tblTempVendorCDR_20' ) end [2025-03-30 02:12:19] Production.INFO: ProcessCDR(1,14793036,1,1,2) [2025-03-30 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793036', 'tblTempUsageDetail_20' ) start [2025-03-30 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793036', 'tblTempUsageDetail_20' ) end [2025-03-30 02:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:12:24] Production.INFO: ==7478== Releasing lock... [2025-03-30 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:12:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:13:05 [end_date_ymd] => 2025-03-30 02:13:05 [RateCDR] => 1 ) [2025-03-30 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:13:05' and `end` < '2025-03-30 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-03-30 02:13:17] Production.INFO: count ==779 [2025-03-30 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:13:05 - End Time 2025-03-30 02:13:05 [2025-03-30 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793041', 'tblTempUsageDetail_20' ) start [2025-03-30 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793041', 'tblTempUsageDetail_20' ) end [2025-03-30 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793041', 'tblTempVendorCDR_20' ) start [2025-03-30 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793041', 'tblTempVendorCDR_20' ) end [2025-03-30 02:13:18] Production.INFO: ProcessCDR(1,14793041,1,1,2) [2025-03-30 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793041', 'tblTempUsageDetail_20' ) start [2025-03-30 02:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793041', 'tblTempUsageDetail_20' ) end [2025-03-30 02:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:13:23] Production.INFO: ==7560== Releasing lock... [2025-03-30 02:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:13:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:14:05 [end_date_ymd] => 2025-03-30 02:14:05 [RateCDR] => 1 ) [2025-03-30 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:14:05' and `end` < '2025-03-30 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-03-30 02:14:18] Production.INFO: count ==758 [2025-03-30 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:14:05 - End Time 2025-03-30 02:14:05 [2025-03-30 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793046', 'tblTempUsageDetail_20' ) start [2025-03-30 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793046', 'tblTempUsageDetail_20' ) end [2025-03-30 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793046', 'tblTempVendorCDR_20' ) start [2025-03-30 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793046', 'tblTempVendorCDR_20' ) end [2025-03-30 02:14:18] Production.INFO: ProcessCDR(1,14793046,1,1,2) [2025-03-30 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793046', 'tblTempUsageDetail_20' ) start [2025-03-30 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793046', 'tblTempUsageDetail_20' ) end [2025-03-30 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:14:22] Production.INFO: ==7638== Releasing lock... [2025-03-30 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:15:05 [end_date_ymd] => 2025-03-30 02:15:05 [RateCDR] => 1 ) [2025-03-30 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:15:05' and `end` < '2025-03-30 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-03-30 02:15:17] Production.INFO: count ==757 [2025-03-30 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:15:05 - End Time 2025-03-30 02:15:05 [2025-03-30 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793051', 'tblTempUsageDetail_20' ) start [2025-03-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793051', 'tblTempUsageDetail_20' ) end [2025-03-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793051', 'tblTempVendorCDR_20' ) start [2025-03-30 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793051', 'tblTempVendorCDR_20' ) end [2025-03-30 02:15:18] Production.INFO: ProcessCDR(1,14793051,1,1,2) [2025-03-30 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793051', 'tblTempUsageDetail_20' ) start [2025-03-30 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793051', 'tblTempUsageDetail_20' ) end [2025-03-30 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:15:21] Production.INFO: ==7715== Releasing lock... [2025-03-30 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:16:05 [end_date_ymd] => 2025-03-30 02:16:05 [RateCDR] => 1 ) [2025-03-30 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:16:05' and `end` < '2025-03-30 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-03-30 02:16:18] Production.INFO: count ==756 [2025-03-30 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:16:05 - End Time 2025-03-30 02:16:05 [2025-03-30 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793056', 'tblTempUsageDetail_20' ) start [2025-03-30 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793056', 'tblTempUsageDetail_20' ) end [2025-03-30 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793056', 'tblTempVendorCDR_20' ) start [2025-03-30 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793056', 'tblTempVendorCDR_20' ) end [2025-03-30 02:16:18] Production.INFO: ProcessCDR(1,14793056,1,1,2) [2025-03-30 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793056', 'tblTempUsageDetail_20' ) start [2025-03-30 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793056', 'tblTempUsageDetail_20' ) end [2025-03-30 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:16:21] Production.INFO: ==7799== Releasing lock... [2025-03-30 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:16:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:17:06 [end_date_ymd] => 2025-03-30 02:17:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:17:06' and `end` < '2025-03-30 02: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-03-30 02:17:18] Production.INFO: count ==758 [2025-03-30 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:17:06 - End Time 2025-03-30 02:17:06 [2025-03-30 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793061', 'tblTempUsageDetail_20' ) start [2025-03-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793061', 'tblTempUsageDetail_20' ) end [2025-03-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793061', 'tblTempVendorCDR_20' ) start [2025-03-30 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793061', 'tblTempVendorCDR_20' ) end [2025-03-30 02:17:18] Production.INFO: ProcessCDR(1,14793061,1,1,2) [2025-03-30 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793061', 'tblTempUsageDetail_20' ) start [2025-03-30 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793061', 'tblTempUsageDetail_20' ) end [2025-03-30 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:17:22] Production.INFO: ==7876== Releasing lock... [2025-03-30 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:17:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:18:06 [end_date_ymd] => 2025-03-30 02:18:06 [RateCDR] => 1 ) [2025-03-30 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:18:06' and `end` < '2025-03-30 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:18:18] Production.INFO: count ==757 [2025-03-30 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:18:06 - End Time 2025-03-30 02:18:06 [2025-03-30 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793066', 'tblTempUsageDetail_20' ) start [2025-03-30 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793066', 'tblTempUsageDetail_20' ) end [2025-03-30 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793066', 'tblTempVendorCDR_20' ) start [2025-03-30 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793066', 'tblTempVendorCDR_20' ) end [2025-03-30 02:18:18] Production.INFO: ProcessCDR(1,14793066,1,1,2) [2025-03-30 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793066', 'tblTempUsageDetail_20' ) start [2025-03-30 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793066', 'tblTempUsageDetail_20' ) end [2025-03-30 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:18:22] Production.INFO: ==7958== Releasing lock... [2025-03-30 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:19:06 [end_date_ymd] => 2025-03-30 02:19:06 [RateCDR] => 1 ) [2025-03-30 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:19:06' and `end` < '2025-03-30 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:19:18] Production.INFO: count ==756 [2025-03-30 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:19:06 - End Time 2025-03-30 02:19:06 [2025-03-30 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793071', 'tblTempUsageDetail_20' ) start [2025-03-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793071', 'tblTempUsageDetail_20' ) end [2025-03-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793071', 'tblTempVendorCDR_20' ) start [2025-03-30 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793071', 'tblTempVendorCDR_20' ) end [2025-03-30 02:19:18] Production.INFO: ProcessCDR(1,14793071,1,1,2) [2025-03-30 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793071', 'tblTempUsageDetail_20' ) start [2025-03-30 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793071', 'tblTempUsageDetail_20' ) end [2025-03-30 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:19:22] Production.INFO: ==8038== Releasing lock... [2025-03-30 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:20:06 [end_date_ymd] => 2025-03-30 02:20:06 [RateCDR] => 1 ) [2025-03-30 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:20:06' and `end` < '2025-03-30 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:20:19] Production.INFO: count ==766 [2025-03-30 02:20:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:20:06 - End Time 2025-03-30 02:20:06 [2025-03-30 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793077', 'tblTempUsageDetail_20' ) start [2025-03-30 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793077', 'tblTempUsageDetail_20' ) end [2025-03-30 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793077', 'tblTempVendorCDR_20' ) start [2025-03-30 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793077', 'tblTempVendorCDR_20' ) end [2025-03-30 02:20:19] Production.INFO: ProcessCDR(1,14793077,1,1,2) [2025-03-30 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793077', 'tblTempUsageDetail_20' ) start [2025-03-30 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793077', 'tblTempUsageDetail_20' ) end [2025-03-30 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:20:22] Production.INFO: ==8121== Releasing lock... [2025-03-30 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:21:05 [end_date_ymd] => 2025-03-30 02:21:05 [RateCDR] => 1 ) [2025-03-30 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:21:05' and `end` < '2025-03-30 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-03-30 02:21:18] Production.INFO: count ==765 [2025-03-30 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:21:05 - End Time 2025-03-30 02:21:05 [2025-03-30 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793081', 'tblTempUsageDetail_20' ) start [2025-03-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793081', 'tblTempUsageDetail_20' ) end [2025-03-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793081', 'tblTempVendorCDR_20' ) start [2025-03-30 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793081', 'tblTempVendorCDR_20' ) end [2025-03-30 02:21:18] Production.INFO: ProcessCDR(1,14793081,1,1,2) [2025-03-30 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793081', 'tblTempUsageDetail_20' ) start [2025-03-30 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793081', 'tblTempUsageDetail_20' ) end [2025-03-30 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:21:22] Production.INFO: ==8210== Releasing lock... [2025-03-30 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:21:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:22:05 [end_date_ymd] => 2025-03-30 02:22:05 [RateCDR] => 1 ) [2025-03-30 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:22:05' and `end` < '2025-03-30 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-03-30 02:22:18] Production.INFO: count ==768 [2025-03-30 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:22:05 - End Time 2025-03-30 02:22:05 [2025-03-30 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793087', 'tblTempUsageDetail_20' ) start [2025-03-30 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793087', 'tblTempUsageDetail_20' ) end [2025-03-30 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793087', 'tblTempVendorCDR_20' ) start [2025-03-30 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793087', 'tblTempVendorCDR_20' ) end [2025-03-30 02:22:18] Production.INFO: ProcessCDR(1,14793087,1,1,2) [2025-03-30 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793087', 'tblTempUsageDetail_20' ) start [2025-03-30 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793087', 'tblTempUsageDetail_20' ) end [2025-03-30 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:22:21] Production.INFO: ==8289== Releasing lock... [2025-03-30 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:22:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:23:05 [end_date_ymd] => 2025-03-30 02:23:05 [RateCDR] => 1 ) [2025-03-30 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:23:05' and `end` < '2025-03-30 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-03-30 02:23:18] Production.INFO: count ==768 [2025-03-30 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:23:05 - End Time 2025-03-30 02:23:05 [2025-03-30 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793092', 'tblTempUsageDetail_20' ) start [2025-03-30 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793092', 'tblTempUsageDetail_20' ) end [2025-03-30 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793092', 'tblTempVendorCDR_20' ) start [2025-03-30 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793092', 'tblTempVendorCDR_20' ) end [2025-03-30 02:23:18] Production.INFO: ProcessCDR(1,14793092,1,1,2) [2025-03-30 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793092', 'tblTempUsageDetail_20' ) start [2025-03-30 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793092', 'tblTempUsageDetail_20' ) end [2025-03-30 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:23:21] Production.INFO: ==8370== Releasing lock... [2025-03-30 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:23:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:24:05 [end_date_ymd] => 2025-03-30 02:24:05 [RateCDR] => 1 ) [2025-03-30 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:24:05' and `end` < '2025-03-30 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-03-30 02:24:17] Production.INFO: count ==768 [2025-03-30 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:24:05 - End Time 2025-03-30 02:24:05 [2025-03-30 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793097', 'tblTempUsageDetail_20' ) start [2025-03-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793097', 'tblTempUsageDetail_20' ) end [2025-03-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793097', 'tblTempVendorCDR_20' ) start [2025-03-30 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793097', 'tblTempVendorCDR_20' ) end [2025-03-30 02:24:18] Production.INFO: ProcessCDR(1,14793097,1,1,2) [2025-03-30 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793097', 'tblTempUsageDetail_20' ) start [2025-03-30 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793097', 'tblTempUsageDetail_20' ) end [2025-03-30 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:24:21] Production.INFO: ==8451== Releasing lock... [2025-03-30 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:24:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:25:06 [end_date_ymd] => 2025-03-30 02:25:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:25:06' and `end` < '2025-03-30 02: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-03-30 02:25:18] Production.INFO: count ==768 [2025-03-30 02:25:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:25:06 - End Time 2025-03-30 02:25:06 [2025-03-30 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793102', 'tblTempUsageDetail_20' ) start [2025-03-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793102', 'tblTempUsageDetail_20' ) end [2025-03-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793102', 'tblTempVendorCDR_20' ) start [2025-03-30 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793102', 'tblTempVendorCDR_20' ) end [2025-03-30 02:25:19] Production.INFO: ProcessCDR(1,14793102,1,1,2) [2025-03-30 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793102', 'tblTempUsageDetail_20' ) start [2025-03-30 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793102', 'tblTempUsageDetail_20' ) end [2025-03-30 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:25:22] Production.INFO: ==8530== Releasing lock... [2025-03-30 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:26:05 [end_date_ymd] => 2025-03-30 02:26:05 [RateCDR] => 1 ) [2025-03-30 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:26:05' and `end` < '2025-03-30 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-03-30 02:26:18] Production.INFO: count ==768 [2025-03-30 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:26:05 - End Time 2025-03-30 02:26:05 [2025-03-30 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793107', 'tblTempUsageDetail_20' ) start [2025-03-30 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793107', 'tblTempUsageDetail_20' ) end [2025-03-30 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793107', 'tblTempVendorCDR_20' ) start [2025-03-30 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793107', 'tblTempVendorCDR_20' ) end [2025-03-30 02:26:18] Production.INFO: ProcessCDR(1,14793107,1,1,2) [2025-03-30 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793107', 'tblTempUsageDetail_20' ) start [2025-03-30 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793107', 'tblTempUsageDetail_20' ) end [2025-03-30 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:26:22] Production.INFO: ==8613== Releasing lock... [2025-03-30 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:26:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:27:06 [end_date_ymd] => 2025-03-30 02:27:06 [RateCDR] => 1 ) [2025-03-30 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:27:06' and `end` < '2025-03-30 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:27:18] Production.INFO: count ==770 [2025-03-30 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:27:06 - End Time 2025-03-30 02:27:06 [2025-03-30 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793112', 'tblTempUsageDetail_20' ) start [2025-03-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793112', 'tblTempUsageDetail_20' ) end [2025-03-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793112', 'tblTempVendorCDR_20' ) start [2025-03-30 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793112', 'tblTempVendorCDR_20' ) end [2025-03-30 02:27:19] Production.INFO: ProcessCDR(1,14793112,1,1,2) [2025-03-30 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793112', 'tblTempUsageDetail_20' ) start [2025-03-30 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793112', 'tblTempUsageDetail_20' ) end [2025-03-30 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:27:22] Production.INFO: ==8736== Releasing lock... [2025-03-30 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:28:05 [end_date_ymd] => 2025-03-30 02:28:05 [RateCDR] => 1 ) [2025-03-30 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:28:05' and `end` < '2025-03-30 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-03-30 02:28:17] Production.INFO: count ==774 [2025-03-30 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:28:05 - End Time 2025-03-30 02:28:05 [2025-03-30 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793117', 'tblTempUsageDetail_20' ) start [2025-03-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793117', 'tblTempUsageDetail_20' ) end [2025-03-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793117', 'tblTempVendorCDR_20' ) start [2025-03-30 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793117', 'tblTempVendorCDR_20' ) end [2025-03-30 02:28:18] Production.INFO: ProcessCDR(1,14793117,1,1,2) [2025-03-30 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793117', 'tblTempUsageDetail_20' ) start [2025-03-30 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793117', 'tblTempUsageDetail_20' ) end [2025-03-30 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:28:21] Production.INFO: ==8811== Releasing lock... [2025-03-30 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:29:05 [end_date_ymd] => 2025-03-30 02:29:05 [RateCDR] => 1 ) [2025-03-30 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:29:05' and `end` < '2025-03-30 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-03-30 02:29:18] Production.INFO: count ==775 [2025-03-30 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:29:05 - End Time 2025-03-30 02:29:05 [2025-03-30 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793122', 'tblTempUsageDetail_20' ) start [2025-03-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793122', 'tblTempUsageDetail_20' ) end [2025-03-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793122', 'tblTempVendorCDR_20' ) start [2025-03-30 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793122', 'tblTempVendorCDR_20' ) end [2025-03-30 02:29:18] Production.INFO: ProcessCDR(1,14793122,1,1,2) [2025-03-30 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793122', 'tblTempUsageDetail_20' ) start [2025-03-30 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793122', 'tblTempUsageDetail_20' ) end [2025-03-30 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:29:21] Production.INFO: ==8893== Releasing lock... [2025-03-30 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:29:21] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:30:06 [end_date_ymd] => 2025-03-30 02:30:06 [RateCDR] => 1 ) [2025-03-30 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:30:06' and `end` < '2025-03-30 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:30:18] Production.INFO: count ==765 [2025-03-30 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:30:06 - End Time 2025-03-30 02:30:06 [2025-03-30 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793128', 'tblTempUsageDetail_20' ) start [2025-03-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793128', 'tblTempUsageDetail_20' ) end [2025-03-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793128', 'tblTempVendorCDR_20' ) start [2025-03-30 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793128', 'tblTempVendorCDR_20' ) end [2025-03-30 02:30:18] Production.INFO: ProcessCDR(1,14793128,1,1,2) [2025-03-30 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793128', 'tblTempUsageDetail_20' ) start [2025-03-30 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793128', 'tblTempUsageDetail_20' ) end [2025-03-30 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:30:22] Production.INFO: ==8982== Releasing lock... [2025-03-30 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:30:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:31:05 [end_date_ymd] => 2025-03-30 02:31:05 [RateCDR] => 1 ) [2025-03-30 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:31:05' and `end` < '2025-03-30 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-03-30 02:31:18] Production.INFO: count ==765 [2025-03-30 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:31:05 - End Time 2025-03-30 02:31:05 [2025-03-30 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793133', 'tblTempUsageDetail_20' ) start [2025-03-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793133', 'tblTempUsageDetail_20' ) end [2025-03-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793133', 'tblTempVendorCDR_20' ) start [2025-03-30 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793133', 'tblTempVendorCDR_20' ) end [2025-03-30 02:31:18] Production.INFO: ProcessCDR(1,14793133,1,1,2) [2025-03-30 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793133', 'tblTempUsageDetail_20' ) start [2025-03-30 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793133', 'tblTempUsageDetail_20' ) end [2025-03-30 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:31:22] Production.INFO: ==9066== Releasing lock... [2025-03-30 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:31:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:32:06 [end_date_ymd] => 2025-03-30 02:32:06 [RateCDR] => 1 ) [2025-03-30 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:32:06' and `end` < '2025-03-30 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:32:18] Production.INFO: count ==763 [2025-03-30 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:32:06 - End Time 2025-03-30 02:32:06 [2025-03-30 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793138', 'tblTempUsageDetail_20' ) start [2025-03-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793138', 'tblTempUsageDetail_20' ) end [2025-03-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793138', 'tblTempVendorCDR_20' ) start [2025-03-30 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793138', 'tblTempVendorCDR_20' ) end [2025-03-30 02:32:19] Production.INFO: ProcessCDR(1,14793138,1,1,2) [2025-03-30 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793138', 'tblTempUsageDetail_20' ) start [2025-03-30 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793138', 'tblTempUsageDetail_20' ) end [2025-03-30 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:32:22] Production.INFO: ==9155== Releasing lock... [2025-03-30 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:32:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:33:05 [end_date_ymd] => 2025-03-30 02:33:05 [RateCDR] => 1 ) [2025-03-30 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:33:05' and `end` < '2025-03-30 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:33:18] Production.INFO: count ==761 [2025-03-30 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:33:05 - End Time 2025-03-30 02:33:05 [2025-03-30 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793143', 'tblTempUsageDetail_20' ) start [2025-03-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793143', 'tblTempUsageDetail_20' ) end [2025-03-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793143', 'tblTempVendorCDR_20' ) start [2025-03-30 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793143', 'tblTempVendorCDR_20' ) end [2025-03-30 02:33:18] Production.INFO: ProcessCDR(1,14793143,1,1,2) [2025-03-30 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793143', 'tblTempUsageDetail_20' ) start [2025-03-30 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793143', 'tblTempUsageDetail_20' ) end [2025-03-30 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:33:21] Production.INFO: ==9241== Releasing lock... [2025-03-30 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:33:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:34:06 [end_date_ymd] => 2025-03-30 02:34:06 [RateCDR] => 1 ) [2025-03-30 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:34:06' and `end` < '2025-03-30 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:34:18] Production.INFO: count ==761 [2025-03-30 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:34:06 - End Time 2025-03-30 02:34:06 [2025-03-30 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793148', 'tblTempUsageDetail_20' ) start [2025-03-30 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793148', 'tblTempUsageDetail_20' ) end [2025-03-30 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793148', 'tblTempVendorCDR_20' ) start [2025-03-30 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793148', 'tblTempVendorCDR_20' ) end [2025-03-30 02:34:18] Production.INFO: ProcessCDR(1,14793148,1,1,2) [2025-03-30 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793148', 'tblTempUsageDetail_20' ) start [2025-03-30 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793148', 'tblTempUsageDetail_20' ) end [2025-03-30 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:34:22] Production.INFO: ==9323== Releasing lock... [2025-03-30 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:34:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:35:06 [end_date_ymd] => 2025-03-30 02:35:06 [RateCDR] => 1 ) [2025-03-30 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:35:06' and `end` < '2025-03-30 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:35:18] Production.INFO: count ==760 [2025-03-30 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:35:06 - End Time 2025-03-30 02:35:06 [2025-03-30 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793153', 'tblTempUsageDetail_20' ) start [2025-03-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793153', 'tblTempUsageDetail_20' ) end [2025-03-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793153', 'tblTempVendorCDR_20' ) start [2025-03-30 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793153', 'tblTempVendorCDR_20' ) end [2025-03-30 02:35:18] Production.INFO: ProcessCDR(1,14793153,1,1,2) [2025-03-30 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793153', 'tblTempUsageDetail_20' ) start [2025-03-30 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793153', 'tblTempUsageDetail_20' ) end [2025-03-30 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:35:22] Production.INFO: ==9410== Releasing lock... [2025-03-30 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:36:06 [end_date_ymd] => 2025-03-30 02:36:06 [RateCDR] => 1 ) [2025-03-30 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:36:06' and `end` < '2025-03-30 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:36:18] Production.INFO: count ==760 [2025-03-30 02:36:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:36:06 - End Time 2025-03-30 02:36:06 [2025-03-30 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793158', 'tblTempUsageDetail_20' ) start [2025-03-30 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793158', 'tblTempUsageDetail_20' ) end [2025-03-30 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793158', 'tblTempVendorCDR_20' ) start [2025-03-30 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793158', 'tblTempVendorCDR_20' ) end [2025-03-30 02:36:19] Production.INFO: ProcessCDR(1,14793158,1,1,2) [2025-03-30 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793158', 'tblTempUsageDetail_20' ) start [2025-03-30 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793158', 'tblTempUsageDetail_20' ) end [2025-03-30 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:36:23] Production.INFO: ==9492== Releasing lock... [2025-03-30 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:37:05 [end_date_ymd] => 2025-03-30 02:37:05 [RateCDR] => 1 ) [2025-03-30 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:37:05' and `end` < '2025-03-30 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-03-30 02:37:18] Production.INFO: count ==760 [2025-03-30 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:37:05 - End Time 2025-03-30 02:37:05 [2025-03-30 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793163', 'tblTempUsageDetail_20' ) start [2025-03-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793163', 'tblTempUsageDetail_20' ) end [2025-03-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793163', 'tblTempVendorCDR_20' ) start [2025-03-30 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793163', 'tblTempVendorCDR_20' ) end [2025-03-30 02:37:18] Production.INFO: ProcessCDR(1,14793163,1,1,2) [2025-03-30 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793163', 'tblTempUsageDetail_20' ) start [2025-03-30 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793163', 'tblTempUsageDetail_20' ) end [2025-03-30 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:37:22] Production.INFO: ==9572== Releasing lock... [2025-03-30 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:38:06 [end_date_ymd] => 2025-03-30 02:38:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:38:06' and `end` < '2025-03-30 02: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-03-30 02:38:19] Production.INFO: count ==760 [2025-03-30 02:38:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:38:06 - End Time 2025-03-30 02:38:06 [2025-03-30 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793168', 'tblTempUsageDetail_20' ) start [2025-03-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793168', 'tblTempUsageDetail_20' ) end [2025-03-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793168', 'tblTempVendorCDR_20' ) start [2025-03-30 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793168', 'tblTempVendorCDR_20' ) end [2025-03-30 02:38:19] Production.INFO: ProcessCDR(1,14793168,1,1,2) [2025-03-30 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793168', 'tblTempUsageDetail_20' ) start [2025-03-30 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793168', 'tblTempUsageDetail_20' ) end [2025-03-30 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:38:23] Production.INFO: ==9652== Releasing lock... [2025-03-30 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:39:06 [end_date_ymd] => 2025-03-30 02:39:06 [RateCDR] => 1 ) [2025-03-30 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:39:06' and `end` < '2025-03-30 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:39:19] Production.INFO: count ==756 [2025-03-30 02:39:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:39:06 - End Time 2025-03-30 02:39:06 [2025-03-30 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793173', 'tblTempUsageDetail_20' ) start [2025-03-30 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793173', 'tblTempUsageDetail_20' ) end [2025-03-30 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793173', 'tblTempVendorCDR_20' ) start [2025-03-30 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793173', 'tblTempVendorCDR_20' ) end [2025-03-30 02:39:19] Production.INFO: ProcessCDR(1,14793173,1,1,2) [2025-03-30 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793173', 'tblTempUsageDetail_20' ) start [2025-03-30 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793173', 'tblTempUsageDetail_20' ) end [2025-03-30 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:39:23] Production.INFO: ==9733== Releasing lock... [2025-03-30 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:40:07 [end_date_ymd] => 2025-03-30 02:40:07 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:40:07' and `end` < '2025-03-30 02: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-03-30 02:40:20] Production.INFO: count ==758 [2025-03-30 02:40:20] Production.ERROR: pbx CDR StartTime 2025-03-29 23:40:07 - End Time 2025-03-30 02:40:07 [2025-03-30 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793179', 'tblTempUsageDetail_20' ) start [2025-03-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793179', 'tblTempUsageDetail_20' ) end [2025-03-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793179', 'tblTempVendorCDR_20' ) start [2025-03-30 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793179', 'tblTempVendorCDR_20' ) end [2025-03-30 02:40:20] Production.INFO: ProcessCDR(1,14793179,1,1,2) [2025-03-30 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793179', 'tblTempUsageDetail_20' ) start [2025-03-30 02:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793179', 'tblTempUsageDetail_20' ) end [2025-03-30 02:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:40:26] Production.INFO: ==9819== Releasing lock... [2025-03-30 02:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:40:26] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:41:06 [end_date_ymd] => 2025-03-30 02:41:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:41:06' and `end` < '2025-03-30 02: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-03-30 02:41:18] Production.INFO: count ==758 [2025-03-30 02:41:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:41:06 - End Time 2025-03-30 02:41:06 [2025-03-30 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793184', 'tblTempUsageDetail_20' ) start [2025-03-30 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793184', 'tblTempUsageDetail_20' ) end [2025-03-30 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793184', 'tblTempVendorCDR_20' ) start [2025-03-30 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793184', 'tblTempVendorCDR_20' ) end [2025-03-30 02:41:19] Production.INFO: ProcessCDR(1,14793184,1,1,2) [2025-03-30 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793184', 'tblTempUsageDetail_20' ) start [2025-03-30 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793184', 'tblTempUsageDetail_20' ) end [2025-03-30 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:41:23] Production.INFO: ==9905== Releasing lock... [2025-03-30 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:41:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:42:06 [end_date_ymd] => 2025-03-30 02:42:06 [RateCDR] => 1 ) [2025-03-30 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:42:06' and `end` < '2025-03-30 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:42:18] Production.INFO: count ==767 [2025-03-30 02:42:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:42:06 - End Time 2025-03-30 02:42:06 [2025-03-30 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793189', 'tblTempUsageDetail_20' ) start [2025-03-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793189', 'tblTempUsageDetail_20' ) end [2025-03-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793189', 'tblTempVendorCDR_20' ) start [2025-03-30 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793189', 'tblTempVendorCDR_20' ) end [2025-03-30 02:42:19] Production.INFO: ProcessCDR(1,14793189,1,1,2) [2025-03-30 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793189', 'tblTempUsageDetail_20' ) start [2025-03-30 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793189', 'tblTempUsageDetail_20' ) end [2025-03-30 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:42:22] Production.INFO: ==10046== Releasing lock... [2025-03-30 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:42:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:43:06 [end_date_ymd] => 2025-03-30 02:43:06 [RateCDR] => 1 ) [2025-03-30 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:43:06' and `end` < '2025-03-30 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:43:18] Production.INFO: count ==767 [2025-03-30 02:43:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:43:06 - End Time 2025-03-30 02:43:06 [2025-03-30 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793194', 'tblTempUsageDetail_20' ) start [2025-03-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793194', 'tblTempUsageDetail_20' ) end [2025-03-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793194', 'tblTempVendorCDR_20' ) start [2025-03-30 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793194', 'tblTempVendorCDR_20' ) end [2025-03-30 02:43:19] Production.INFO: ProcessCDR(1,14793194,1,1,2) [2025-03-30 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793194', 'tblTempUsageDetail_20' ) start [2025-03-30 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793194', 'tblTempUsageDetail_20' ) end [2025-03-30 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:43:23] Production.INFO: ==10148== Releasing lock... [2025-03-30 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:43:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:44:06 [end_date_ymd] => 2025-03-30 02:44:06 [RateCDR] => 1 ) [2025-03-30 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:44:06' and `end` < '2025-03-30 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:44:18] Production.INFO: count ==779 [2025-03-30 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:44:06 - End Time 2025-03-30 02:44:06 [2025-03-30 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793199', 'tblTempUsageDetail_20' ) start [2025-03-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793199', 'tblTempUsageDetail_20' ) end [2025-03-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793199', 'tblTempVendorCDR_20' ) start [2025-03-30 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793199', 'tblTempVendorCDR_20' ) end [2025-03-30 02:44:18] Production.INFO: ProcessCDR(1,14793199,1,1,2) [2025-03-30 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793199', 'tblTempUsageDetail_20' ) start [2025-03-30 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793199', 'tblTempUsageDetail_20' ) end [2025-03-30 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:44:22] Production.INFO: ==10250== Releasing lock... [2025-03-30 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:44:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:45:06 [end_date_ymd] => 2025-03-30 02:45:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:45:06' and `end` < '2025-03-30 02: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-03-30 02:45:18] Production.INFO: count ==784 [2025-03-30 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:45:06 - End Time 2025-03-30 02:45:06 [2025-03-30 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793204', 'tblTempUsageDetail_20' ) start [2025-03-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793204', 'tblTempUsageDetail_20' ) end [2025-03-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793204', 'tblTempVendorCDR_20' ) start [2025-03-30 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793204', 'tblTempVendorCDR_20' ) end [2025-03-30 02:45:18] Production.INFO: ProcessCDR(1,14793204,1,1,2) [2025-03-30 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793204', 'tblTempUsageDetail_20' ) start [2025-03-30 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793204', 'tblTempUsageDetail_20' ) end [2025-03-30 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:45:22] Production.INFO: ==10347== Releasing lock... [2025-03-30 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:45:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:46:06 [end_date_ymd] => 2025-03-30 02:46:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:46:06' and `end` < '2025-03-30 02: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-03-30 02:46:18] Production.INFO: count ==766 [2025-03-30 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:46:06 - End Time 2025-03-30 02:46:06 [2025-03-30 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793209', 'tblTempUsageDetail_20' ) start [2025-03-30 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793209', 'tblTempUsageDetail_20' ) end [2025-03-30 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793209', 'tblTempVendorCDR_20' ) start [2025-03-30 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793209', 'tblTempVendorCDR_20' ) end [2025-03-30 02:46:18] Production.INFO: ProcessCDR(1,14793209,1,1,2) [2025-03-30 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793209', 'tblTempUsageDetail_20' ) start [2025-03-30 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793209', 'tblTempUsageDetail_20' ) end [2025-03-30 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:46:22] Production.INFO: ==10427== Releasing lock... [2025-03-30 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:46:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:47:06 [end_date_ymd] => 2025-03-30 02:47:06 [RateCDR] => 1 ) [2025-03-30 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:47:06' and `end` < '2025-03-30 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:47:19] Production.INFO: count ==759 [2025-03-30 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:47:06 - End Time 2025-03-30 02:47:06 [2025-03-30 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793214', 'tblTempUsageDetail_20' ) start [2025-03-30 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793214', 'tblTempUsageDetail_20' ) end [2025-03-30 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793214', 'tblTempVendorCDR_20' ) start [2025-03-30 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793214', 'tblTempVendorCDR_20' ) end [2025-03-30 02:47:19] Production.INFO: ProcessCDR(1,14793214,1,1,2) [2025-03-30 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793214', 'tblTempUsageDetail_20' ) start [2025-03-30 02:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793214', 'tblTempUsageDetail_20' ) end [2025-03-30 02:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:47:23] Production.INFO: ==10508== Releasing lock... [2025-03-30 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:48:05 [end_date_ymd] => 2025-03-30 02:48:05 [RateCDR] => 1 ) [2025-03-30 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:48:05' and `end` < '2025-03-30 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:48:17] Production.INFO: count ==754 [2025-03-30 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:48:05 - End Time 2025-03-30 02:48:05 [2025-03-30 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793219', 'tblTempUsageDetail_20' ) start [2025-03-30 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793219', 'tblTempUsageDetail_20' ) end [2025-03-30 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793219', 'tblTempVendorCDR_20' ) start [2025-03-30 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793219', 'tblTempVendorCDR_20' ) end [2025-03-30 02:48:18] Production.INFO: ProcessCDR(1,14793219,1,1,2) [2025-03-30 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793219', 'tblTempUsageDetail_20' ) start [2025-03-30 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793219', 'tblTempUsageDetail_20' ) end [2025-03-30 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:48:22] Production.INFO: ==10587== Releasing lock... [2025-03-30 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:49:05 [end_date_ymd] => 2025-03-30 02:49:05 [RateCDR] => 1 ) [2025-03-30 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:49:05' and `end` < '2025-03-30 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:49:18] Production.INFO: count ==752 [2025-03-30 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:49:05 - End Time 2025-03-30 02:49:05 [2025-03-30 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793224', 'tblTempUsageDetail_20' ) start [2025-03-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793224', 'tblTempUsageDetail_20' ) end [2025-03-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793224', 'tblTempVendorCDR_20' ) start [2025-03-30 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793224', 'tblTempVendorCDR_20' ) end [2025-03-30 02:49:18] Production.INFO: ProcessCDR(1,14793224,1,1,2) [2025-03-30 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793224', 'tblTempUsageDetail_20' ) start [2025-03-30 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793224', 'tblTempUsageDetail_20' ) end [2025-03-30 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:49:22] Production.INFO: ==10670== Releasing lock... [2025-03-30 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:50:07 [end_date_ymd] => 2025-03-30 02:50:07 [RateCDR] => 1 ) [2025-03-30 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:50:07' and `end` < '2025-03-30 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:50:20] Production.INFO: count ==752 [2025-03-30 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-29 23:50:07 - End Time 2025-03-30 02:50:07 [2025-03-30 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793230', 'tblTempUsageDetail_20' ) start [2025-03-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793230', 'tblTempUsageDetail_20' ) end [2025-03-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793230', 'tblTempVendorCDR_20' ) start [2025-03-30 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793230', 'tblTempVendorCDR_20' ) end [2025-03-30 02:50:20] Production.INFO: ProcessCDR(1,14793230,1,1,2) [2025-03-30 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793230', 'tblTempUsageDetail_20' ) start [2025-03-30 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793230', 'tblTempUsageDetail_20' ) end [2025-03-30 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:50:24] Production.INFO: ==10755== Releasing lock... [2025-03-30 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:50:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:51:05 [end_date_ymd] => 2025-03-30 02:51:05 [RateCDR] => 1 ) [2025-03-30 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:51:05' and `end` < '2025-03-30 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-03-30 02:51:18] Production.INFO: count ==751 [2025-03-30 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:51:05 - End Time 2025-03-30 02:51:05 [2025-03-30 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793235', 'tblTempUsageDetail_20' ) start [2025-03-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793235', 'tblTempUsageDetail_20' ) end [2025-03-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793235', 'tblTempVendorCDR_20' ) start [2025-03-30 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793235', 'tblTempVendorCDR_20' ) end [2025-03-30 02:51:18] Production.INFO: ProcessCDR(1,14793235,1,1,2) [2025-03-30 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793235', 'tblTempUsageDetail_20' ) start [2025-03-30 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793235', 'tblTempUsageDetail_20' ) end [2025-03-30 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:51:22] Production.INFO: ==10835== Releasing lock... [2025-03-30 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:52:05 [end_date_ymd] => 2025-03-30 02:52:05 [RateCDR] => 1 ) [2025-03-30 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:52:05' and `end` < '2025-03-30 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-03-30 02:52:18] Production.INFO: count ==741 [2025-03-30 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:52:05 - End Time 2025-03-30 02:52:05 [2025-03-30 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793240', 'tblTempUsageDetail_20' ) start [2025-03-30 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793240', 'tblTempUsageDetail_20' ) end [2025-03-30 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793240', 'tblTempVendorCDR_20' ) start [2025-03-30 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793240', 'tblTempVendorCDR_20' ) end [2025-03-30 02:52:18] Production.INFO: ProcessCDR(1,14793240,1,1,2) [2025-03-30 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793240', 'tblTempUsageDetail_20' ) start [2025-03-30 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793240', 'tblTempUsageDetail_20' ) end [2025-03-30 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:52:22] Production.INFO: ==10914== Releasing lock... [2025-03-30 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:52:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:53:06 [end_date_ymd] => 2025-03-30 02:53:06 [RateCDR] => 1 ) [2025-03-30 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:53:06' and `end` < '2025-03-30 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:53:19] Production.INFO: count ==733 [2025-03-30 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:53:06 - End Time 2025-03-30 02:53:06 [2025-03-30 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793245', 'tblTempUsageDetail_20' ) start [2025-03-30 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793245', 'tblTempUsageDetail_20' ) end [2025-03-30 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793245', 'tblTempVendorCDR_20' ) start [2025-03-30 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793245', 'tblTempVendorCDR_20' ) end [2025-03-30 02:53:19] Production.INFO: ProcessCDR(1,14793245,1,1,2) [2025-03-30 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793245', 'tblTempUsageDetail_20' ) start [2025-03-30 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793245', 'tblTempUsageDetail_20' ) end [2025-03-30 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:53:23] Production.INFO: ==10996== Releasing lock... [2025-03-30 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:54:06 [end_date_ymd] => 2025-03-30 02:54:06 [RateCDR] => 1 ) [2025-03-30 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:54:06' and `end` < '2025-03-30 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:54:19] Production.INFO: count ==730 [2025-03-30 02:54:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:54:06 - End Time 2025-03-30 02:54:06 [2025-03-30 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793250', 'tblTempUsageDetail_20' ) start [2025-03-30 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793250', 'tblTempUsageDetail_20' ) end [2025-03-30 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793250', 'tblTempVendorCDR_20' ) start [2025-03-30 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793250', 'tblTempVendorCDR_20' ) end [2025-03-30 02:54:19] Production.INFO: ProcessCDR(1,14793250,1,1,2) [2025-03-30 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793250', 'tblTempUsageDetail_20' ) start [2025-03-30 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793250', 'tblTempUsageDetail_20' ) end [2025-03-30 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:54:23] Production.INFO: ==11080== Releasing lock... [2025-03-30 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:54:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:55:06 [end_date_ymd] => 2025-03-30 02:55:06 [RateCDR] => 1 ) [2025-03-30 02: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-03-29 23:55:06' and `end` < '2025-03-30 02: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-03-30 02:55:19] Production.INFO: count ==729 [2025-03-30 02:55:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:55:06 - End Time 2025-03-30 02:55:06 [2025-03-30 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793255', 'tblTempUsageDetail_20' ) start [2025-03-30 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793255', 'tblTempUsageDetail_20' ) end [2025-03-30 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793255', 'tblTempVendorCDR_20' ) start [2025-03-30 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793255', 'tblTempVendorCDR_20' ) end [2025-03-30 02:55:19] Production.INFO: ProcessCDR(1,14793255,1,1,2) [2025-03-30 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793255', 'tblTempUsageDetail_20' ) start [2025-03-30 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793255', 'tblTempUsageDetail_20' ) end [2025-03-30 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:55:23] Production.INFO: ==11156== Releasing lock... [2025-03-30 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:55:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:56:05 [end_date_ymd] => 2025-03-30 02:56:05 [RateCDR] => 1 ) [2025-03-30 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:56:05' and `end` < '2025-03-30 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-03-30 02:56:18] Production.INFO: count ==724 [2025-03-30 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:56:05 - End Time 2025-03-30 02:56:05 [2025-03-30 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793260', 'tblTempUsageDetail_20' ) start [2025-03-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793260', 'tblTempUsageDetail_20' ) end [2025-03-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793260', 'tblTempVendorCDR_20' ) start [2025-03-30 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793260', 'tblTempVendorCDR_20' ) end [2025-03-30 02:56:18] Production.INFO: ProcessCDR(1,14793260,1,1,2) [2025-03-30 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793260', 'tblTempUsageDetail_20' ) start [2025-03-30 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793260', 'tblTempUsageDetail_20' ) end [2025-03-30 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:56:22] Production.INFO: ==11236== Releasing lock... [2025-03-30 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:57:06 [end_date_ymd] => 2025-03-30 02:57:06 [RateCDR] => 1 ) [2025-03-30 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:57:06' and `end` < '2025-03-30 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:57:18] Production.INFO: count ==749 [2025-03-30 02:57:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:57:06 - End Time 2025-03-30 02:57:06 [2025-03-30 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793265', 'tblTempUsageDetail_20' ) start [2025-03-30 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793265', 'tblTempUsageDetail_20' ) end [2025-03-30 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793265', 'tblTempVendorCDR_20' ) start [2025-03-30 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793265', 'tblTempVendorCDR_20' ) end [2025-03-30 02:57:19] Production.INFO: ProcessCDR(1,14793265,1,1,2) [2025-03-30 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793265', 'tblTempUsageDetail_20' ) start [2025-03-30 02:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793265', 'tblTempUsageDetail_20' ) end [2025-03-30 02:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:57:24] Production.INFO: ==11316== Releasing lock... [2025-03-30 02:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:57:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:58:06 [end_date_ymd] => 2025-03-30 02:58:06 [RateCDR] => 1 ) [2025-03-30 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:58:06' and `end` < '2025-03-30 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:58:18] Production.INFO: count ==785 [2025-03-30 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-29 23:58:06 - End Time 2025-03-30 02:58:06 [2025-03-30 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793270', 'tblTempUsageDetail_20' ) start [2025-03-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793270', 'tblTempUsageDetail_20' ) end [2025-03-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793270', 'tblTempVendorCDR_20' ) start [2025-03-30 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793270', 'tblTempVendorCDR_20' ) end [2025-03-30 02:58:18] Production.INFO: ProcessCDR(1,14793270,1,1,2) [2025-03-30 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793270', 'tblTempUsageDetail_20' ) start [2025-03-30 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793270', 'tblTempUsageDetail_20' ) end [2025-03-30 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:58:22] Production.INFO: ==11434== Releasing lock... [2025-03-30 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:58:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-29 23:59:06 [end_date_ymd] => 2025-03-30 02:59:06 [RateCDR] => 1 ) [2025-03-30 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-29 23:59:06' and `end` < '2025-03-30 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 02:59:18] Production.INFO: count ==850 [2025-03-30 02:59:19] Production.ERROR: pbx CDR StartTime 2025-03-29 23:59:06 - End Time 2025-03-30 02:59:06 [2025-03-30 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793275', 'tblTempUsageDetail_20' ) start [2025-03-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793275', 'tblTempUsageDetail_20' ) end [2025-03-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793275', 'tblTempVendorCDR_20' ) start [2025-03-30 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793275', 'tblTempVendorCDR_20' ) end [2025-03-30 02:59:19] Production.INFO: ProcessCDR(1,14793275,1,1,2) [2025-03-30 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793275', 'tblTempUsageDetail_20' ) start [2025-03-30 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793275', 'tblTempUsageDetail_20' ) end [2025-03-30 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 02:59:23] Production.INFO: ==11514== Releasing lock... [2025-03-30 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 02:59:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:00:06 [end_date_ymd] => 2025-03-30 03:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:00:06' and `end` < '2025-03-30 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-03-30 03:00:19] Production.INFO: count ==824 [2025-03-30 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:00:06 - End Time 2025-03-30 03:00:06 [2025-03-30 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793281', 'tblTempUsageDetail_20' ) start [2025-03-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793281', 'tblTempUsageDetail_20' ) end [2025-03-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793281', 'tblTempVendorCDR_20' ) start [2025-03-30 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793281', 'tblTempVendorCDR_20' ) end [2025-03-30 03:00:19] Production.INFO: ProcessCDR(1,14793281,1,1,2) [2025-03-30 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793281', 'tblTempUsageDetail_20' ) start [2025-03-30 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793281', 'tblTempUsageDetail_20' ) end [2025-03-30 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:00:23] Production.INFO: ==11599== Releasing lock... [2025-03-30 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:00:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:01:06 [end_date_ymd] => 2025-03-30 03:01:06 [RateCDR] => 1 ) [2025-03-30 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:01:06' and `end` < '2025-03-30 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:01:18] Production.INFO: count ==826 [2025-03-30 03:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:01:06 - End Time 2025-03-30 03:01:06 [2025-03-30 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793286', 'tblTempUsageDetail_20' ) start [2025-03-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793286', 'tblTempUsageDetail_20' ) end [2025-03-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793286', 'tblTempVendorCDR_20' ) start [2025-03-30 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793286', 'tblTempVendorCDR_20' ) end [2025-03-30 03:01:19] Production.INFO: ProcessCDR(1,14793286,1,1,2) [2025-03-30 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793286', 'tblTempUsageDetail_20' ) start [2025-03-30 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793286', 'tblTempUsageDetail_20' ) end [2025-03-30 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:01:23] Production.INFO: ==11694== Releasing lock... [2025-03-30 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:01:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:02:06 [end_date_ymd] => 2025-03-30 03:02:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:02:06' and `end` < '2025-03-30 03: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-03-30 03:02:18] Production.INFO: count ==829 [2025-03-30 03:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:02:06 - End Time 2025-03-30 03:02:06 [2025-03-30 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793291', 'tblTempUsageDetail_20' ) start [2025-03-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793291', 'tblTempUsageDetail_20' ) end [2025-03-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793291', 'tblTempVendorCDR_20' ) start [2025-03-30 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793291', 'tblTempVendorCDR_20' ) end [2025-03-30 03:02:19] Production.INFO: ProcessCDR(1,14793291,1,1,2) [2025-03-30 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793291', 'tblTempUsageDetail_20' ) start [2025-03-30 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793291', 'tblTempUsageDetail_20' ) end [2025-03-30 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:02:23] Production.INFO: ==11850== Releasing lock... [2025-03-30 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:02:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:03:06 [end_date_ymd] => 2025-03-30 03:03:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:03:06' and `end` < '2025-03-30 03: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-03-30 03:03:19] Production.INFO: count ==823 [2025-03-30 03:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:03:06 - End Time 2025-03-30 03:03:06 [2025-03-30 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793296', 'tblTempUsageDetail_20' ) start [2025-03-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793296', 'tblTempUsageDetail_20' ) end [2025-03-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793296', 'tblTempVendorCDR_20' ) start [2025-03-30 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793296', 'tblTempVendorCDR_20' ) end [2025-03-30 03:03:19] Production.INFO: ProcessCDR(1,14793296,1,1,2) [2025-03-30 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793296', 'tblTempUsageDetail_20' ) start [2025-03-30 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793296', 'tblTempUsageDetail_20' ) end [2025-03-30 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:03:23] Production.INFO: ==11929== Releasing lock... [2025-03-30 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-30 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:04:06 [end_date_ymd] => 2025-03-30 03:04:06 [RateCDR] => 1 ) [2025-03-30 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:04:06' and `end` < '2025-03-30 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:04:18] Production.INFO: count ==818 [2025-03-30 03:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:04:06 - End Time 2025-03-30 03:04:06 [2025-03-30 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793301', 'tblTempUsageDetail_20' ) start [2025-03-30 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793301', 'tblTempUsageDetail_20' ) end [2025-03-30 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793301', 'tblTempVendorCDR_20' ) start [2025-03-30 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793301', 'tblTempVendorCDR_20' ) end [2025-03-30 03:04:19] Production.INFO: ProcessCDR(1,14793301,1,1,2) [2025-03-30 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793301', 'tblTempUsageDetail_20' ) start [2025-03-30 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793301', 'tblTempUsageDetail_20' ) end [2025-03-30 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:04:23] Production.INFO: ==12007== Releasing lock... [2025-03-30 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:04:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:05:06 [end_date_ymd] => 2025-03-30 03:05:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:05:06' and `end` < '2025-03-30 03: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-03-30 03:05:19] Production.INFO: count ==818 [2025-03-30 03:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:05:06 - End Time 2025-03-30 03:05:06 [2025-03-30 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793306', 'tblTempUsageDetail_20' ) start [2025-03-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793306', 'tblTempUsageDetail_20' ) end [2025-03-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793306', 'tblTempVendorCDR_20' ) start [2025-03-30 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793306', 'tblTempVendorCDR_20' ) end [2025-03-30 03:05:19] Production.INFO: ProcessCDR(1,14793306,1,1,2) [2025-03-30 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793306', 'tblTempUsageDetail_20' ) start [2025-03-30 03:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793306', 'tblTempUsageDetail_20' ) end [2025-03-30 03:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:05:23] Production.INFO: ==12084== Releasing lock... [2025-03-30 03:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:06:05 [end_date_ymd] => 2025-03-30 03:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:06:05' and `end` < '2025-03-30 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-03-30 03:06:18] Production.INFO: count ==821 [2025-03-30 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:06:05 - End Time 2025-03-30 03:06:05 [2025-03-30 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793311', 'tblTempUsageDetail_20' ) start [2025-03-30 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793311', 'tblTempUsageDetail_20' ) end [2025-03-30 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793311', 'tblTempVendorCDR_20' ) start [2025-03-30 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793311', 'tblTempVendorCDR_20' ) end [2025-03-30 03:06:18] Production.INFO: ProcessCDR(1,14793311,1,1,2) [2025-03-30 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793311', 'tblTempUsageDetail_20' ) start [2025-03-30 03:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793311', 'tblTempUsageDetail_20' ) end [2025-03-30 03:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:06:24] Production.INFO: ==12238== Releasing lock... [2025-03-30 03:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:06:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:07:06 [end_date_ymd] => 2025-03-30 03:07:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:07:06' and `end` < '2025-03-30 03: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-03-30 03:07:19] Production.INFO: count ==817 [2025-03-30 03:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:07:06 - End Time 2025-03-30 03:07:06 [2025-03-30 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793316', 'tblTempUsageDetail_20' ) start [2025-03-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793316', 'tblTempUsageDetail_20' ) end [2025-03-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793316', 'tblTempVendorCDR_20' ) start [2025-03-30 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793316', 'tblTempVendorCDR_20' ) end [2025-03-30 03:07:19] Production.INFO: ProcessCDR(1,14793316,1,1,2) [2025-03-30 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793316', 'tblTempUsageDetail_20' ) start [2025-03-30 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793316', 'tblTempUsageDetail_20' ) end [2025-03-30 03:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:07:23] Production.INFO: ==12317== Releasing lock... [2025-03-30 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:07:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:08:05 [end_date_ymd] => 2025-03-30 03:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:08:05' and `end` < '2025-03-30 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-03-30 03:08:18] Production.INFO: count ==818 [2025-03-30 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:08:05 - End Time 2025-03-30 03:08:05 [2025-03-30 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793321', 'tblTempUsageDetail_20' ) start [2025-03-30 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793321', 'tblTempUsageDetail_20' ) end [2025-03-30 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793321', 'tblTempVendorCDR_20' ) start [2025-03-30 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793321', 'tblTempVendorCDR_20' ) end [2025-03-30 03:08:18] Production.INFO: ProcessCDR(1,14793321,1,1,2) [2025-03-30 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793321', 'tblTempUsageDetail_20' ) start [2025-03-30 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793321', 'tblTempUsageDetail_20' ) end [2025-03-30 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:08:23] Production.INFO: ==12390== Releasing lock... [2025-03-30 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:08:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:09:05 [end_date_ymd] => 2025-03-30 03:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:09:05' and `end` < '2025-03-30 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-03-30 03:09:18] Production.INFO: count ==820 [2025-03-30 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:09:05 - End Time 2025-03-30 03:09:05 [2025-03-30 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793326', 'tblTempUsageDetail_20' ) start [2025-03-30 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793326', 'tblTempUsageDetail_20' ) end [2025-03-30 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793326', 'tblTempVendorCDR_20' ) start [2025-03-30 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793326', 'tblTempVendorCDR_20' ) end [2025-03-30 03:09:18] Production.INFO: ProcessCDR(1,14793326,1,1,2) [2025-03-30 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793326', 'tblTempUsageDetail_20' ) start [2025-03-30 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793326', 'tblTempUsageDetail_20' ) end [2025-03-30 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:09:21] Production.INFO: ==12549== Releasing lock... [2025-03-30 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:09:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:10:06 [end_date_ymd] => 2025-03-30 03:10:06 [RateCDR] => 1 ) [2025-03-30 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:10:06' and `end` < '2025-03-30 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:10:18] Production.INFO: count ==816 [2025-03-30 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:10:06 - End Time 2025-03-30 03:10:06 [2025-03-30 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793332', 'tblTempUsageDetail_20' ) start [2025-03-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793332', 'tblTempUsageDetail_20' ) end [2025-03-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793332', 'tblTempVendorCDR_20' ) start [2025-03-30 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793332', 'tblTempVendorCDR_20' ) end [2025-03-30 03:10:18] Production.INFO: ProcessCDR(1,14793332,1,1,2) [2025-03-30 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793332', 'tblTempUsageDetail_20' ) start [2025-03-30 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793332', 'tblTempUsageDetail_20' ) end [2025-03-30 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:10:22] Production.INFO: ==12628== Releasing lock... [2025-03-30 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:11:06 [end_date_ymd] => 2025-03-30 03:11:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:11:06' and `end` < '2025-03-30 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-03-30 03:11:18] Production.INFO: count ==806 [2025-03-30 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:11:06 - End Time 2025-03-30 03:11:06 [2025-03-30 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793337', 'tblTempUsageDetail_20' ) start [2025-03-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793337', 'tblTempUsageDetail_20' ) end [2025-03-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793337', 'tblTempVendorCDR_20' ) start [2025-03-30 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793337', 'tblTempVendorCDR_20' ) end [2025-03-30 03:11:18] Production.INFO: ProcessCDR(1,14793337,1,1,2) [2025-03-30 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793337', 'tblTempUsageDetail_20' ) start [2025-03-30 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793337', 'tblTempUsageDetail_20' ) end [2025-03-30 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:11:22] Production.INFO: ==12708== Releasing lock... [2025-03-30 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:11:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:12:05 [end_date_ymd] => 2025-03-30 03:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:12:05' and `end` < '2025-03-30 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-03-30 03:12:18] Production.INFO: count ==806 [2025-03-30 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:12:05 - End Time 2025-03-30 03:12:05 [2025-03-30 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793342', 'tblTempUsageDetail_20' ) start [2025-03-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793342', 'tblTempUsageDetail_20' ) end [2025-03-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793342', 'tblTempVendorCDR_20' ) start [2025-03-30 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793342', 'tblTempVendorCDR_20' ) end [2025-03-30 03:12:18] Production.INFO: ProcessCDR(1,14793342,1,1,2) [2025-03-30 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793342', 'tblTempUsageDetail_20' ) start [2025-03-30 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793342', 'tblTempUsageDetail_20' ) end [2025-03-30 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:12:21] Production.INFO: ==12789== Releasing lock... [2025-03-30 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:12:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:13:05 [end_date_ymd] => 2025-03-30 03:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:13:05' and `end` < '2025-03-30 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-03-30 03:13:18] Production.INFO: count ==793 [2025-03-30 03:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:13:05 - End Time 2025-03-30 03:13:05 [2025-03-30 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793347', 'tblTempUsageDetail_20' ) start [2025-03-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793347', 'tblTempUsageDetail_20' ) end [2025-03-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793347', 'tblTempVendorCDR_20' ) start [2025-03-30 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793347', 'tblTempVendorCDR_20' ) end [2025-03-30 03:13:18] Production.INFO: ProcessCDR(1,14793347,1,1,2) [2025-03-30 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793347', 'tblTempUsageDetail_20' ) start [2025-03-30 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793347', 'tblTempUsageDetail_20' ) end [2025-03-30 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:13:22] Production.INFO: ==12986== Releasing lock... [2025-03-30 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:13:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:14:06 [end_date_ymd] => 2025-03-30 03:14:06 [RateCDR] => 1 ) [2025-03-30 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:14:06' and `end` < '2025-03-30 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:14:18] Production.INFO: count ==785 [2025-03-30 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:14:06 - End Time 2025-03-30 03:14:06 [2025-03-30 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793352', 'tblTempUsageDetail_20' ) start [2025-03-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793352', 'tblTempUsageDetail_20' ) end [2025-03-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793352', 'tblTempVendorCDR_20' ) start [2025-03-30 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793352', 'tblTempVendorCDR_20' ) end [2025-03-30 03:14:18] Production.INFO: ProcessCDR(1,14793352,1,1,2) [2025-03-30 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793352', 'tblTempUsageDetail_20' ) start [2025-03-30 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793352', 'tblTempUsageDetail_20' ) end [2025-03-30 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:14:22] Production.INFO: ==13062== Releasing lock... [2025-03-30 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:14:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:15:05 [end_date_ymd] => 2025-03-30 03:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:15:05' and `end` < '2025-03-30 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-03-30 03:15:18] Production.INFO: count ==789 [2025-03-30 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:15:05 - End Time 2025-03-30 03:15:05 [2025-03-30 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793357', 'tblTempUsageDetail_20' ) start [2025-03-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793357', 'tblTempUsageDetail_20' ) end [2025-03-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793357', 'tblTempVendorCDR_20' ) start [2025-03-30 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793357', 'tblTempVendorCDR_20' ) end [2025-03-30 03:15:18] Production.INFO: ProcessCDR(1,14793357,1,1,2) [2025-03-30 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793357', 'tblTempUsageDetail_20' ) start [2025-03-30 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793357', 'tblTempUsageDetail_20' ) end [2025-03-30 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:15:22] Production.INFO: ==13140== Releasing lock... [2025-03-30 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:15:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:16:05 [end_date_ymd] => 2025-03-30 03:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:16:05' and `end` < '2025-03-30 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-03-30 03:16:18] Production.INFO: count ==782 [2025-03-30 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:16:05 - End Time 2025-03-30 03:16:05 [2025-03-30 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793362', 'tblTempUsageDetail_20' ) start [2025-03-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793362', 'tblTempUsageDetail_20' ) end [2025-03-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793362', 'tblTempVendorCDR_20' ) start [2025-03-30 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793362', 'tblTempVendorCDR_20' ) end [2025-03-30 03:16:18] Production.INFO: ProcessCDR(1,14793362,1,1,2) [2025-03-30 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793362', 'tblTempUsageDetail_20' ) start [2025-03-30 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793362', 'tblTempUsageDetail_20' ) end [2025-03-30 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:16:22] Production.INFO: ==13217== Releasing lock... [2025-03-30 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:16:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:17:05 [end_date_ymd] => 2025-03-30 03:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:17:05' and `end` < '2025-03-30 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-03-30 03:17:18] Production.INFO: count ==762 [2025-03-30 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:17:05 - End Time 2025-03-30 03:17:05 [2025-03-30 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793367', 'tblTempUsageDetail_20' ) start [2025-03-30 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793367', 'tblTempUsageDetail_20' ) end [2025-03-30 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793367', 'tblTempVendorCDR_20' ) start [2025-03-30 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793367', 'tblTempVendorCDR_20' ) end [2025-03-30 03:17:18] Production.INFO: ProcessCDR(1,14793367,1,1,2) [2025-03-30 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793367', 'tblTempUsageDetail_20' ) start [2025-03-30 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793367', 'tblTempUsageDetail_20' ) end [2025-03-30 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:17:21] Production.INFO: ==13371== Releasing lock... [2025-03-30 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:18:05 [end_date_ymd] => 2025-03-30 03:18:05 [RateCDR] => 1 ) [2025-03-30 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:18:05' and `end` < '2025-03-30 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:18:18] Production.INFO: count ==761 [2025-03-30 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:18:05 - End Time 2025-03-30 03:18:05 [2025-03-30 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793372', 'tblTempUsageDetail_20' ) start [2025-03-30 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793372', 'tblTempUsageDetail_20' ) end [2025-03-30 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793372', 'tblTempVendorCDR_20' ) start [2025-03-30 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793372', 'tblTempVendorCDR_20' ) end [2025-03-30 03:18:18] Production.INFO: ProcessCDR(1,14793372,1,1,2) [2025-03-30 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793372', 'tblTempUsageDetail_20' ) start [2025-03-30 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793372', 'tblTempUsageDetail_20' ) end [2025-03-30 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:18:22] Production.INFO: ==13447== Releasing lock... [2025-03-30 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:19:06 [end_date_ymd] => 2025-03-30 03:19:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:19:06' and `end` < '2025-03-30 03: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-03-30 03:19:18] Production.INFO: count ==776 [2025-03-30 03:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:19:06 - End Time 2025-03-30 03:19:06 [2025-03-30 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793377', 'tblTempUsageDetail_20' ) start [2025-03-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793377', 'tblTempUsageDetail_20' ) end [2025-03-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793377', 'tblTempVendorCDR_20' ) start [2025-03-30 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793377', 'tblTempVendorCDR_20' ) end [2025-03-30 03:19:19] Production.INFO: ProcessCDR(1,14793377,1,1,2) [2025-03-30 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793377', 'tblTempUsageDetail_20' ) start [2025-03-30 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793377', 'tblTempUsageDetail_20' ) end [2025-03-30 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:19:22] Production.INFO: ==13524== Releasing lock... [2025-03-30 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:19:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:20:06 [end_date_ymd] => 2025-03-30 03:20:06 [RateCDR] => 1 ) [2025-03-30 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:20:06' and `end` < '2025-03-30 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:20:18] Production.INFO: count ==769 [2025-03-30 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:20:06 - End Time 2025-03-30 03:20:06 [2025-03-30 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793383', 'tblTempUsageDetail_20' ) start [2025-03-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793383', 'tblTempUsageDetail_20' ) end [2025-03-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793383', 'tblTempVendorCDR_20' ) start [2025-03-30 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793383', 'tblTempVendorCDR_20' ) end [2025-03-30 03:20:19] Production.INFO: ProcessCDR(1,14793383,1,1,2) [2025-03-30 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793383', 'tblTempUsageDetail_20' ) start [2025-03-30 03:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793383', 'tblTempUsageDetail_20' ) end [2025-03-30 03:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:20:24] Production.INFO: ==13600== Releasing lock... [2025-03-30 03:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:20:24] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:21:06 [end_date_ymd] => 2025-03-30 03:21:06 [RateCDR] => 1 ) [2025-03-30 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:21:06' and `end` < '2025-03-30 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:21:18] Production.INFO: count ==730 [2025-03-30 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:21:06 - End Time 2025-03-30 03:21:06 [2025-03-30 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793388', 'tblTempUsageDetail_20' ) start [2025-03-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793388', 'tblTempUsageDetail_20' ) end [2025-03-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793388', 'tblTempVendorCDR_20' ) start [2025-03-30 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793388', 'tblTempVendorCDR_20' ) end [2025-03-30 03:21:18] Production.INFO: ProcessCDR(1,14793388,1,1,2) [2025-03-30 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793388', 'tblTempUsageDetail_20' ) start [2025-03-30 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793388', 'tblTempUsageDetail_20' ) end [2025-03-30 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:21:22] Production.INFO: ==13686== Releasing lock... [2025-03-30 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:21:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:22:05 [end_date_ymd] => 2025-03-30 03:22:05 [RateCDR] => 1 ) [2025-03-30 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:22:05' and `end` < '2025-03-30 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:22:17] Production.INFO: count ==725 [2025-03-30 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:22:05 - End Time 2025-03-30 03:22:05 [2025-03-30 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793393', 'tblTempUsageDetail_20' ) start [2025-03-30 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793393', 'tblTempUsageDetail_20' ) end [2025-03-30 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793393', 'tblTempVendorCDR_20' ) start [2025-03-30 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793393', 'tblTempVendorCDR_20' ) end [2025-03-30 03:22:18] Production.INFO: ProcessCDR(1,14793393,1,1,2) [2025-03-30 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793393', 'tblTempUsageDetail_20' ) start [2025-03-30 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793393', 'tblTempUsageDetail_20' ) end [2025-03-30 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:22:21] Production.INFO: ==13768== Releasing lock... [2025-03-30 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:23:06 [end_date_ymd] => 2025-03-30 03:23:06 [RateCDR] => 1 ) [2025-03-30 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:23:06' and `end` < '2025-03-30 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:23:18] Production.INFO: count ==723 [2025-03-30 03:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:23:06 - End Time 2025-03-30 03:23:06 [2025-03-30 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793398', 'tblTempUsageDetail_20' ) start [2025-03-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793398', 'tblTempUsageDetail_20' ) end [2025-03-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793398', 'tblTempVendorCDR_20' ) start [2025-03-30 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793398', 'tblTempVendorCDR_20' ) end [2025-03-30 03:23:19] Production.INFO: ProcessCDR(1,14793398,1,1,2) [2025-03-30 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793398', 'tblTempUsageDetail_20' ) start [2025-03-30 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793398', 'tblTempUsageDetail_20' ) end [2025-03-30 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:23:22] Production.INFO: ==13845== Releasing lock... [2025-03-30 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:23:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:24:06 [end_date_ymd] => 2025-03-30 03:24:06 [RateCDR] => 1 ) [2025-03-30 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:24:06' and `end` < '2025-03-30 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:24:18] Production.INFO: count ==706 [2025-03-30 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:24:06 - End Time 2025-03-30 03:24:06 [2025-03-30 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793403', 'tblTempUsageDetail_20' ) start [2025-03-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793403', 'tblTempUsageDetail_20' ) end [2025-03-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793403', 'tblTempVendorCDR_20' ) start [2025-03-30 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793403', 'tblTempVendorCDR_20' ) end [2025-03-30 03:24:18] Production.INFO: ProcessCDR(1,14793403,1,1,2) [2025-03-30 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793403', 'tblTempUsageDetail_20' ) start [2025-03-30 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793403', 'tblTempUsageDetail_20' ) end [2025-03-30 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:24:22] Production.INFO: ==13919== Releasing lock... [2025-03-30 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:24:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:25:05 [end_date_ymd] => 2025-03-30 03:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:25:05' and `end` < '2025-03-30 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-03-30 03:25:18] Production.INFO: count ==704 [2025-03-30 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:25:05 - End Time 2025-03-30 03:25:05 [2025-03-30 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793408', 'tblTempUsageDetail_20' ) start [2025-03-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793408', 'tblTempUsageDetail_20' ) end [2025-03-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793408', 'tblTempVendorCDR_20' ) start [2025-03-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793408', 'tblTempVendorCDR_20' ) end [2025-03-30 03:25:18] Production.INFO: ProcessCDR(1,14793408,1,1,2) [2025-03-30 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793408', 'tblTempUsageDetail_20' ) start [2025-03-30 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793408', 'tblTempUsageDetail_20' ) end [2025-03-30 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:25:21] Production.INFO: ==13996== Releasing lock... [2025-03-30 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:26:05 [end_date_ymd] => 2025-03-30 03:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:26:05' and `end` < '2025-03-30 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-03-30 03:26:17] Production.INFO: count ==698 [2025-03-30 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:26:05 - End Time 2025-03-30 03:26:05 [2025-03-30 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793413', 'tblTempUsageDetail_20' ) start [2025-03-30 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793413', 'tblTempUsageDetail_20' ) end [2025-03-30 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793413', 'tblTempVendorCDR_20' ) start [2025-03-30 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793413', 'tblTempVendorCDR_20' ) end [2025-03-30 03:26:18] Production.INFO: ProcessCDR(1,14793413,1,1,2) [2025-03-30 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793413', 'tblTempUsageDetail_20' ) start [2025-03-30 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793413', 'tblTempUsageDetail_20' ) end [2025-03-30 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:26:22] Production.INFO: ==14073== Releasing lock... [2025-03-30 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:26:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:27:05 [end_date_ymd] => 2025-03-30 03:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:27:05' and `end` < '2025-03-30 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-03-30 03:27:17] Production.INFO: count ==700 [2025-03-30 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-30 00:27:05 - End Time 2025-03-30 03:27:05 [2025-03-30 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793418', 'tblTempUsageDetail_20' ) start [2025-03-30 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793418', 'tblTempUsageDetail_20' ) end [2025-03-30 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793418', 'tblTempVendorCDR_20' ) start [2025-03-30 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793418', 'tblTempVendorCDR_20' ) end [2025-03-30 03:27:18] Production.INFO: ProcessCDR(1,14793418,1,1,2) [2025-03-30 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793418', 'tblTempUsageDetail_20' ) start [2025-03-30 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793418', 'tblTempUsageDetail_20' ) end [2025-03-30 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:27:21] Production.INFO: ==14150== Releasing lock... [2025-03-30 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:28:05 [end_date_ymd] => 2025-03-30 03:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:28:05' and `end` < '2025-03-30 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-03-30 03:28:18] Production.INFO: count ==702 [2025-03-30 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:28:05 - End Time 2025-03-30 03:28:05 [2025-03-30 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793423', 'tblTempUsageDetail_20' ) start [2025-03-30 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793423', 'tblTempUsageDetail_20' ) end [2025-03-30 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793423', 'tblTempVendorCDR_20' ) start [2025-03-30 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793423', 'tblTempVendorCDR_20' ) end [2025-03-30 03:28:18] Production.INFO: ProcessCDR(1,14793423,1,1,2) [2025-03-30 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793423', 'tblTempUsageDetail_20' ) start [2025-03-30 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793423', 'tblTempUsageDetail_20' ) end [2025-03-30 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:28:22] Production.INFO: ==14232== Releasing lock... [2025-03-30 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:29:05 [end_date_ymd] => 2025-03-30 03:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:29:05' and `end` < '2025-03-30 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-03-30 03:29:17] Production.INFO: count ==704 [2025-03-30 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-30 00:29:05 - End Time 2025-03-30 03:29:05 [2025-03-30 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793428', 'tblTempUsageDetail_20' ) start [2025-03-30 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793428', 'tblTempUsageDetail_20' ) end [2025-03-30 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793428', 'tblTempVendorCDR_20' ) start [2025-03-30 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793428', 'tblTempVendorCDR_20' ) end [2025-03-30 03:29:18] Production.INFO: ProcessCDR(1,14793428,1,1,2) [2025-03-30 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793428', 'tblTempUsageDetail_20' ) start [2025-03-30 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793428', 'tblTempUsageDetail_20' ) end [2025-03-30 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:29:21] Production.INFO: ==14311== Releasing lock... [2025-03-30 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:30:07 [end_date_ymd] => 2025-03-30 03:30:07 [RateCDR] => 1 ) [2025-03-30 03:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:30:07' and `end` < '2025-03-30 03:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:30:19] Production.INFO: count ==678 [2025-03-30 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:30:07 - End Time 2025-03-30 03:30:07 [2025-03-30 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793434', 'tblTempUsageDetail_20' ) start [2025-03-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793434', 'tblTempUsageDetail_20' ) end [2025-03-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793434', 'tblTempVendorCDR_20' ) start [2025-03-30 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793434', 'tblTempVendorCDR_20' ) end [2025-03-30 03:30:19] Production.INFO: ProcessCDR(1,14793434,1,1,2) [2025-03-30 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793434', 'tblTempUsageDetail_20' ) start [2025-03-30 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793434', 'tblTempUsageDetail_20' ) end [2025-03-30 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:30:24] Production.INFO: ==14428== Releasing lock... [2025-03-30 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:30:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:31:06 [end_date_ymd] => 2025-03-30 03:31:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:31:06' and `end` < '2025-03-30 03: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-03-30 03:31:18] Production.INFO: count ==669 [2025-03-30 03:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:31:06 - End Time 2025-03-30 03:31:06 [2025-03-30 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793439', 'tblTempUsageDetail_20' ) start [2025-03-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793439', 'tblTempUsageDetail_20' ) end [2025-03-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793439', 'tblTempVendorCDR_20' ) start [2025-03-30 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793439', 'tblTempVendorCDR_20' ) end [2025-03-30 03:31:19] Production.INFO: ProcessCDR(1,14793439,1,1,2) [2025-03-30 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793439', 'tblTempUsageDetail_20' ) start [2025-03-30 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793439', 'tblTempUsageDetail_20' ) end [2025-03-30 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:31:22] Production.INFO: ==14507== Releasing lock... [2025-03-30 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:31:22] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:32:06 [end_date_ymd] => 2025-03-30 03:32:06 [RateCDR] => 1 ) [2025-03-30 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:32:06' and `end` < '2025-03-30 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:32:19] Production.INFO: count ==669 [2025-03-30 03:32:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:32:06 - End Time 2025-03-30 03:32:06 [2025-03-30 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793444', 'tblTempUsageDetail_20' ) start [2025-03-30 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793444', 'tblTempUsageDetail_20' ) end [2025-03-30 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793444', 'tblTempVendorCDR_20' ) start [2025-03-30 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793444', 'tblTempVendorCDR_20' ) end [2025-03-30 03:32:19] Production.INFO: ProcessCDR(1,14793444,1,1,2) [2025-03-30 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793444', 'tblTempUsageDetail_20' ) start [2025-03-30 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793444', 'tblTempUsageDetail_20' ) end [2025-03-30 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:32:23] Production.INFO: ==14584== Releasing lock... [2025-03-30 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:32:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:33:05 [end_date_ymd] => 2025-03-30 03:33:05 [RateCDR] => 1 ) [2025-03-30 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:33:05' and `end` < '2025-03-30 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:33:18] Production.INFO: count ==670 [2025-03-30 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:33:05 - End Time 2025-03-30 03:33:05 [2025-03-30 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793449', 'tblTempUsageDetail_20' ) start [2025-03-30 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793449', 'tblTempUsageDetail_20' ) end [2025-03-30 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793449', 'tblTempVendorCDR_20' ) start [2025-03-30 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793449', 'tblTempVendorCDR_20' ) end [2025-03-30 03:33:18] Production.INFO: ProcessCDR(1,14793449,1,1,2) [2025-03-30 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793449', 'tblTempUsageDetail_20' ) start [2025-03-30 03:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793449', 'tblTempUsageDetail_20' ) end [2025-03-30 03:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:33:24] Production.INFO: ==14659== Releasing lock... [2025-03-30 03:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:33:24] Production.INFO: 34 MB #Memory Used# [2025-03-30 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:34:05 [end_date_ymd] => 2025-03-30 03:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:34:05' and `end` < '2025-03-30 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-03-30 03:34:18] Production.INFO: count ==670 [2025-03-30 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:34:05 - End Time 2025-03-30 03:34:05 [2025-03-30 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793454', 'tblTempUsageDetail_20' ) start [2025-03-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793454', 'tblTempUsageDetail_20' ) end [2025-03-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793454', 'tblTempVendorCDR_20' ) start [2025-03-30 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793454', 'tblTempVendorCDR_20' ) end [2025-03-30 03:34:18] Production.INFO: ProcessCDR(1,14793454,1,1,2) [2025-03-30 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793454', 'tblTempUsageDetail_20' ) start [2025-03-30 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793454', 'tblTempUsageDetail_20' ) end [2025-03-30 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:34:22] Production.INFO: ==14737== Releasing lock... [2025-03-30 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:35:06 [end_date_ymd] => 2025-03-30 03:35:06 [RateCDR] => 1 ) [2025-03-30 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:35:06' and `end` < '2025-03-30 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:35:18] Production.INFO: count ==670 [2025-03-30 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:35:06 - End Time 2025-03-30 03:35:06 [2025-03-30 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793459', 'tblTempUsageDetail_20' ) start [2025-03-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793459', 'tblTempUsageDetail_20' ) end [2025-03-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793459', 'tblTempVendorCDR_20' ) start [2025-03-30 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793459', 'tblTempVendorCDR_20' ) end [2025-03-30 03:35:19] Production.INFO: ProcessCDR(1,14793459,1,1,2) [2025-03-30 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793459', 'tblTempUsageDetail_20' ) start [2025-03-30 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793459', 'tblTempUsageDetail_20' ) end [2025-03-30 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:35:22] Production.INFO: ==14842== Releasing lock... [2025-03-30 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:36:06 [end_date_ymd] => 2025-03-30 03:36:06 [RateCDR] => 1 ) [2025-03-30 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:36:06' and `end` < '2025-03-30 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:36:19] Production.INFO: count ==662 [2025-03-30 03:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:36:06 - End Time 2025-03-30 03:36:06 [2025-03-30 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793464', 'tblTempUsageDetail_20' ) start [2025-03-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793464', 'tblTempUsageDetail_20' ) end [2025-03-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793464', 'tblTempVendorCDR_20' ) start [2025-03-30 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793464', 'tblTempVendorCDR_20' ) end [2025-03-30 03:36:19] Production.INFO: ProcessCDR(1,14793464,1,1,2) [2025-03-30 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793464', 'tblTempUsageDetail_20' ) start [2025-03-30 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793464', 'tblTempUsageDetail_20' ) end [2025-03-30 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:36:23] Production.INFO: ==14941== Releasing lock... [2025-03-30 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:36:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:37:06 [end_date_ymd] => 2025-03-30 03:37:06 [RateCDR] => 1 ) [2025-03-30 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:37:06' and `end` < '2025-03-30 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:37:18] Production.INFO: count ==653 [2025-03-30 03:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:37:06 - End Time 2025-03-30 03:37:06 [2025-03-30 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793469', 'tblTempUsageDetail_20' ) start [2025-03-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793469', 'tblTempUsageDetail_20' ) end [2025-03-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793469', 'tblTempVendorCDR_20' ) start [2025-03-30 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793469', 'tblTempVendorCDR_20' ) end [2025-03-30 03:37:19] Production.INFO: ProcessCDR(1,14793469,1,1,2) [2025-03-30 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793469', 'tblTempUsageDetail_20' ) start [2025-03-30 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793469', 'tblTempUsageDetail_20' ) end [2025-03-30 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:37:22] Production.INFO: ==15017== Releasing lock... [2025-03-30 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:37:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:38:06 [end_date_ymd] => 2025-03-30 03:38:06 [RateCDR] => 1 ) [2025-03-30 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:38:06' and `end` < '2025-03-30 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:38:19] Production.INFO: count ==650 [2025-03-30 03:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:38:06 - End Time 2025-03-30 03:38:06 [2025-03-30 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793474', 'tblTempUsageDetail_20' ) start [2025-03-30 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793474', 'tblTempUsageDetail_20' ) end [2025-03-30 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793474', 'tblTempVendorCDR_20' ) start [2025-03-30 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793474', 'tblTempVendorCDR_20' ) end [2025-03-30 03:38:19] Production.INFO: ProcessCDR(1,14793474,1,1,2) [2025-03-30 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793474', 'tblTempUsageDetail_20' ) start [2025-03-30 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793474', 'tblTempUsageDetail_20' ) end [2025-03-30 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:38:23] Production.INFO: ==15097== Releasing lock... [2025-03-30 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:39:06 [end_date_ymd] => 2025-03-30 03:39:06 [RateCDR] => 1 ) [2025-03-30 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:39:06' and `end` < '2025-03-30 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:39:18] Production.INFO: count ==650 [2025-03-30 03:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:39:06 - End Time 2025-03-30 03:39:06 [2025-03-30 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793479', 'tblTempUsageDetail_20' ) start [2025-03-30 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793479', 'tblTempUsageDetail_20' ) end [2025-03-30 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793479', 'tblTempVendorCDR_20' ) start [2025-03-30 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793479', 'tblTempVendorCDR_20' ) end [2025-03-30 03:39:19] Production.INFO: ProcessCDR(1,14793479,1,1,2) [2025-03-30 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793479', 'tblTempUsageDetail_20' ) start [2025-03-30 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793479', 'tblTempUsageDetail_20' ) end [2025-03-30 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:39:22] Production.INFO: ==15176== Releasing lock... [2025-03-30 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:40:07 [end_date_ymd] => 2025-03-30 03:40:07 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:40:07' and `end` < '2025-03-30 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-03-30 03:40:19] Production.INFO: count ==640 [2025-03-30 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:40:07 - End Time 2025-03-30 03:40:07 [2025-03-30 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793485', 'tblTempUsageDetail_20' ) start [2025-03-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793485', 'tblTempUsageDetail_20' ) end [2025-03-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793485', 'tblTempVendorCDR_20' ) start [2025-03-30 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793485', 'tblTempVendorCDR_20' ) end [2025-03-30 03:40:20] Production.INFO: ProcessCDR(1,14793485,1,1,2) [2025-03-30 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793485', 'tblTempUsageDetail_20' ) start [2025-03-30 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793485', 'tblTempUsageDetail_20' ) end [2025-03-30 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:40:23] Production.INFO: ==15255== Releasing lock... [2025-03-30 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:41:05 [end_date_ymd] => 2025-03-30 03:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:41:05' and `end` < '2025-03-30 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-03-30 03:41:18] Production.INFO: count ==634 [2025-03-30 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:41:05 - End Time 2025-03-30 03:41:05 [2025-03-30 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793490', 'tblTempUsageDetail_20' ) start [2025-03-30 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793490', 'tblTempUsageDetail_20' ) end [2025-03-30 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793490', 'tblTempVendorCDR_20' ) start [2025-03-30 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793490', 'tblTempVendorCDR_20' ) end [2025-03-30 03:41:18] Production.INFO: ProcessCDR(1,14793490,1,1,2) [2025-03-30 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793490', 'tblTempUsageDetail_20' ) start [2025-03-30 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793490', 'tblTempUsageDetail_20' ) end [2025-03-30 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:41:22] Production.INFO: ==15340== Releasing lock... [2025-03-30 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:41:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:42:06 [end_date_ymd] => 2025-03-30 03:42:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:42:06' and `end` < '2025-03-30 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-03-30 03:42:18] Production.INFO: count ==631 [2025-03-30 03:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:42:06 - End Time 2025-03-30 03:42:06 [2025-03-30 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793495', 'tblTempUsageDetail_20' ) start [2025-03-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793495', 'tblTempUsageDetail_20' ) end [2025-03-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793495', 'tblTempVendorCDR_20' ) start [2025-03-30 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793495', 'tblTempVendorCDR_20' ) end [2025-03-30 03:42:19] Production.INFO: ProcessCDR(1,14793495,1,1,2) [2025-03-30 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793495', 'tblTempUsageDetail_20' ) start [2025-03-30 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793495', 'tblTempUsageDetail_20' ) end [2025-03-30 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:42:23] Production.INFO: ==15419== Releasing lock... [2025-03-30 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:43:06 [end_date_ymd] => 2025-03-30 03:43:06 [RateCDR] => 1 ) [2025-03-30 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:43:06' and `end` < '2025-03-30 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:43:18] Production.INFO: count ==627 [2025-03-30 03:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:43:06 - End Time 2025-03-30 03:43:06 [2025-03-30 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793500', 'tblTempUsageDetail_20' ) start [2025-03-30 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793500', 'tblTempUsageDetail_20' ) end [2025-03-30 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793500', 'tblTempVendorCDR_20' ) start [2025-03-30 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793500', 'tblTempVendorCDR_20' ) end [2025-03-30 03:43:19] Production.INFO: ProcessCDR(1,14793500,1,1,2) [2025-03-30 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793500', 'tblTempUsageDetail_20' ) start [2025-03-30 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793500', 'tblTempUsageDetail_20' ) end [2025-03-30 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:43:23] Production.INFO: ==15497== Releasing lock... [2025-03-30 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:44:06 [end_date_ymd] => 2025-03-30 03:44:06 [RateCDR] => 1 ) [2025-03-30 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:44:06' and `end` < '2025-03-30 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:44:18] Production.INFO: count ==624 [2025-03-30 03:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:44:06 - End Time 2025-03-30 03:44:06 [2025-03-30 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793505', 'tblTempUsageDetail_20' ) start [2025-03-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793505', 'tblTempUsageDetail_20' ) end [2025-03-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793505', 'tblTempVendorCDR_20' ) start [2025-03-30 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793505', 'tblTempVendorCDR_20' ) end [2025-03-30 03:44:19] Production.INFO: ProcessCDR(1,14793505,1,1,2) [2025-03-30 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793505', 'tblTempUsageDetail_20' ) start [2025-03-30 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793505', 'tblTempUsageDetail_20' ) end [2025-03-30 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:44:22] Production.INFO: ==15578== Releasing lock... [2025-03-30 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:45:05 [end_date_ymd] => 2025-03-30 03:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:45:05' and `end` < '2025-03-30 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-03-30 03:45:18] Production.INFO: count ==621 [2025-03-30 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:45:05 - End Time 2025-03-30 03:45:05 [2025-03-30 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793510', 'tblTempUsageDetail_20' ) start [2025-03-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793510', 'tblTempUsageDetail_20' ) end [2025-03-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793510', 'tblTempVendorCDR_20' ) start [2025-03-30 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793510', 'tblTempVendorCDR_20' ) end [2025-03-30 03:45:18] Production.INFO: ProcessCDR(1,14793510,1,1,2) [2025-03-30 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793510', 'tblTempUsageDetail_20' ) start [2025-03-30 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793510', 'tblTempUsageDetail_20' ) end [2025-03-30 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:45:21] Production.INFO: ==15655== Releasing lock... [2025-03-30 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:46:06 [end_date_ymd] => 2025-03-30 03:46:06 [RateCDR] => 1 ) [2025-03-30 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:46:06' and `end` < '2025-03-30 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:46:18] Production.INFO: count ==621 [2025-03-30 03:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:46:06 - End Time 2025-03-30 03:46:06 [2025-03-30 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793515', 'tblTempUsageDetail_20' ) start [2025-03-30 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793515', 'tblTempUsageDetail_20' ) end [2025-03-30 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793515', 'tblTempVendorCDR_20' ) start [2025-03-30 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793515', 'tblTempVendorCDR_20' ) end [2025-03-30 03:46:19] Production.INFO: ProcessCDR(1,14793515,1,1,2) [2025-03-30 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793515', 'tblTempUsageDetail_20' ) start [2025-03-30 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793515', 'tblTempUsageDetail_20' ) end [2025-03-30 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:46:22] Production.INFO: ==15776== Releasing lock... [2025-03-30 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:47:05 [end_date_ymd] => 2025-03-30 03:47:05 [RateCDR] => 1 ) [2025-03-30 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:47:05' and `end` < '2025-03-30 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:47:18] Production.INFO: count ==619 [2025-03-30 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:47:05 - End Time 2025-03-30 03:47:05 [2025-03-30 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793520', 'tblTempUsageDetail_20' ) start [2025-03-30 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793520', 'tblTempUsageDetail_20' ) end [2025-03-30 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793520', 'tblTempVendorCDR_20' ) start [2025-03-30 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793520', 'tblTempVendorCDR_20' ) end [2025-03-30 03:47:18] Production.INFO: ProcessCDR(1,14793520,1,1,2) [2025-03-30 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793520', 'tblTempUsageDetail_20' ) start [2025-03-30 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793520', 'tblTempUsageDetail_20' ) end [2025-03-30 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:47:22] Production.INFO: ==15857== Releasing lock... [2025-03-30 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:48:06 [end_date_ymd] => 2025-03-30 03:48:06 [RateCDR] => 1 ) [2025-03-30 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:48:06' and `end` < '2025-03-30 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:48:19] Production.INFO: count ==615 [2025-03-30 03:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:48:06 - End Time 2025-03-30 03:48:06 [2025-03-30 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793525', 'tblTempUsageDetail_20' ) start [2025-03-30 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793525', 'tblTempUsageDetail_20' ) end [2025-03-30 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793525', 'tblTempVendorCDR_20' ) start [2025-03-30 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793525', 'tblTempVendorCDR_20' ) end [2025-03-30 03:48:19] Production.INFO: ProcessCDR(1,14793525,1,1,2) [2025-03-30 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793525', 'tblTempUsageDetail_20' ) start [2025-03-30 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793525', 'tblTempUsageDetail_20' ) end [2025-03-30 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:48:23] Production.INFO: ==15938== Releasing lock... [2025-03-30 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:48:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:49:05 [end_date_ymd] => 2025-03-30 03:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:49:05' and `end` < '2025-03-30 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-03-30 03:49:18] Production.INFO: count ==615 [2025-03-30 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:49:05 - End Time 2025-03-30 03:49:05 [2025-03-30 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793530', 'tblTempUsageDetail_20' ) start [2025-03-30 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793530', 'tblTempUsageDetail_20' ) end [2025-03-30 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793530', 'tblTempVendorCDR_20' ) start [2025-03-30 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793530', 'tblTempVendorCDR_20' ) end [2025-03-30 03:49:18] Production.INFO: ProcessCDR(1,14793530,1,1,2) [2025-03-30 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793530', 'tblTempUsageDetail_20' ) start [2025-03-30 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793530', 'tblTempUsageDetail_20' ) end [2025-03-30 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:49:22] Production.INFO: ==16021== Releasing lock... [2025-03-30 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:50:07 [end_date_ymd] => 2025-03-30 03:50:07 [RateCDR] => 1 ) [2025-03-30 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:50:07' and `end` < '2025-03-30 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:50:20] Production.INFO: count ==630 [2025-03-30 03:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 00:50:07 - End Time 2025-03-30 03:50:07 [2025-03-30 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793536', 'tblTempUsageDetail_20' ) start [2025-03-30 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793536', 'tblTempUsageDetail_20' ) end [2025-03-30 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793536', 'tblTempVendorCDR_20' ) start [2025-03-30 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793536', 'tblTempVendorCDR_20' ) end [2025-03-30 03:50:20] Production.INFO: ProcessCDR(1,14793536,1,1,2) [2025-03-30 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793536', 'tblTempUsageDetail_20' ) start [2025-03-30 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793536', 'tblTempUsageDetail_20' ) end [2025-03-30 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:50:24] Production.INFO: ==16104== Releasing lock... [2025-03-30 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:50:24] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:51:06 [end_date_ymd] => 2025-03-30 03:51:06 [RateCDR] => 1 ) [2025-03-30 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:51:06' and `end` < '2025-03-30 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:51:18] Production.INFO: count ==636 [2025-03-30 03:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:51:06 - End Time 2025-03-30 03:51:06 [2025-03-30 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793541', 'tblTempUsageDetail_20' ) start [2025-03-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793541', 'tblTempUsageDetail_20' ) end [2025-03-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793541', 'tblTempVendorCDR_20' ) start [2025-03-30 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793541', 'tblTempVendorCDR_20' ) end [2025-03-30 03:51:19] Production.INFO: ProcessCDR(1,14793541,1,1,2) [2025-03-30 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793541', 'tblTempUsageDetail_20' ) start [2025-03-30 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793541', 'tblTempUsageDetail_20' ) end [2025-03-30 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:51:22] Production.INFO: ==16185== Releasing lock... [2025-03-30 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:52:06 [end_date_ymd] => 2025-03-30 03:52:06 [RateCDR] => 1 ) [2025-03-30 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:52:06' and `end` < '2025-03-30 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:52:18] Production.INFO: count ==636 [2025-03-30 03:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:52:06 - End Time 2025-03-30 03:52:06 [2025-03-30 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793546', 'tblTempUsageDetail_20' ) start [2025-03-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793546', 'tblTempUsageDetail_20' ) end [2025-03-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793546', 'tblTempVendorCDR_20' ) start [2025-03-30 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793546', 'tblTempVendorCDR_20' ) end [2025-03-30 03:52:19] Production.INFO: ProcessCDR(1,14793546,1,1,2) [2025-03-30 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793546', 'tblTempUsageDetail_20' ) start [2025-03-30 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793546', 'tblTempUsageDetail_20' ) end [2025-03-30 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:52:22] Production.INFO: ==16263== Releasing lock... [2025-03-30 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:53:05 [end_date_ymd] => 2025-03-30 03:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:53:05' and `end` < '2025-03-30 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-03-30 03:53:18] Production.INFO: count ==636 [2025-03-30 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:53:05 - End Time 2025-03-30 03:53:05 [2025-03-30 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793551', 'tblTempUsageDetail_20' ) start [2025-03-30 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793551', 'tblTempUsageDetail_20' ) end [2025-03-30 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793551', 'tblTempVendorCDR_20' ) start [2025-03-30 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793551', 'tblTempVendorCDR_20' ) end [2025-03-30 03:53:18] Production.INFO: ProcessCDR(1,14793551,1,1,2) [2025-03-30 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793551', 'tblTempUsageDetail_20' ) start [2025-03-30 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793551', 'tblTempUsageDetail_20' ) end [2025-03-30 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:53:21] Production.INFO: ==16343== Releasing lock... [2025-03-30 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:54:06 [end_date_ymd] => 2025-03-30 03:54:06 [RateCDR] => 1 ) [2025-03-30 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:54:06' and `end` < '2025-03-30 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:54:18] Production.INFO: count ==638 [2025-03-30 03:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:54:06 - End Time 2025-03-30 03:54:06 [2025-03-30 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793556', 'tblTempUsageDetail_20' ) start [2025-03-30 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793556', 'tblTempUsageDetail_20' ) end [2025-03-30 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793556', 'tblTempVendorCDR_20' ) start [2025-03-30 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793556', 'tblTempVendorCDR_20' ) end [2025-03-30 03:54:19] Production.INFO: ProcessCDR(1,14793556,1,1,2) [2025-03-30 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793556', 'tblTempUsageDetail_20' ) start [2025-03-30 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793556', 'tblTempUsageDetail_20' ) end [2025-03-30 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:54:22] Production.INFO: ==16424== Releasing lock... [2025-03-30 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:55:06 [end_date_ymd] => 2025-03-30 03:55:06 [RateCDR] => 1 ) [2025-03-30 03: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-03-30 00:55:06' and `end` < '2025-03-30 03: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-03-30 03:55:18] Production.INFO: count ==640 [2025-03-30 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:55:06 - End Time 2025-03-30 03:55:06 [2025-03-30 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793561', 'tblTempUsageDetail_20' ) start [2025-03-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793561', 'tblTempUsageDetail_20' ) end [2025-03-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793561', 'tblTempVendorCDR_20' ) start [2025-03-30 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793561', 'tblTempVendorCDR_20' ) end [2025-03-30 03:55:18] Production.INFO: ProcessCDR(1,14793561,1,1,2) [2025-03-30 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793561', 'tblTempUsageDetail_20' ) start [2025-03-30 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793561', 'tblTempUsageDetail_20' ) end [2025-03-30 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:55:22] Production.INFO: ==16498== Releasing lock... [2025-03-30 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:55:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:56:06 [end_date_ymd] => 2025-03-30 03:56:06 [RateCDR] => 1 ) [2025-03-30 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:56:06' and `end` < '2025-03-30 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:56:19] Production.INFO: count ==640 [2025-03-30 03:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:56:06 - End Time 2025-03-30 03:56:06 [2025-03-30 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793566', 'tblTempUsageDetail_20' ) start [2025-03-30 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793566', 'tblTempUsageDetail_20' ) end [2025-03-30 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793566', 'tblTempVendorCDR_20' ) start [2025-03-30 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793566', 'tblTempVendorCDR_20' ) end [2025-03-30 03:56:19] Production.INFO: ProcessCDR(1,14793566,1,1,2) [2025-03-30 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793566', 'tblTempUsageDetail_20' ) start [2025-03-30 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793566', 'tblTempUsageDetail_20' ) end [2025-03-30 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:56:23] Production.INFO: ==16578== Releasing lock... [2025-03-30 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:56:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:57:05 [end_date_ymd] => 2025-03-30 03:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:57:05' and `end` < '2025-03-30 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-03-30 03:57:18] Production.INFO: count ==654 [2025-03-30 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:57:05 - End Time 2025-03-30 03:57:05 [2025-03-30 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793571', 'tblTempUsageDetail_20' ) start [2025-03-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793571', 'tblTempUsageDetail_20' ) end [2025-03-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793571', 'tblTempVendorCDR_20' ) start [2025-03-30 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793571', 'tblTempVendorCDR_20' ) end [2025-03-30 03:57:18] Production.INFO: ProcessCDR(1,14793571,1,1,2) [2025-03-30 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793571', 'tblTempUsageDetail_20' ) start [2025-03-30 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793571', 'tblTempUsageDetail_20' ) end [2025-03-30 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:57:23] Production.INFO: ==16657== Releasing lock... [2025-03-30 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:57:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:58:06 [end_date_ymd] => 2025-03-30 03:58:06 [RateCDR] => 1 ) [2025-03-30 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 00:58:06' and `end` < '2025-03-30 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 03:58:18] Production.INFO: count ==657 [2025-03-30 03:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 00:58:06 - End Time 2025-03-30 03:58:06 [2025-03-30 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793576', 'tblTempUsageDetail_20' ) start [2025-03-30 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793576', 'tblTempUsageDetail_20' ) end [2025-03-30 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793576', 'tblTempVendorCDR_20' ) start [2025-03-30 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793576', 'tblTempVendorCDR_20' ) end [2025-03-30 03:58:19] Production.INFO: ProcessCDR(1,14793576,1,1,2) [2025-03-30 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793576', 'tblTempUsageDetail_20' ) start [2025-03-30 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793576', 'tblTempUsageDetail_20' ) end [2025-03-30 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:58:23] Production.INFO: ==16733== Releasing lock... [2025-03-30 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:58:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 00:59:05 [end_date_ymd] => 2025-03-30 03:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 00:59:05' and `end` < '2025-03-30 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-03-30 03:59:18] Production.INFO: count ==654 [2025-03-30 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 00:59:05 - End Time 2025-03-30 03:59:05 [2025-03-30 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793581', 'tblTempUsageDetail_20' ) start [2025-03-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793581', 'tblTempUsageDetail_20' ) end [2025-03-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793581', 'tblTempVendorCDR_20' ) start [2025-03-30 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793581', 'tblTempVendorCDR_20' ) end [2025-03-30 03:59:18] Production.INFO: ProcessCDR(1,14793581,1,1,2) [2025-03-30 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793581', 'tblTempUsageDetail_20' ) start [2025-03-30 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793581', 'tblTempUsageDetail_20' ) end [2025-03-30 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 03:59:22] Production.INFO: ==16813== Releasing lock... [2025-03-30 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 03:59:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:00:07 [end_date_ymd] => 2025-03-30 04:00:07 [RateCDR] => 1 ) [2025-03-30 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:00:07' and `end` < '2025-03-30 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:00:20] Production.INFO: count ==643 [2025-03-30 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 01:00:07 - End Time 2025-03-30 04:00:07 [2025-03-30 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793587', 'tblTempUsageDetail_20' ) start [2025-03-30 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793587', 'tblTempUsageDetail_20' ) end [2025-03-30 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793587', 'tblTempVendorCDR_20' ) start [2025-03-30 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793587', 'tblTempVendorCDR_20' ) end [2025-03-30 04:00:20] Production.INFO: ProcessCDR(1,14793587,1,1,2) [2025-03-30 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793587', 'tblTempUsageDetail_20' ) start [2025-03-30 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793587', 'tblTempUsageDetail_20' ) end [2025-03-30 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:00:24] Production.INFO: ==16895== Releasing lock... [2025-03-30 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:01:06 [end_date_ymd] => 2025-03-30 04:01:06 [RateCDR] => 1 ) [2025-03-30 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:01:06' and `end` < '2025-03-30 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:01:18] Production.INFO: count ==629 [2025-03-30 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:01:06 - End Time 2025-03-30 04:01:06 [2025-03-30 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793593', 'tblTempUsageDetail_20' ) start [2025-03-30 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793593', 'tblTempUsageDetail_20' ) end [2025-03-30 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793593', 'tblTempVendorCDR_20' ) start [2025-03-30 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793593', 'tblTempVendorCDR_20' ) end [2025-03-30 04:01:19] Production.INFO: ProcessCDR(1,14793593,1,1,2) [2025-03-30 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793593', 'tblTempUsageDetail_20' ) start [2025-03-30 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793593', 'tblTempUsageDetail_20' ) end [2025-03-30 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:01:23] Production.INFO: ==17031== Releasing lock... [2025-03-30 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:02:06 [end_date_ymd] => 2025-03-30 04:02:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:02:06' and `end` < '2025-03-30 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-03-30 04:02:18] Production.INFO: count ==625 [2025-03-30 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:02:06 - End Time 2025-03-30 04:02:06 [2025-03-30 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793598', 'tblTempUsageDetail_20' ) start [2025-03-30 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793598', 'tblTempUsageDetail_20' ) end [2025-03-30 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793598', 'tblTempVendorCDR_20' ) start [2025-03-30 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793598', 'tblTempVendorCDR_20' ) end [2025-03-30 04:02:18] Production.INFO: ProcessCDR(1,14793598,1,1,2) [2025-03-30 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793598', 'tblTempUsageDetail_20' ) start [2025-03-30 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793598', 'tblTempUsageDetail_20' ) end [2025-03-30 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:02:22] Production.INFO: ==17117== Releasing lock... [2025-03-30 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:03:05 [end_date_ymd] => 2025-03-30 04:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:03:05' and `end` < '2025-03-30 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-03-30 04:03:17] Production.INFO: count ==617 [2025-03-30 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:03:05 - End Time 2025-03-30 04:03:05 [2025-03-30 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793603', 'tblTempUsageDetail_20' ) start [2025-03-30 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793603', 'tblTempUsageDetail_20' ) end [2025-03-30 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793603', 'tblTempVendorCDR_20' ) start [2025-03-30 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793603', 'tblTempVendorCDR_20' ) end [2025-03-30 04:03:18] Production.INFO: ProcessCDR(1,14793603,1,1,2) [2025-03-30 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793603', 'tblTempUsageDetail_20' ) start [2025-03-30 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793603', 'tblTempUsageDetail_20' ) end [2025-03-30 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:03:22] Production.INFO: ==17204== Releasing lock... [2025-03-30 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:04:06 [end_date_ymd] => 2025-03-30 04:04:06 [RateCDR] => 1 ) [2025-03-30 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:04:06' and `end` < '2025-03-30 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:04:18] Production.INFO: count ==609 [2025-03-30 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:04:06 - End Time 2025-03-30 04:04:06 [2025-03-30 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793608', 'tblTempUsageDetail_20' ) start [2025-03-30 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793608', 'tblTempUsageDetail_20' ) end [2025-03-30 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793608', 'tblTempVendorCDR_20' ) start [2025-03-30 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793608', 'tblTempVendorCDR_20' ) end [2025-03-30 04:04:19] Production.INFO: ProcessCDR(1,14793608,1,1,2) [2025-03-30 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793608', 'tblTempUsageDetail_20' ) start [2025-03-30 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793608', 'tblTempUsageDetail_20' ) end [2025-03-30 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:04:22] Production.INFO: ==17293== Releasing lock... [2025-03-30 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:05:06 [end_date_ymd] => 2025-03-30 04:05:06 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:05:06' and `end` < '2025-03-30 04: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-03-30 04:05:18] Production.INFO: count ==611 [2025-03-30 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:05:06 - End Time 2025-03-30 04:05:06 [2025-03-30 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793613', 'tblTempUsageDetail_20' ) start [2025-03-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793613', 'tblTempUsageDetail_20' ) end [2025-03-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793613', 'tblTempVendorCDR_20' ) start [2025-03-30 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793613', 'tblTempVendorCDR_20' ) end [2025-03-30 04:05:18] Production.INFO: ProcessCDR(1,14793613,1,1,2) [2025-03-30 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793613', 'tblTempUsageDetail_20' ) start [2025-03-30 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793613', 'tblTempUsageDetail_20' ) end [2025-03-30 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:05:22] Production.INFO: ==17380== Releasing lock... [2025-03-30 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:06:06 [end_date_ymd] => 2025-03-30 04:06:06 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:06:06' and `end` < '2025-03-30 04: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-03-30 04:06:19] Production.INFO: count ==617 [2025-03-30 04:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:06:06 - End Time 2025-03-30 04:06:06 [2025-03-30 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793618', 'tblTempUsageDetail_20' ) start [2025-03-30 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793618', 'tblTempUsageDetail_20' ) end [2025-03-30 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793618', 'tblTempVendorCDR_20' ) start [2025-03-30 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793618', 'tblTempVendorCDR_20' ) end [2025-03-30 04:06:19] Production.INFO: ProcessCDR(1,14793618,1,1,2) [2025-03-30 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793618', 'tblTempUsageDetail_20' ) start [2025-03-30 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793618', 'tblTempUsageDetail_20' ) end [2025-03-30 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:06:22] Production.INFO: ==17468== Releasing lock... [2025-03-30 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:07:05 [end_date_ymd] => 2025-03-30 04:07:05 [RateCDR] => 1 ) [2025-03-30 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:07:05' and `end` < '2025-03-30 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:07:17] Production.INFO: count ==627 [2025-03-30 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-30 01:07:05 - End Time 2025-03-30 04:07:05 [2025-03-30 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793623', 'tblTempUsageDetail_20' ) start [2025-03-30 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793623', 'tblTempUsageDetail_20' ) end [2025-03-30 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793623', 'tblTempVendorCDR_20' ) start [2025-03-30 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793623', 'tblTempVendorCDR_20' ) end [2025-03-30 04:07:17] Production.INFO: ProcessCDR(1,14793623,1,1,2) [2025-03-30 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793623', 'tblTempUsageDetail_20' ) start [2025-03-30 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793623', 'tblTempUsageDetail_20' ) end [2025-03-30 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:07:21] Production.INFO: ==17562== Releasing lock... [2025-03-30 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:08:06 [end_date_ymd] => 2025-03-30 04:08:06 [RateCDR] => 1 ) [2025-03-30 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:08:06' and `end` < '2025-03-30 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:08:18] Production.INFO: count ==627 [2025-03-30 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:08:06 - End Time 2025-03-30 04:08:06 [2025-03-30 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793628', 'tblTempUsageDetail_20' ) start [2025-03-30 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793628', 'tblTempUsageDetail_20' ) end [2025-03-30 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793628', 'tblTempVendorCDR_20' ) start [2025-03-30 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793628', 'tblTempVendorCDR_20' ) end [2025-03-30 04:08:18] Production.INFO: ProcessCDR(1,14793628,1,1,2) [2025-03-30 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793628', 'tblTempUsageDetail_20' ) start [2025-03-30 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793628', 'tblTempUsageDetail_20' ) end [2025-03-30 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:08:22] Production.INFO: ==17650== Releasing lock... [2025-03-30 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:08:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:09:05 [end_date_ymd] => 2025-03-30 04:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:09:05' and `end` < '2025-03-30 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-03-30 04:09:18] Production.INFO: count ==628 [2025-03-30 04:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:09:05 - End Time 2025-03-30 04:09:05 [2025-03-30 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793633', 'tblTempUsageDetail_20' ) start [2025-03-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793633', 'tblTempUsageDetail_20' ) end [2025-03-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793633', 'tblTempVendorCDR_20' ) start [2025-03-30 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793633', 'tblTempVendorCDR_20' ) end [2025-03-30 04:09:18] Production.INFO: ProcessCDR(1,14793633,1,1,2) [2025-03-30 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793633', 'tblTempUsageDetail_20' ) start [2025-03-30 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793633', 'tblTempUsageDetail_20' ) end [2025-03-30 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:09:21] Production.INFO: ==17738== Releasing lock... [2025-03-30 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:10:06 [end_date_ymd] => 2025-03-30 04:10:06 [RateCDR] => 1 ) [2025-03-30 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:10:06' and `end` < '2025-03-30 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:10:19] Production.INFO: count ==636 [2025-03-30 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:10:06 - End Time 2025-03-30 04:10:06 [2025-03-30 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793639', 'tblTempUsageDetail_20' ) start [2025-03-30 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793639', 'tblTempUsageDetail_20' ) end [2025-03-30 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793639', 'tblTempVendorCDR_20' ) start [2025-03-30 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793639', 'tblTempVendorCDR_20' ) end [2025-03-30 04:10:19] Production.INFO: ProcessCDR(1,14793639,1,1,2) [2025-03-30 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793639', 'tblTempUsageDetail_20' ) start [2025-03-30 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793639', 'tblTempUsageDetail_20' ) end [2025-03-30 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:10:22] Production.INFO: ==17829== Releasing lock... [2025-03-30 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:10:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:11:05 [end_date_ymd] => 2025-03-30 04:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:11:05' and `end` < '2025-03-30 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-03-30 04:11:18] Production.INFO: count ==625 [2025-03-30 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:11:05 - End Time 2025-03-30 04:11:05 [2025-03-30 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793644', 'tblTempUsageDetail_20' ) start [2025-03-30 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793644', 'tblTempUsageDetail_20' ) end [2025-03-30 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793644', 'tblTempVendorCDR_20' ) start [2025-03-30 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793644', 'tblTempVendorCDR_20' ) end [2025-03-30 04:11:18] Production.INFO: ProcessCDR(1,14793644,1,1,2) [2025-03-30 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793644', 'tblTempUsageDetail_20' ) start [2025-03-30 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793644', 'tblTempUsageDetail_20' ) end [2025-03-30 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:11:21] Production.INFO: ==17927== Releasing lock... [2025-03-30 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:12:05 [end_date_ymd] => 2025-03-30 04:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:12:05' and `end` < '2025-03-30 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-03-30 04:12:18] Production.INFO: count ==650 [2025-03-30 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:12:05 - End Time 2025-03-30 04:12:05 [2025-03-30 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793649', 'tblTempUsageDetail_20' ) start [2025-03-30 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793649', 'tblTempUsageDetail_20' ) end [2025-03-30 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793649', 'tblTempVendorCDR_20' ) start [2025-03-30 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793649', 'tblTempVendorCDR_20' ) end [2025-03-30 04:12:18] Production.INFO: ProcessCDR(1,14793649,1,1,2) [2025-03-30 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793649', 'tblTempUsageDetail_20' ) start [2025-03-30 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793649', 'tblTempUsageDetail_20' ) end [2025-03-30 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:12:22] Production.INFO: ==18012== Releasing lock... [2025-03-30 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:12:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:13:05 [end_date_ymd] => 2025-03-30 04:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:13:05' and `end` < '2025-03-30 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-03-30 04:13:18] Production.INFO: count ==651 [2025-03-30 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:13:05 - End Time 2025-03-30 04:13:05 [2025-03-30 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793654', 'tblTempUsageDetail_20' ) start [2025-03-30 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793654', 'tblTempUsageDetail_20' ) end [2025-03-30 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793654', 'tblTempVendorCDR_20' ) start [2025-03-30 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793654', 'tblTempVendorCDR_20' ) end [2025-03-30 04:13:18] Production.INFO: ProcessCDR(1,14793654,1,1,2) [2025-03-30 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793654', 'tblTempUsageDetail_20' ) start [2025-03-30 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793654', 'tblTempUsageDetail_20' ) end [2025-03-30 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:13:22] Production.INFO: ==18102== Releasing lock... [2025-03-30 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:14:05 [end_date_ymd] => 2025-03-30 04:14:05 [RateCDR] => 1 ) [2025-03-30 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:14:05' and `end` < '2025-03-30 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:14:18] Production.INFO: count ==654 [2025-03-30 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:14:05 - End Time 2025-03-30 04:14:05 [2025-03-30 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793659', 'tblTempUsageDetail_20' ) start [2025-03-30 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793659', 'tblTempUsageDetail_20' ) end [2025-03-30 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793659', 'tblTempVendorCDR_20' ) start [2025-03-30 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793659', 'tblTempVendorCDR_20' ) end [2025-03-30 04:14:18] Production.INFO: ProcessCDR(1,14793659,1,1,2) [2025-03-30 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793659', 'tblTempUsageDetail_20' ) start [2025-03-30 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793659', 'tblTempUsageDetail_20' ) end [2025-03-30 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:14:22] Production.INFO: ==18184== Releasing lock... [2025-03-30 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:15:05 [end_date_ymd] => 2025-03-30 04:15:05 [RateCDR] => 1 ) [2025-03-30 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:15:05' and `end` < '2025-03-30 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:15:17] Production.INFO: count ==645 [2025-03-30 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:15:05 - End Time 2025-03-30 04:15:05 [2025-03-30 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793664', 'tblTempUsageDetail_20' ) start [2025-03-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793664', 'tblTempUsageDetail_20' ) end [2025-03-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793664', 'tblTempVendorCDR_20' ) start [2025-03-30 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793664', 'tblTempVendorCDR_20' ) end [2025-03-30 04:15:18] Production.INFO: ProcessCDR(1,14793664,1,1,2) [2025-03-30 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793664', 'tblTempUsageDetail_20' ) start [2025-03-30 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793664', 'tblTempUsageDetail_20' ) end [2025-03-30 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:15:21] Production.INFO: ==18278== Releasing lock... [2025-03-30 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:16:06 [end_date_ymd] => 2025-03-30 04:16:06 [RateCDR] => 1 ) [2025-03-30 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:16:06' and `end` < '2025-03-30 04: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-03-30 04:16:18] Production.INFO: count ==644 [2025-03-30 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:16:06 - End Time 2025-03-30 04:16:06 [2025-03-30 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793669', 'tblTempUsageDetail_20' ) start [2025-03-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793669', 'tblTempUsageDetail_20' ) end [2025-03-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793669', 'tblTempVendorCDR_20' ) start [2025-03-30 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793669', 'tblTempVendorCDR_20' ) end [2025-03-30 04:16:18] Production.INFO: ProcessCDR(1,14793669,1,1,2) [2025-03-30 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793669', 'tblTempUsageDetail_20' ) start [2025-03-30 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793669', 'tblTempUsageDetail_20' ) end [2025-03-30 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:16:22] Production.INFO: ==18405== Releasing lock... [2025-03-30 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:17:05 [end_date_ymd] => 2025-03-30 04:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:17:05' and `end` < '2025-03-30 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-03-30 04:17:17] Production.INFO: count ==643 [2025-03-30 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:17:05 - End Time 2025-03-30 04:17:05 [2025-03-30 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793674', 'tblTempUsageDetail_20' ) start [2025-03-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793674', 'tblTempUsageDetail_20' ) end [2025-03-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793674', 'tblTempVendorCDR_20' ) start [2025-03-30 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793674', 'tblTempVendorCDR_20' ) end [2025-03-30 04:17:18] Production.INFO: ProcessCDR(1,14793674,1,1,2) [2025-03-30 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793674', 'tblTempUsageDetail_20' ) start [2025-03-30 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793674', 'tblTempUsageDetail_20' ) end [2025-03-30 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:17:21] Production.INFO: ==18491== Releasing lock... [2025-03-30 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:17:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:18:06 [end_date_ymd] => 2025-03-30 04:18:06 [RateCDR] => 1 ) [2025-03-30 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:18:06' and `end` < '2025-03-30 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:18:18] Production.INFO: count ==667 [2025-03-30 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:18:06 - End Time 2025-03-30 04:18:06 [2025-03-30 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793679', 'tblTempUsageDetail_20' ) start [2025-03-30 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793679', 'tblTempUsageDetail_20' ) end [2025-03-30 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793679', 'tblTempVendorCDR_20' ) start [2025-03-30 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793679', 'tblTempVendorCDR_20' ) end [2025-03-30 04:18:19] Production.INFO: ProcessCDR(1,14793679,1,1,2) [2025-03-30 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793679', 'tblTempUsageDetail_20' ) start [2025-03-30 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793679', 'tblTempUsageDetail_20' ) end [2025-03-30 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:18:22] Production.INFO: ==18576== Releasing lock... [2025-03-30 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:18:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:19:05 [end_date_ymd] => 2025-03-30 04:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:19:05' and `end` < '2025-03-30 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-03-30 04:19:18] Production.INFO: count ==667 [2025-03-30 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:19:05 - End Time 2025-03-30 04:19:05 [2025-03-30 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793684', 'tblTempUsageDetail_20' ) start [2025-03-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793684', 'tblTempUsageDetail_20' ) end [2025-03-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793684', 'tblTempVendorCDR_20' ) start [2025-03-30 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793684', 'tblTempVendorCDR_20' ) end [2025-03-30 04:19:18] Production.INFO: ProcessCDR(1,14793684,1,1,2) [2025-03-30 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793684', 'tblTempUsageDetail_20' ) start [2025-03-30 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793684', 'tblTempUsageDetail_20' ) end [2025-03-30 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:19:22] Production.INFO: ==18666== Releasing lock... [2025-03-30 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:20:06 [end_date_ymd] => 2025-03-30 04:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:20:06' and `end` < '2025-03-30 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-03-30 04:20:18] Production.INFO: count ==668 [2025-03-30 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:20:06 - End Time 2025-03-30 04:20:06 [2025-03-30 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793689', 'tblTempUsageDetail_20' ) start [2025-03-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793689', 'tblTempUsageDetail_20' ) end [2025-03-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793689', 'tblTempVendorCDR_20' ) start [2025-03-30 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793689', 'tblTempVendorCDR_20' ) end [2025-03-30 04:20:19] Production.INFO: ProcessCDR(1,14793689,1,1,2) [2025-03-30 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793689', 'tblTempUsageDetail_20' ) start [2025-03-30 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793689', 'tblTempUsageDetail_20' ) end [2025-03-30 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:20:22] Production.INFO: ==18755== Releasing lock... [2025-03-30 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:21:05 [end_date_ymd] => 2025-03-30 04:21:05 [RateCDR] => 1 ) [2025-03-30 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:21:05' and `end` < '2025-03-30 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:21:17] Production.INFO: count ==654 [2025-03-30 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:21:05 - End Time 2025-03-30 04:21:05 [2025-03-30 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793695', 'tblTempUsageDetail_20' ) start [2025-03-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793695', 'tblTempUsageDetail_20' ) end [2025-03-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793695', 'tblTempVendorCDR_20' ) start [2025-03-30 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793695', 'tblTempVendorCDR_20' ) end [2025-03-30 04:21:18] Production.INFO: ProcessCDR(1,14793695,1,1,2) [2025-03-30 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793695', 'tblTempUsageDetail_20' ) start [2025-03-30 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793695', 'tblTempUsageDetail_20' ) end [2025-03-30 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:21:21] Production.INFO: ==18846== Releasing lock... [2025-03-30 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:22:05 [end_date_ymd] => 2025-03-30 04:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:22:05' and `end` < '2025-03-30 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-03-30 04:22:18] Production.INFO: count ==651 [2025-03-30 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:22:05 - End Time 2025-03-30 04:22:05 [2025-03-30 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793700', 'tblTempUsageDetail_20' ) start [2025-03-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793700', 'tblTempUsageDetail_20' ) end [2025-03-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793700', 'tblTempVendorCDR_20' ) start [2025-03-30 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793700', 'tblTempVendorCDR_20' ) end [2025-03-30 04:22:18] Production.INFO: ProcessCDR(1,14793700,1,1,2) [2025-03-30 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793700', 'tblTempUsageDetail_20' ) start [2025-03-30 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793700', 'tblTempUsageDetail_20' ) end [2025-03-30 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:22:21] Production.INFO: ==18935== Releasing lock... [2025-03-30 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:23:05 [end_date_ymd] => 2025-03-30 04:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:23:05' and `end` < '2025-03-30 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-03-30 04:23:18] Production.INFO: count ==647 [2025-03-30 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:23:05 - End Time 2025-03-30 04:23:05 [2025-03-30 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793705', 'tblTempUsageDetail_20' ) start [2025-03-30 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793705', 'tblTempUsageDetail_20' ) end [2025-03-30 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793705', 'tblTempVendorCDR_20' ) start [2025-03-30 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793705', 'tblTempVendorCDR_20' ) end [2025-03-30 04:23:18] Production.INFO: ProcessCDR(1,14793705,1,1,2) [2025-03-30 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793705', 'tblTempUsageDetail_20' ) start [2025-03-30 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793705', 'tblTempUsageDetail_20' ) end [2025-03-30 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:23:21] Production.INFO: ==19021== Releasing lock... [2025-03-30 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:23:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:24:06 [end_date_ymd] => 2025-03-30 04:24:06 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:24:06' and `end` < '2025-03-30 04: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-03-30 04:24:18] Production.INFO: count ==653 [2025-03-30 04:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:24:06 - End Time 2025-03-30 04:24:06 [2025-03-30 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793710', 'tblTempUsageDetail_20' ) start [2025-03-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793710', 'tblTempUsageDetail_20' ) end [2025-03-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793710', 'tblTempVendorCDR_20' ) start [2025-03-30 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793710', 'tblTempVendorCDR_20' ) end [2025-03-30 04:24:19] Production.INFO: ProcessCDR(1,14793710,1,1,2) [2025-03-30 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793710', 'tblTempUsageDetail_20' ) start [2025-03-30 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793710', 'tblTempUsageDetail_20' ) end [2025-03-30 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:24:22] Production.INFO: ==19114== Releasing lock... [2025-03-30 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:25:05 [end_date_ymd] => 2025-03-30 04:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:25:05' and `end` < '2025-03-30 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-03-30 04:25:17] Production.INFO: count ==654 [2025-03-30 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:25:05 - End Time 2025-03-30 04:25:05 [2025-03-30 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793715', 'tblTempUsageDetail_20' ) start [2025-03-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793715', 'tblTempUsageDetail_20' ) end [2025-03-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793715', 'tblTempVendorCDR_20' ) start [2025-03-30 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793715', 'tblTempVendorCDR_20' ) end [2025-03-30 04:25:18] Production.INFO: ProcessCDR(1,14793715,1,1,2) [2025-03-30 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793715', 'tblTempUsageDetail_20' ) start [2025-03-30 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793715', 'tblTempUsageDetail_20' ) end [2025-03-30 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:25:21] Production.INFO: ==19203== Releasing lock... [2025-03-30 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:25:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:26:05 [end_date_ymd] => 2025-03-30 04:26:05 [RateCDR] => 1 ) [2025-03-30 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:26:05' and `end` < '2025-03-30 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:26:18] Production.INFO: count ==653 [2025-03-30 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:26:05 - End Time 2025-03-30 04:26:05 [2025-03-30 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793720', 'tblTempUsageDetail_20' ) start [2025-03-30 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793720', 'tblTempUsageDetail_20' ) end [2025-03-30 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793720', 'tblTempVendorCDR_20' ) start [2025-03-30 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793720', 'tblTempVendorCDR_20' ) end [2025-03-30 04:26:18] Production.INFO: ProcessCDR(1,14793720,1,1,2) [2025-03-30 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793720', 'tblTempUsageDetail_20' ) start [2025-03-30 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793720', 'tblTempUsageDetail_20' ) end [2025-03-30 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:26:21] Production.INFO: ==19292== Releasing lock... [2025-03-30 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:27:05 [end_date_ymd] => 2025-03-30 04:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:27:05' and `end` < '2025-03-30 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-03-30 04:27:17] Production.INFO: count ==651 [2025-03-30 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:27:05 - End Time 2025-03-30 04:27:05 [2025-03-30 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793725', 'tblTempUsageDetail_20' ) start [2025-03-30 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793725', 'tblTempUsageDetail_20' ) end [2025-03-30 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793725', 'tblTempVendorCDR_20' ) start [2025-03-30 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793725', 'tblTempVendorCDR_20' ) end [2025-03-30 04:27:18] Production.INFO: ProcessCDR(1,14793725,1,1,2) [2025-03-30 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793725', 'tblTempUsageDetail_20' ) start [2025-03-30 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793725', 'tblTempUsageDetail_20' ) end [2025-03-30 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:27:21] Production.INFO: ==19388== Releasing lock... [2025-03-30 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:27:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:28:05 [end_date_ymd] => 2025-03-30 04:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:28:05' and `end` < '2025-03-30 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-03-30 04:28:18] Production.INFO: count ==676 [2025-03-30 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:28:05 - End Time 2025-03-30 04:28:05 [2025-03-30 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793730', 'tblTempUsageDetail_20' ) start [2025-03-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793730', 'tblTempUsageDetail_20' ) end [2025-03-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793730', 'tblTempVendorCDR_20' ) start [2025-03-30 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793730', 'tblTempVendorCDR_20' ) end [2025-03-30 04:28:18] Production.INFO: ProcessCDR(1,14793730,1,1,2) [2025-03-30 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793730', 'tblTempUsageDetail_20' ) start [2025-03-30 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793730', 'tblTempUsageDetail_20' ) end [2025-03-30 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:28:22] Production.INFO: ==19474== Releasing lock... [2025-03-30 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:29:06 [end_date_ymd] => 2025-03-30 04:29:06 [RateCDR] => 1 ) [2025-03-30 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:29:06' and `end` < '2025-03-30 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:29:18] Production.INFO: count ==676 [2025-03-30 04:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:29:06 - End Time 2025-03-30 04:29:06 [2025-03-30 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793735', 'tblTempUsageDetail_20' ) start [2025-03-30 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793735', 'tblTempUsageDetail_20' ) end [2025-03-30 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793735', 'tblTempVendorCDR_20' ) start [2025-03-30 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793735', 'tblTempVendorCDR_20' ) end [2025-03-30 04:29:19] Production.INFO: ProcessCDR(1,14793735,1,1,2) [2025-03-30 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793735', 'tblTempUsageDetail_20' ) start [2025-03-30 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793735', 'tblTempUsageDetail_20' ) end [2025-03-30 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:29:22] Production.INFO: ==19561== Releasing lock... [2025-03-30 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:30:07 [end_date_ymd] => 2025-03-30 04:30:07 [RateCDR] => 1 ) [2025-03-30 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:30:07' and `end` < '2025-03-30 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:30:19] Production.INFO: count ==674 [2025-03-30 04:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 01:30:07 - End Time 2025-03-30 04:30:07 [2025-03-30 04:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793742', 'tblTempUsageDetail_20' ) start [2025-03-30 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793742', 'tblTempUsageDetail_20' ) end [2025-03-30 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793742', 'tblTempVendorCDR_20' ) start [2025-03-30 04:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793742', 'tblTempVendorCDR_20' ) end [2025-03-30 04:30:20] Production.INFO: ProcessCDR(1,14793742,1,1,2) [2025-03-30 04:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793742', 'tblTempUsageDetail_20' ) start [2025-03-30 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793742', 'tblTempUsageDetail_20' ) end [2025-03-30 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:30:23] Production.INFO: ==19657== Releasing lock... [2025-03-30 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:31:05 [end_date_ymd] => 2025-03-30 04:31:05 [RateCDR] => 1 ) [2025-03-30 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:31:05' and `end` < '2025-03-30 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:31:18] Production.INFO: count ==682 [2025-03-30 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:31:05 - End Time 2025-03-30 04:31:05 [2025-03-30 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793747', 'tblTempUsageDetail_20' ) start [2025-03-30 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793747', 'tblTempUsageDetail_20' ) end [2025-03-30 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793747', 'tblTempVendorCDR_20' ) start [2025-03-30 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793747', 'tblTempVendorCDR_20' ) end [2025-03-30 04:31:18] Production.INFO: ProcessCDR(1,14793747,1,1,2) [2025-03-30 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793747', 'tblTempUsageDetail_20' ) start [2025-03-30 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793747', 'tblTempUsageDetail_20' ) end [2025-03-30 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:31:22] Production.INFO: ==19780== Releasing lock... [2025-03-30 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:31:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:32:05 [end_date_ymd] => 2025-03-30 04:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:32:05' and `end` < '2025-03-30 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-03-30 04:32:17] Production.INFO: count ==682 [2025-03-30 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-30 01:32:05 - End Time 2025-03-30 04:32:05 [2025-03-30 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793752', 'tblTempUsageDetail_20' ) start [2025-03-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793752', 'tblTempUsageDetail_20' ) end [2025-03-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793752', 'tblTempVendorCDR_20' ) start [2025-03-30 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793752', 'tblTempVendorCDR_20' ) end [2025-03-30 04:32:18] Production.INFO: ProcessCDR(1,14793752,1,1,2) [2025-03-30 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793752', 'tblTempUsageDetail_20' ) start [2025-03-30 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793752', 'tblTempUsageDetail_20' ) end [2025-03-30 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:32:21] Production.INFO: ==19902== Releasing lock... [2025-03-30 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:32:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:33:05 [end_date_ymd] => 2025-03-30 04:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:33:05' and `end` < '2025-03-30 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-03-30 04:33:18] Production.INFO: count ==682 [2025-03-30 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:33:05 - End Time 2025-03-30 04:33:05 [2025-03-30 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793757', 'tblTempUsageDetail_20' ) start [2025-03-30 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793757', 'tblTempUsageDetail_20' ) end [2025-03-30 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793757', 'tblTempVendorCDR_20' ) start [2025-03-30 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793757', 'tblTempVendorCDR_20' ) end [2025-03-30 04:33:18] Production.INFO: ProcessCDR(1,14793757,1,1,2) [2025-03-30 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793757', 'tblTempUsageDetail_20' ) start [2025-03-30 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793757', 'tblTempUsageDetail_20' ) end [2025-03-30 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:33:22] Production.INFO: ==19993== Releasing lock... [2025-03-30 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:34:05 [end_date_ymd] => 2025-03-30 04:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:34:05' and `end` < '2025-03-30 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-03-30 04:34:17] Production.INFO: count ==682 [2025-03-30 04:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:34:05 - End Time 2025-03-30 04:34:05 [2025-03-30 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793762', 'tblTempUsageDetail_20' ) start [2025-03-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793762', 'tblTempUsageDetail_20' ) end [2025-03-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793762', 'tblTempVendorCDR_20' ) start [2025-03-30 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793762', 'tblTempVendorCDR_20' ) end [2025-03-30 04:34:18] Production.INFO: ProcessCDR(1,14793762,1,1,2) [2025-03-30 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793762', 'tblTempUsageDetail_20' ) start [2025-03-30 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793762', 'tblTempUsageDetail_20' ) end [2025-03-30 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:34:21] Production.INFO: ==20079== Releasing lock... [2025-03-30 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:35:06 [end_date_ymd] => 2025-03-30 04:35:06 [RateCDR] => 1 ) [2025-03-30 04:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:35:06' and `end` < '2025-03-30 04:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:35:18] Production.INFO: count ==677 [2025-03-30 04:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:35:06 - End Time 2025-03-30 04:35:06 [2025-03-30 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793767', 'tblTempUsageDetail_20' ) start [2025-03-30 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793767', 'tblTempUsageDetail_20' ) end [2025-03-30 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793767', 'tblTempVendorCDR_20' ) start [2025-03-30 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793767', 'tblTempVendorCDR_20' ) end [2025-03-30 04:35:19] Production.INFO: ProcessCDR(1,14793767,1,1,2) [2025-03-30 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793767', 'tblTempUsageDetail_20' ) start [2025-03-30 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793767', 'tblTempUsageDetail_20' ) end [2025-03-30 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:35:22] Production.INFO: ==20169== Releasing lock... [2025-03-30 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:36:05 [end_date_ymd] => 2025-03-30 04:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:36:05' and `end` < '2025-03-30 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-03-30 04:36:17] Production.INFO: count ==677 [2025-03-30 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-30 01:36:05 - End Time 2025-03-30 04:36:05 [2025-03-30 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793772', 'tblTempUsageDetail_20' ) start [2025-03-30 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793772', 'tblTempUsageDetail_20' ) end [2025-03-30 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793772', 'tblTempVendorCDR_20' ) start [2025-03-30 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793772', 'tblTempVendorCDR_20' ) end [2025-03-30 04:36:17] Production.INFO: ProcessCDR(1,14793772,1,1,2) [2025-03-30 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793772', 'tblTempUsageDetail_20' ) start [2025-03-30 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793772', 'tblTempUsageDetail_20' ) end [2025-03-30 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:36:21] Production.INFO: ==20254== Releasing lock... [2025-03-30 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:37:05 [end_date_ymd] => 2025-03-30 04:37:05 [RateCDR] => 1 ) [2025-03-30 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:37:05' and `end` < '2025-03-30 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:37:17] Production.INFO: count ==677 [2025-03-30 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:37:05 - End Time 2025-03-30 04:37:05 [2025-03-30 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793777', 'tblTempUsageDetail_20' ) start [2025-03-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793777', 'tblTempUsageDetail_20' ) end [2025-03-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793777', 'tblTempVendorCDR_20' ) start [2025-03-30 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793777', 'tblTempVendorCDR_20' ) end [2025-03-30 04:37:18] Production.INFO: ProcessCDR(1,14793777,1,1,2) [2025-03-30 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793777', 'tblTempUsageDetail_20' ) start [2025-03-30 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793777', 'tblTempUsageDetail_20' ) end [2025-03-30 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:37:21] Production.INFO: ==20342== Releasing lock... [2025-03-30 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:38:05 [end_date_ymd] => 2025-03-30 04:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:38:05' and `end` < '2025-03-30 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-03-30 04:38:18] Production.INFO: count ==674 [2025-03-30 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:38:05 - End Time 2025-03-30 04:38:05 [2025-03-30 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793782', 'tblTempUsageDetail_20' ) start [2025-03-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793782', 'tblTempUsageDetail_20' ) end [2025-03-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793782', 'tblTempVendorCDR_20' ) start [2025-03-30 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793782', 'tblTempVendorCDR_20' ) end [2025-03-30 04:38:18] Production.INFO: ProcessCDR(1,14793782,1,1,2) [2025-03-30 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793782', 'tblTempUsageDetail_20' ) start [2025-03-30 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793782', 'tblTempUsageDetail_20' ) end [2025-03-30 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:38:21] Production.INFO: ==20430== Releasing lock... [2025-03-30 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:39:06 [end_date_ymd] => 2025-03-30 04:39:06 [RateCDR] => 1 ) [2025-03-30 04:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:39:06' and `end` < '2025-03-30 04:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:39:18] Production.INFO: count ==661 [2025-03-30 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:39:06 - End Time 2025-03-30 04:39:06 [2025-03-30 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793787', 'tblTempUsageDetail_20' ) start [2025-03-30 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793787', 'tblTempUsageDetail_20' ) end [2025-03-30 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793787', 'tblTempVendorCDR_20' ) start [2025-03-30 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793787', 'tblTempVendorCDR_20' ) end [2025-03-30 04:39:18] Production.INFO: ProcessCDR(1,14793787,1,1,2) [2025-03-30 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793787', 'tblTempUsageDetail_20' ) start [2025-03-30 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793787', 'tblTempUsageDetail_20' ) end [2025-03-30 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:39:22] Production.INFO: ==20516== Releasing lock... [2025-03-30 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:40:06 [end_date_ymd] => 2025-03-30 04:40:06 [RateCDR] => 1 ) [2025-03-30 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:40:06' and `end` < '2025-03-30 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:40:19] Production.INFO: count ==651 [2025-03-30 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:40:06 - End Time 2025-03-30 04:40:06 [2025-03-30 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793792', 'tblTempUsageDetail_20' ) start [2025-03-30 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793792', 'tblTempUsageDetail_20' ) end [2025-03-30 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793792', 'tblTempVendorCDR_20' ) start [2025-03-30 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793792', 'tblTempVendorCDR_20' ) end [2025-03-30 04:40:19] Production.INFO: ProcessCDR(1,14793792,1,1,2) [2025-03-30 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793792', 'tblTempUsageDetail_20' ) start [2025-03-30 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793792', 'tblTempUsageDetail_20' ) end [2025-03-30 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:40:22] Production.INFO: ==20605== Releasing lock... [2025-03-30 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:40:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:41:05 [end_date_ymd] => 2025-03-30 04:41:05 [RateCDR] => 1 ) [2025-03-30 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:41:05' and `end` < '2025-03-30 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:41:17] Production.INFO: count ==643 [2025-03-30 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-30 01:41:05 - End Time 2025-03-30 04:41:05 [2025-03-30 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793798', 'tblTempUsageDetail_20' ) start [2025-03-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793798', 'tblTempUsageDetail_20' ) end [2025-03-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793798', 'tblTempVendorCDR_20' ) start [2025-03-30 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793798', 'tblTempVendorCDR_20' ) end [2025-03-30 04:41:17] Production.INFO: ProcessCDR(1,14793798,1,1,2) [2025-03-30 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793798', 'tblTempUsageDetail_20' ) start [2025-03-30 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793798', 'tblTempUsageDetail_20' ) end [2025-03-30 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:41:21] Production.INFO: ==20697== Releasing lock... [2025-03-30 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:42:06 [end_date_ymd] => 2025-03-30 04:42:06 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:42:06' and `end` < '2025-03-30 04: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-03-30 04:42:18] Production.INFO: count ==643 [2025-03-30 04:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:42:06 - End Time 2025-03-30 04:42:06 [2025-03-30 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793803', 'tblTempUsageDetail_20' ) start [2025-03-30 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793803', 'tblTempUsageDetail_20' ) end [2025-03-30 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793803', 'tblTempVendorCDR_20' ) start [2025-03-30 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793803', 'tblTempVendorCDR_20' ) end [2025-03-30 04:42:19] Production.INFO: ProcessCDR(1,14793803,1,1,2) [2025-03-30 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793803', 'tblTempUsageDetail_20' ) start [2025-03-30 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793803', 'tblTempUsageDetail_20' ) end [2025-03-30 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:42:22] Production.INFO: ==20787== Releasing lock... [2025-03-30 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:43:05 [end_date_ymd] => 2025-03-30 04:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:43:05' and `end` < '2025-03-30 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-03-30 04:43:18] Production.INFO: count ==643 [2025-03-30 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:43:05 - End Time 2025-03-30 04:43:05 [2025-03-30 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793808', 'tblTempUsageDetail_20' ) start [2025-03-30 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793808', 'tblTempUsageDetail_20' ) end [2025-03-30 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793808', 'tblTempVendorCDR_20' ) start [2025-03-30 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793808', 'tblTempVendorCDR_20' ) end [2025-03-30 04:43:18] Production.INFO: ProcessCDR(1,14793808,1,1,2) [2025-03-30 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793808', 'tblTempUsageDetail_20' ) start [2025-03-30 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793808', 'tblTempUsageDetail_20' ) end [2025-03-30 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:43:21] Production.INFO: ==20881== Releasing lock... [2025-03-30 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:43:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:44:05 [end_date_ymd] => 2025-03-30 04:44:05 [RateCDR] => 1 ) [2025-03-30 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:44:05' and `end` < '2025-03-30 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:44:18] Production.INFO: count ==625 [2025-03-30 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:44:05 - End Time 2025-03-30 04:44:05 [2025-03-30 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793813', 'tblTempUsageDetail_20' ) start [2025-03-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793813', 'tblTempUsageDetail_20' ) end [2025-03-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793813', 'tblTempVendorCDR_20' ) start [2025-03-30 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793813', 'tblTempVendorCDR_20' ) end [2025-03-30 04:44:18] Production.INFO: ProcessCDR(1,14793813,1,1,2) [2025-03-30 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793813', 'tblTempUsageDetail_20' ) start [2025-03-30 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793813', 'tblTempUsageDetail_20' ) end [2025-03-30 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:44:22] Production.INFO: ==20972== Releasing lock... [2025-03-30 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:45:05 [end_date_ymd] => 2025-03-30 04:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:45:05' and `end` < '2025-03-30 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-03-30 04:45:17] Production.INFO: count ==648 [2025-03-30 04:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:45:05 - End Time 2025-03-30 04:45:05 [2025-03-30 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793818', 'tblTempUsageDetail_20' ) start [2025-03-30 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793818', 'tblTempUsageDetail_20' ) end [2025-03-30 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793818', 'tblTempVendorCDR_20' ) start [2025-03-30 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793818', 'tblTempVendorCDR_20' ) end [2025-03-30 04:45:18] Production.INFO: ProcessCDR(1,14793818,1,1,2) [2025-03-30 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793818', 'tblTempUsageDetail_20' ) start [2025-03-30 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793818', 'tblTempUsageDetail_20' ) end [2025-03-30 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:45:21] Production.INFO: ==21058== Releasing lock... [2025-03-30 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:46:05 [end_date_ymd] => 2025-03-30 04:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:46:05' and `end` < '2025-03-30 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-03-30 04:46:18] Production.INFO: count ==654 [2025-03-30 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:46:05 - End Time 2025-03-30 04:46:05 [2025-03-30 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793823', 'tblTempUsageDetail_20' ) start [2025-03-30 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793823', 'tblTempUsageDetail_20' ) end [2025-03-30 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793823', 'tblTempVendorCDR_20' ) start [2025-03-30 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793823', 'tblTempVendorCDR_20' ) end [2025-03-30 04:46:18] Production.INFO: ProcessCDR(1,14793823,1,1,2) [2025-03-30 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793823', 'tblTempUsageDetail_20' ) start [2025-03-30 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793823', 'tblTempUsageDetail_20' ) end [2025-03-30 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:46:22] Production.INFO: ==21150== Releasing lock... [2025-03-30 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:47:05 [end_date_ymd] => 2025-03-30 04:47:05 [RateCDR] => 1 ) [2025-03-30 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:47:05' and `end` < '2025-03-30 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:47:20] Production.INFO: count ==679 [2025-03-30 04:47:20] Production.ERROR: pbx CDR StartTime 2025-03-30 01:47:05 - End Time 2025-03-30 04:47:05 [2025-03-30 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793828', 'tblTempUsageDetail_20' ) start [2025-03-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793828', 'tblTempUsageDetail_20' ) end [2025-03-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793828', 'tblTempVendorCDR_20' ) start [2025-03-30 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793828', 'tblTempVendorCDR_20' ) end [2025-03-30 04:47:20] Production.INFO: ProcessCDR(1,14793828,1,1,2) [2025-03-30 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793828', 'tblTempUsageDetail_20' ) start [2025-03-30 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793828', 'tblTempUsageDetail_20' ) end [2025-03-30 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:47:23] Production.INFO: ==21275== Releasing lock... [2025-03-30 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:48:05 [end_date_ymd] => 2025-03-30 04:48:05 [RateCDR] => 1 ) [2025-03-30 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:48:05' and `end` < '2025-03-30 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:48:18] Production.INFO: count ==678 [2025-03-30 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:48:05 - End Time 2025-03-30 04:48:05 [2025-03-30 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793833', 'tblTempUsageDetail_20' ) start [2025-03-30 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793833', 'tblTempUsageDetail_20' ) end [2025-03-30 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793833', 'tblTempVendorCDR_20' ) start [2025-03-30 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793833', 'tblTempVendorCDR_20' ) end [2025-03-30 04:48:18] Production.INFO: ProcessCDR(1,14793833,1,1,2) [2025-03-30 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793833', 'tblTempUsageDetail_20' ) start [2025-03-30 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793833', 'tblTempUsageDetail_20' ) end [2025-03-30 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:48:21] Production.INFO: ==21363== Releasing lock... [2025-03-30 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:48:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:49:05 [end_date_ymd] => 2025-03-30 04:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:49:05' and `end` < '2025-03-30 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-03-30 04:49:17] Production.INFO: count ==687 [2025-03-30 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:49:05 - End Time 2025-03-30 04:49:05 [2025-03-30 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793838', 'tblTempUsageDetail_20' ) start [2025-03-30 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793838', 'tblTempUsageDetail_20' ) end [2025-03-30 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793838', 'tblTempVendorCDR_20' ) start [2025-03-30 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793838', 'tblTempVendorCDR_20' ) end [2025-03-30 04:49:18] Production.INFO: ProcessCDR(1,14793838,1,1,2) [2025-03-30 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793838', 'tblTempUsageDetail_20' ) start [2025-03-30 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793838', 'tblTempUsageDetail_20' ) end [2025-03-30 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:49:21] Production.INFO: ==21453== Releasing lock... [2025-03-30 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:50:06 [end_date_ymd] => 2025-03-30 04:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:50:06' and `end` < '2025-03-30 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-03-30 04:50:19] Production.INFO: count ==677 [2025-03-30 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:50:06 - End Time 2025-03-30 04:50:06 [2025-03-30 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793844', 'tblTempUsageDetail_20' ) start [2025-03-30 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793844', 'tblTempUsageDetail_20' ) end [2025-03-30 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793844', 'tblTempVendorCDR_20' ) start [2025-03-30 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793844', 'tblTempVendorCDR_20' ) end [2025-03-30 04:50:19] Production.INFO: ProcessCDR(1,14793844,1,1,2) [2025-03-30 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793844', 'tblTempUsageDetail_20' ) start [2025-03-30 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793844', 'tblTempUsageDetail_20' ) end [2025-03-30 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:50:22] Production.INFO: ==21548== Releasing lock... [2025-03-30 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:50:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:51:04 [end_date_ymd] => 2025-03-30 04:51:04 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:51:04' and `end` < '2025-03-30 04: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-03-30 04:51:17] Production.INFO: count ==670 [2025-03-30 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:51:04 - End Time 2025-03-30 04:51:04 [2025-03-30 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793849', 'tblTempUsageDetail_20' ) start [2025-03-30 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793849', 'tblTempUsageDetail_20' ) end [2025-03-30 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793849', 'tblTempVendorCDR_20' ) start [2025-03-30 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793849', 'tblTempVendorCDR_20' ) end [2025-03-30 04:51:18] Production.INFO: ProcessCDR(1,14793849,1,1,2) [2025-03-30 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793849', 'tblTempUsageDetail_20' ) start [2025-03-30 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793849', 'tblTempUsageDetail_20' ) end [2025-03-30 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:51:21] Production.INFO: ==21634== Releasing lock... [2025-03-30 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:52:05 [end_date_ymd] => 2025-03-30 04:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:52:05' and `end` < '2025-03-30 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-03-30 04:52:18] Production.INFO: count ==655 [2025-03-30 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:52:05 - End Time 2025-03-30 04:52:05 [2025-03-30 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793854', 'tblTempUsageDetail_20' ) start [2025-03-30 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793854', 'tblTempUsageDetail_20' ) end [2025-03-30 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793854', 'tblTempVendorCDR_20' ) start [2025-03-30 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793854', 'tblTempVendorCDR_20' ) end [2025-03-30 04:52:18] Production.INFO: ProcessCDR(1,14793854,1,1,2) [2025-03-30 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793854', 'tblTempUsageDetail_20' ) start [2025-03-30 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793854', 'tblTempUsageDetail_20' ) end [2025-03-30 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:52:21] Production.INFO: ==21725== Releasing lock... [2025-03-30 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:52:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:53:05 [end_date_ymd] => 2025-03-30 04:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:53:05' and `end` < '2025-03-30 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-03-30 04:53:18] Production.INFO: count ==653 [2025-03-30 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:53:05 - End Time 2025-03-30 04:53:05 [2025-03-30 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793859', 'tblTempUsageDetail_20' ) start [2025-03-30 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793859', 'tblTempUsageDetail_20' ) end [2025-03-30 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793859', 'tblTempVendorCDR_20' ) start [2025-03-30 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793859', 'tblTempVendorCDR_20' ) end [2025-03-30 04:53:18] Production.INFO: ProcessCDR(1,14793859,1,1,2) [2025-03-30 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793859', 'tblTempUsageDetail_20' ) start [2025-03-30 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793859', 'tblTempUsageDetail_20' ) end [2025-03-30 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:53:22] Production.INFO: ==21831== Releasing lock... [2025-03-30 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:54:05 [end_date_ymd] => 2025-03-30 04:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:54:05' and `end` < '2025-03-30 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-03-30 04:54:18] Production.INFO: count ==653 [2025-03-30 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:54:05 - End Time 2025-03-30 04:54:05 [2025-03-30 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793864', 'tblTempUsageDetail_20' ) start [2025-03-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793864', 'tblTempUsageDetail_20' ) end [2025-03-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793864', 'tblTempVendorCDR_20' ) start [2025-03-30 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793864', 'tblTempVendorCDR_20' ) end [2025-03-30 04:54:19] Production.INFO: ProcessCDR(1,14793864,1,1,2) [2025-03-30 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793864', 'tblTempUsageDetail_20' ) start [2025-03-30 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793864', 'tblTempUsageDetail_20' ) end [2025-03-30 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:54:22] Production.INFO: ==21918== Releasing lock... [2025-03-30 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:55:05 [end_date_ymd] => 2025-03-30 04:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:55:05' and `end` < '2025-03-30 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-03-30 04:55:18] Production.INFO: count ==651 [2025-03-30 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:55:05 - End Time 2025-03-30 04:55:05 [2025-03-30 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793869', 'tblTempUsageDetail_20' ) start [2025-03-30 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793869', 'tblTempUsageDetail_20' ) end [2025-03-30 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793869', 'tblTempVendorCDR_20' ) start [2025-03-30 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793869', 'tblTempVendorCDR_20' ) end [2025-03-30 04:55:18] Production.INFO: ProcessCDR(1,14793869,1,1,2) [2025-03-30 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793869', 'tblTempUsageDetail_20' ) start [2025-03-30 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793869', 'tblTempUsageDetail_20' ) end [2025-03-30 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:55:22] Production.INFO: ==22006== Releasing lock... [2025-03-30 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:56:06 [end_date_ymd] => 2025-03-30 04:56:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 01:56:06' and `end` < '2025-03-30 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-03-30 04:56:20] Production.INFO: count ==651 [2025-03-30 04:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 01:56:06 - End Time 2025-03-30 04:56:06 [2025-03-30 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793874', 'tblTempUsageDetail_20' ) start [2025-03-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793874', 'tblTempUsageDetail_20' ) end [2025-03-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793874', 'tblTempVendorCDR_20' ) start [2025-03-30 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793874', 'tblTempVendorCDR_20' ) end [2025-03-30 04:56:20] Production.INFO: ProcessCDR(1,14793874,1,1,2) [2025-03-30 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793874', 'tblTempUsageDetail_20' ) start [2025-03-30 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793874', 'tblTempUsageDetail_20' ) end [2025-03-30 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:56:23] Production.INFO: ==22094== Releasing lock... [2025-03-30 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:57:04 [end_date_ymd] => 2025-03-30 04:57:04 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:57:04' and `end` < '2025-03-30 04: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-03-30 04:57:18] Production.INFO: count ==655 [2025-03-30 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 01:57:04 - End Time 2025-03-30 04:57:04 [2025-03-30 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793879', 'tblTempUsageDetail_20' ) start [2025-03-30 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793879', 'tblTempUsageDetail_20' ) end [2025-03-30 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793879', 'tblTempVendorCDR_20' ) start [2025-03-30 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793879', 'tblTempVendorCDR_20' ) end [2025-03-30 04:57:18] Production.INFO: ProcessCDR(1,14793879,1,1,2) [2025-03-30 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793879', 'tblTempUsageDetail_20' ) start [2025-03-30 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793879', 'tblTempUsageDetail_20' ) end [2025-03-30 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:57:22] Production.INFO: ==22173== Releasing lock... [2025-03-30 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:58:06 [end_date_ymd] => 2025-03-30 04:58:06 [RateCDR] => 1 ) [2025-03-30 04: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-03-30 01:58:06' and `end` < '2025-03-30 04: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-03-30 04:58:18] Production.INFO: count ==654 [2025-03-30 04:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:58:06 - End Time 2025-03-30 04:58:06 [2025-03-30 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793884', 'tblTempUsageDetail_20' ) start [2025-03-30 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793884', 'tblTempUsageDetail_20' ) end [2025-03-30 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793884', 'tblTempVendorCDR_20' ) start [2025-03-30 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793884', 'tblTempVendorCDR_20' ) end [2025-03-30 04:58:19] Production.INFO: ProcessCDR(1,14793884,1,1,2) [2025-03-30 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793884', 'tblTempUsageDetail_20' ) start [2025-03-30 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793884', 'tblTempUsageDetail_20' ) end [2025-03-30 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:58:22] Production.INFO: ==22250== Releasing lock... [2025-03-30 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 01:59:06 [end_date_ymd] => 2025-03-30 04:59:06 [RateCDR] => 1 ) [2025-03-30 04:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 01:59:06' and `end` < '2025-03-30 04:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 04:59:19] Production.INFO: count ==650 [2025-03-30 04:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 01:59:06 - End Time 2025-03-30 04:59:06 [2025-03-30 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793889', 'tblTempUsageDetail_20' ) start [2025-03-30 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793889', 'tblTempUsageDetail_20' ) end [2025-03-30 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793889', 'tblTempVendorCDR_20' ) start [2025-03-30 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793889', 'tblTempVendorCDR_20' ) end [2025-03-30 04:59:19] Production.INFO: ProcessCDR(1,14793889,1,1,2) [2025-03-30 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793889', 'tblTempUsageDetail_20' ) start [2025-03-30 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793889', 'tblTempUsageDetail_20' ) end [2025-03-30 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 04:59:22] Production.INFO: ==22334== Releasing lock... [2025-03-30 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 04:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:00:06 [end_date_ymd] => 2025-03-30 05:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:00:06' and `end` < '2025-03-30 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-03-30 05:00:21] Production.INFO: count ==645 [2025-03-30 05:00:21] Production.ERROR: pbx CDR StartTime 2025-03-30 02:00:06 - End Time 2025-03-30 05:00:06 [2025-03-30 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793895', 'tblTempUsageDetail_20' ) start [2025-03-30 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793895', 'tblTempUsageDetail_20' ) end [2025-03-30 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793895', 'tblTempVendorCDR_20' ) start [2025-03-30 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793895', 'tblTempVendorCDR_20' ) end [2025-03-30 05:00:21] Production.INFO: ProcessCDR(1,14793895,1,1,2) [2025-03-30 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793895', 'tblTempUsageDetail_20' ) start [2025-03-30 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793895', 'tblTempUsageDetail_20' ) end [2025-03-30 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:00:24] Production.INFO: ==22428== Releasing lock... [2025-03-30 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:01:05 [end_date_ymd] => 2025-03-30 05:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:01:05' and `end` < '2025-03-30 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-03-30 05:01:20] Production.INFO: count ==627 [2025-03-30 05:01:20] Production.ERROR: pbx CDR StartTime 2025-03-30 02:01:05 - End Time 2025-03-30 05:01:05 [2025-03-30 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793900', 'tblTempUsageDetail_20' ) start [2025-03-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793900', 'tblTempUsageDetail_20' ) end [2025-03-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793900', 'tblTempVendorCDR_20' ) start [2025-03-30 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793900', 'tblTempVendorCDR_20' ) end [2025-03-30 05:01:20] Production.INFO: ProcessCDR(1,14793900,1,1,2) [2025-03-30 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793900', 'tblTempUsageDetail_20' ) start [2025-03-30 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793900', 'tblTempUsageDetail_20' ) end [2025-03-30 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:01:23] Production.INFO: ==22516== Releasing lock... [2025-03-30 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:01:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:02:05 [end_date_ymd] => 2025-03-30 05:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:02:05' and `end` < '2025-03-30 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-03-30 05:02:18] Production.INFO: count ==627 [2025-03-30 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:02:05 - End Time 2025-03-30 05:02:05 [2025-03-30 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793905', 'tblTempUsageDetail_20' ) start [2025-03-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793905', 'tblTempUsageDetail_20' ) end [2025-03-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793905', 'tblTempVendorCDR_20' ) start [2025-03-30 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793905', 'tblTempVendorCDR_20' ) end [2025-03-30 05:02:18] Production.INFO: ProcessCDR(1,14793905,1,1,2) [2025-03-30 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793905', 'tblTempUsageDetail_20' ) start [2025-03-30 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793905', 'tblTempUsageDetail_20' ) end [2025-03-30 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:02:22] Production.INFO: ==22590== Releasing lock... [2025-03-30 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:02:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:03:06 [end_date_ymd] => 2025-03-30 05:03:06 [RateCDR] => 1 ) [2025-03-30 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:03:06' and `end` < '2025-03-30 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:03:19] Production.INFO: count ==627 [2025-03-30 05:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:03:06 - End Time 2025-03-30 05:03:06 [2025-03-30 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793910', 'tblTempUsageDetail_20' ) start [2025-03-30 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793910', 'tblTempUsageDetail_20' ) end [2025-03-30 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793910', 'tblTempVendorCDR_20' ) start [2025-03-30 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793910', 'tblTempVendorCDR_20' ) end [2025-03-30 05:03:19] Production.INFO: ProcessCDR(1,14793910,1,1,2) [2025-03-30 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793910', 'tblTempUsageDetail_20' ) start [2025-03-30 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793910', 'tblTempUsageDetail_20' ) end [2025-03-30 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:03:23] Production.INFO: ==22708== Releasing lock... [2025-03-30 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:03:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:04:05 [end_date_ymd] => 2025-03-30 05:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:04:05' and `end` < '2025-03-30 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-03-30 05:04:18] Production.INFO: count ==626 [2025-03-30 05:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:04:05 - End Time 2025-03-30 05:04:05 [2025-03-30 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793915', 'tblTempUsageDetail_20' ) start [2025-03-30 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793915', 'tblTempUsageDetail_20' ) end [2025-03-30 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793915', 'tblTempVendorCDR_20' ) start [2025-03-30 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793915', 'tblTempVendorCDR_20' ) end [2025-03-30 05:04:19] Production.INFO: ProcessCDR(1,14793915,1,1,2) [2025-03-30 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793915', 'tblTempUsageDetail_20' ) start [2025-03-30 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793915', 'tblTempUsageDetail_20' ) end [2025-03-30 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:04:22] Production.INFO: ==22778== Releasing lock... [2025-03-30 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:05:05 [end_date_ymd] => 2025-03-30 05:05:05 [RateCDR] => 1 ) [2025-03-30 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:05:05' and `end` < '2025-03-30 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:05:18] Production.INFO: count ==626 [2025-03-30 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:05:05 - End Time 2025-03-30 05:05:05 [2025-03-30 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793920', 'tblTempUsageDetail_20' ) start [2025-03-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793920', 'tblTempUsageDetail_20' ) end [2025-03-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793920', 'tblTempVendorCDR_20' ) start [2025-03-30 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793920', 'tblTempVendorCDR_20' ) end [2025-03-30 05:05:18] Production.INFO: ProcessCDR(1,14793920,1,1,2) [2025-03-30 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793920', 'tblTempUsageDetail_20' ) start [2025-03-30 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793920', 'tblTempUsageDetail_20' ) end [2025-03-30 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:05:21] Production.INFO: ==22856== Releasing lock... [2025-03-30 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:06:06 [end_date_ymd] => 2025-03-30 05:06:06 [RateCDR] => 1 ) [2025-03-30 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:06:06' and `end` < '2025-03-30 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:06:21] Production.INFO: count ==625 [2025-03-30 05:06:21] Production.ERROR: pbx CDR StartTime 2025-03-30 02:06:06 - End Time 2025-03-30 05:06:06 [2025-03-30 05:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793925', 'tblTempUsageDetail_20' ) start [2025-03-30 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793925', 'tblTempUsageDetail_20' ) end [2025-03-30 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793925', 'tblTempVendorCDR_20' ) start [2025-03-30 05:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793925', 'tblTempVendorCDR_20' ) end [2025-03-30 05:06:21] Production.INFO: ProcessCDR(1,14793925,1,1,2) [2025-03-30 05:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793925', 'tblTempUsageDetail_20' ) start [2025-03-30 05:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793925', 'tblTempUsageDetail_20' ) end [2025-03-30 05:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:06:24] Production.INFO: ==22929== Releasing lock... [2025-03-30 05:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:06:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:07:06 [end_date_ymd] => 2025-03-30 05:07:06 [RateCDR] => 1 ) [2025-03-30 05:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:07:06' and `end` < '2025-03-30 05:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:07:19] Production.INFO: count ==629 [2025-03-30 05:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:07:06 - End Time 2025-03-30 05:07:06 [2025-03-30 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793930', 'tblTempUsageDetail_20' ) start [2025-03-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793930', 'tblTempUsageDetail_20' ) end [2025-03-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793930', 'tblTempVendorCDR_20' ) start [2025-03-30 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793930', 'tblTempVendorCDR_20' ) end [2025-03-30 05:07:19] Production.INFO: ProcessCDR(1,14793930,1,1,2) [2025-03-30 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793930', 'tblTempUsageDetail_20' ) start [2025-03-30 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793930', 'tblTempUsageDetail_20' ) end [2025-03-30 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:07:22] Production.INFO: ==23000== Releasing lock... [2025-03-30 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:07:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:08:05 [end_date_ymd] => 2025-03-30 05:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:08:05' and `end` < '2025-03-30 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-03-30 05:08:17] Production.INFO: count ==625 [2025-03-30 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:08:05 - End Time 2025-03-30 05:08:05 [2025-03-30 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793935', 'tblTempUsageDetail_20' ) start [2025-03-30 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793935', 'tblTempUsageDetail_20' ) end [2025-03-30 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793935', 'tblTempVendorCDR_20' ) start [2025-03-30 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793935', 'tblTempVendorCDR_20' ) end [2025-03-30 05:08:18] Production.INFO: ProcessCDR(1,14793935,1,1,2) [2025-03-30 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793935', 'tblTempUsageDetail_20' ) start [2025-03-30 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793935', 'tblTempUsageDetail_20' ) end [2025-03-30 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:08:21] Production.INFO: ==23077== Releasing lock... [2025-03-30 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:08:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:09:05 [end_date_ymd] => 2025-03-30 05:09:05 [RateCDR] => 1 ) [2025-03-30 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:09:05' and `end` < '2025-03-30 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:09:18] Production.INFO: count ==621 [2025-03-30 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:09:05 - End Time 2025-03-30 05:09:05 [2025-03-30 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793940', 'tblTempUsageDetail_20' ) start [2025-03-30 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793940', 'tblTempUsageDetail_20' ) end [2025-03-30 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793940', 'tblTempVendorCDR_20' ) start [2025-03-30 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793940', 'tblTempVendorCDR_20' ) end [2025-03-30 05:09:18] Production.INFO: ProcessCDR(1,14793940,1,1,2) [2025-03-30 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793940', 'tblTempUsageDetail_20' ) start [2025-03-30 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793940', 'tblTempUsageDetail_20' ) end [2025-03-30 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:09:21] Production.INFO: ==23152== Releasing lock... [2025-03-30 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:09:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:10:06 [end_date_ymd] => 2025-03-30 05:10:06 [RateCDR] => 1 ) [2025-03-30 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:10:06' and `end` < '2025-03-30 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:10:19] Production.INFO: count ==602 [2025-03-30 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:10:06 - End Time 2025-03-30 05:10:06 [2025-03-30 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793946', 'tblTempUsageDetail_20' ) start [2025-03-30 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793946', 'tblTempUsageDetail_20' ) end [2025-03-30 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793946', 'tblTempVendorCDR_20' ) start [2025-03-30 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793946', 'tblTempVendorCDR_20' ) end [2025-03-30 05:10:19] Production.INFO: ProcessCDR(1,14793946,1,1,2) [2025-03-30 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793946', 'tblTempUsageDetail_20' ) start [2025-03-30 05:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793946', 'tblTempUsageDetail_20' ) end [2025-03-30 05:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:10:23] Production.INFO: ==23225== Releasing lock... [2025-03-30 05:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:10:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:11:05 [end_date_ymd] => 2025-03-30 05:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:11:05' and `end` < '2025-03-30 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-03-30 05:11:18] Production.INFO: count ==598 [2025-03-30 05:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:11:05 - End Time 2025-03-30 05:11:05 [2025-03-30 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793951', 'tblTempUsageDetail_20' ) start [2025-03-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793951', 'tblTempUsageDetail_20' ) end [2025-03-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793951', 'tblTempVendorCDR_20' ) start [2025-03-30 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793951', 'tblTempVendorCDR_20' ) end [2025-03-30 05:11:18] Production.INFO: ProcessCDR(1,14793951,1,1,2) [2025-03-30 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793951', 'tblTempUsageDetail_20' ) start [2025-03-30 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793951', 'tblTempUsageDetail_20' ) end [2025-03-30 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:11:21] Production.INFO: ==23303== Releasing lock... [2025-03-30 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:12:05 [end_date_ymd] => 2025-03-30 05:12:05 [RateCDR] => 1 ) [2025-03-30 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:12:05' and `end` < '2025-03-30 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:12:17] Production.INFO: count ==595 [2025-03-30 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:12:05 - End Time 2025-03-30 05:12:05 [2025-03-30 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793956', 'tblTempUsageDetail_20' ) start [2025-03-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793956', 'tblTempUsageDetail_20' ) end [2025-03-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793956', 'tblTempVendorCDR_20' ) start [2025-03-30 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793956', 'tblTempVendorCDR_20' ) end [2025-03-30 05:12:18] Production.INFO: ProcessCDR(1,14793956,1,1,2) [2025-03-30 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793956', 'tblTempUsageDetail_20' ) start [2025-03-30 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793956', 'tblTempUsageDetail_20' ) end [2025-03-30 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:12:21] Production.INFO: ==23376== Releasing lock... [2025-03-30 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:13:05 [end_date_ymd] => 2025-03-30 05:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:13:05' and `end` < '2025-03-30 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-03-30 05:13:18] Production.INFO: count ==593 [2025-03-30 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:13:05 - End Time 2025-03-30 05:13:05 [2025-03-30 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793961', 'tblTempUsageDetail_20' ) start [2025-03-30 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793961', 'tblTempUsageDetail_20' ) end [2025-03-30 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793961', 'tblTempVendorCDR_20' ) start [2025-03-30 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793961', 'tblTempVendorCDR_20' ) end [2025-03-30 05:13:18] Production.INFO: ProcessCDR(1,14793961,1,1,2) [2025-03-30 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793961', 'tblTempUsageDetail_20' ) start [2025-03-30 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793961', 'tblTempUsageDetail_20' ) end [2025-03-30 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:13:22] Production.INFO: ==23447== Releasing lock... [2025-03-30 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:14:05 [end_date_ymd] => 2025-03-30 05:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:14:05' and `end` < '2025-03-30 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-03-30 05:14:17] Production.INFO: count ==597 [2025-03-30 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-30 02:14:05 - End Time 2025-03-30 05:14:05 [2025-03-30 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793966', 'tblTempUsageDetail_20' ) start [2025-03-30 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793966', 'tblTempUsageDetail_20' ) end [2025-03-30 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793966', 'tblTempVendorCDR_20' ) start [2025-03-30 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793966', 'tblTempVendorCDR_20' ) end [2025-03-30 05:14:17] Production.INFO: ProcessCDR(1,14793966,1,1,2) [2025-03-30 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793966', 'tblTempUsageDetail_20' ) start [2025-03-30 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793966', 'tblTempUsageDetail_20' ) end [2025-03-30 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:14:21] Production.INFO: ==23520== Releasing lock... [2025-03-30 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:14:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:15:05 [end_date_ymd] => 2025-03-30 05:15:05 [RateCDR] => 1 ) [2025-03-30 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:15:05' and `end` < '2025-03-30 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:15:18] Production.INFO: count ==594 [2025-03-30 05:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:15:05 - End Time 2025-03-30 05:15:05 [2025-03-30 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793971', 'tblTempUsageDetail_20' ) start [2025-03-30 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793971', 'tblTempUsageDetail_20' ) end [2025-03-30 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793971', 'tblTempVendorCDR_20' ) start [2025-03-30 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793971', 'tblTempVendorCDR_20' ) end [2025-03-30 05:15:18] Production.INFO: ProcessCDR(1,14793971,1,1,2) [2025-03-30 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793971', 'tblTempUsageDetail_20' ) start [2025-03-30 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793971', 'tblTempUsageDetail_20' ) end [2025-03-30 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:15:21] Production.INFO: ==23602== Releasing lock... [2025-03-30 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:16:06 [end_date_ymd] => 2025-03-30 05:16:06 [RateCDR] => 1 ) [2025-03-30 05: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-03-30 02:16:06' and `end` < '2025-03-30 05: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-03-30 05:16:19] Production.INFO: count ==594 [2025-03-30 05:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:16:06 - End Time 2025-03-30 05:16:06 [2025-03-30 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793976', 'tblTempUsageDetail_20' ) start [2025-03-30 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793976', 'tblTempUsageDetail_20' ) end [2025-03-30 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793976', 'tblTempVendorCDR_20' ) start [2025-03-30 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793976', 'tblTempVendorCDR_20' ) end [2025-03-30 05:16:19] Production.INFO: ProcessCDR(1,14793976,1,1,2) [2025-03-30 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793976', 'tblTempUsageDetail_20' ) start [2025-03-30 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793976', 'tblTempUsageDetail_20' ) end [2025-03-30 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:16:22] Production.INFO: ==23683== Releasing lock... [2025-03-30 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:17:05 [end_date_ymd] => 2025-03-30 05:17:05 [RateCDR] => 1 ) [2025-03-30 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:17:05' and `end` < '2025-03-30 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:17:17] Production.INFO: count ==598 [2025-03-30 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:17:05 - End Time 2025-03-30 05:17:05 [2025-03-30 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793981', 'tblTempUsageDetail_20' ) start [2025-03-30 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793981', 'tblTempUsageDetail_20' ) end [2025-03-30 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793981', 'tblTempVendorCDR_20' ) start [2025-03-30 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793981', 'tblTempVendorCDR_20' ) end [2025-03-30 05:17:18] Production.INFO: ProcessCDR(1,14793981,1,1,2) [2025-03-30 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793981', 'tblTempUsageDetail_20' ) start [2025-03-30 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793981', 'tblTempUsageDetail_20' ) end [2025-03-30 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:17:21] Production.INFO: ==23763== Releasing lock... [2025-03-30 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:18:05 [end_date_ymd] => 2025-03-30 05:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:18:05' and `end` < '2025-03-30 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-03-30 05:18:18] Production.INFO: count ==597 [2025-03-30 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:18:05 - End Time 2025-03-30 05:18:05 [2025-03-30 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793986', 'tblTempUsageDetail_20' ) start [2025-03-30 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793986', 'tblTempUsageDetail_20' ) end [2025-03-30 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793986', 'tblTempVendorCDR_20' ) start [2025-03-30 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793986', 'tblTempVendorCDR_20' ) end [2025-03-30 05:18:18] Production.INFO: ProcessCDR(1,14793986,1,1,2) [2025-03-30 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793986', 'tblTempUsageDetail_20' ) start [2025-03-30 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793986', 'tblTempUsageDetail_20' ) end [2025-03-30 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:18:22] Production.INFO: ==23892== Releasing lock... [2025-03-30 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:19:06 [end_date_ymd] => 2025-03-30 05:19:06 [RateCDR] => 1 ) [2025-03-30 05: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-03-30 02:19:06' and `end` < '2025-03-30 05: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-03-30 05:19:18] Production.INFO: count ==597 [2025-03-30 05:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:19:06 - End Time 2025-03-30 05:19:06 [2025-03-30 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793991', 'tblTempUsageDetail_20' ) start [2025-03-30 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793991', 'tblTempUsageDetail_20' ) end [2025-03-30 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793991', 'tblTempVendorCDR_20' ) start [2025-03-30 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793991', 'tblTempVendorCDR_20' ) end [2025-03-30 05:19:19] Production.INFO: ProcessCDR(1,14793991,1,1,2) [2025-03-30 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793991', 'tblTempUsageDetail_20' ) start [2025-03-30 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793991', 'tblTempUsageDetail_20' ) end [2025-03-30 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:19:22] Production.INFO: ==23975== Releasing lock... [2025-03-30 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:20:06 [end_date_ymd] => 2025-03-30 05:20:06 [RateCDR] => 1 ) [2025-03-30 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:20:06' and `end` < '2025-03-30 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:20:19] Production.INFO: count ==585 [2025-03-30 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:20:06 - End Time 2025-03-30 05:20:06 [2025-03-30 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793997', 'tblTempUsageDetail_20' ) start [2025-03-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14793997', 'tblTempUsageDetail_20' ) end [2025-03-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793997', 'tblTempVendorCDR_20' ) start [2025-03-30 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14793997', 'tblTempVendorCDR_20' ) end [2025-03-30 05:20:19] Production.INFO: ProcessCDR(1,14793997,1,1,2) [2025-03-30 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14793997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14793997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14793997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14793997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793997', 'tblTempUsageDetail_20' ) start [2025-03-30 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14793997', 'tblTempUsageDetail_20' ) end [2025-03-30 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:20:23] Production.INFO: ==24058== Releasing lock... [2025-03-30 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:21:05 [end_date_ymd] => 2025-03-30 05:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:21:05' and `end` < '2025-03-30 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-03-30 05:21:17] Production.INFO: count ==585 [2025-03-30 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-30 02:21:05 - End Time 2025-03-30 05:21:05 [2025-03-30 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794002', 'tblTempUsageDetail_20' ) start [2025-03-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794002', 'tblTempUsageDetail_20' ) end [2025-03-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794002', 'tblTempVendorCDR_20' ) start [2025-03-30 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794002', 'tblTempVendorCDR_20' ) end [2025-03-30 05:21:17] Production.INFO: ProcessCDR(1,14794002,1,1,2) [2025-03-30 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794002', 'tblTempUsageDetail_20' ) start [2025-03-30 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794002', 'tblTempUsageDetail_20' ) end [2025-03-30 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:21:21] Production.INFO: ==24143== Releasing lock... [2025-03-30 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:22:05 [end_date_ymd] => 2025-03-30 05:22:05 [RateCDR] => 1 ) [2025-03-30 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:22:05' and `end` < '2025-03-30 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:22:18] Production.INFO: count ==585 [2025-03-30 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:22:05 - End Time 2025-03-30 05:22:05 [2025-03-30 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794007', 'tblTempUsageDetail_20' ) start [2025-03-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794007', 'tblTempUsageDetail_20' ) end [2025-03-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794007', 'tblTempVendorCDR_20' ) start [2025-03-30 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794007', 'tblTempVendorCDR_20' ) end [2025-03-30 05:22:18] Production.INFO: ProcessCDR(1,14794007,1,1,2) [2025-03-30 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794007', 'tblTempUsageDetail_20' ) start [2025-03-30 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794007', 'tblTempUsageDetail_20' ) end [2025-03-30 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:22:21] Production.INFO: ==24226== Releasing lock... [2025-03-30 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:23:05 [end_date_ymd] => 2025-03-30 05:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:23:05' and `end` < '2025-03-30 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-03-30 05:23:18] Production.INFO: count ==585 [2025-03-30 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:23:05 - End Time 2025-03-30 05:23:05 [2025-03-30 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794012', 'tblTempUsageDetail_20' ) start [2025-03-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794012', 'tblTempUsageDetail_20' ) end [2025-03-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794012', 'tblTempVendorCDR_20' ) start [2025-03-30 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794012', 'tblTempVendorCDR_20' ) end [2025-03-30 05:23:18] Production.INFO: ProcessCDR(1,14794012,1,1,2) [2025-03-30 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794012', 'tblTempUsageDetail_20' ) start [2025-03-30 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794012', 'tblTempUsageDetail_20' ) end [2025-03-30 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:23:21] Production.INFO: ==24306== Releasing lock... [2025-03-30 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:24:05 [end_date_ymd] => 2025-03-30 05:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:24:05' and `end` < '2025-03-30 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-03-30 05:24:18] Production.INFO: count ==582 [2025-03-30 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:24:05 - End Time 2025-03-30 05:24:05 [2025-03-30 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794017', 'tblTempUsageDetail_20' ) start [2025-03-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794017', 'tblTempUsageDetail_20' ) end [2025-03-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794017', 'tblTempVendorCDR_20' ) start [2025-03-30 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794017', 'tblTempVendorCDR_20' ) end [2025-03-30 05:24:18] Production.INFO: ProcessCDR(1,14794017,1,1,2) [2025-03-30 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794017', 'tblTempUsageDetail_20' ) start [2025-03-30 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794017', 'tblTempUsageDetail_20' ) end [2025-03-30 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:24:22] Production.INFO: ==24394== Releasing lock... [2025-03-30 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:24:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:25:06 [end_date_ymd] => 2025-03-30 05:25:06 [RateCDR] => 1 ) [2025-03-30 05: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-03-30 02:25:06' and `end` < '2025-03-30 05: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-03-30 05:25:18] Production.INFO: count ==582 [2025-03-30 05:25:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:25:06 - End Time 2025-03-30 05:25:06 [2025-03-30 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794022', 'tblTempUsageDetail_20' ) start [2025-03-30 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794022', 'tblTempUsageDetail_20' ) end [2025-03-30 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794022', 'tblTempVendorCDR_20' ) start [2025-03-30 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794022', 'tblTempVendorCDR_20' ) end [2025-03-30 05:25:19] Production.INFO: ProcessCDR(1,14794022,1,1,2) [2025-03-30 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794022', 'tblTempUsageDetail_20' ) start [2025-03-30 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794022', 'tblTempUsageDetail_20' ) end [2025-03-30 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:25:22] Production.INFO: ==24481== Releasing lock... [2025-03-30 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:26:05 [end_date_ymd] => 2025-03-30 05:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:26:05' and `end` < '2025-03-30 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-03-30 05:26:17] Production.INFO: count ==584 [2025-03-30 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:26:05 - End Time 2025-03-30 05:26:05 [2025-03-30 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794027', 'tblTempUsageDetail_20' ) start [2025-03-30 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794027', 'tblTempUsageDetail_20' ) end [2025-03-30 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794027', 'tblTempVendorCDR_20' ) start [2025-03-30 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794027', 'tblTempVendorCDR_20' ) end [2025-03-30 05:26:18] Production.INFO: ProcessCDR(1,14794027,1,1,2) [2025-03-30 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794027', 'tblTempUsageDetail_20' ) start [2025-03-30 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794027', 'tblTempUsageDetail_20' ) end [2025-03-30 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:26:21] Production.INFO: ==24560== Releasing lock... [2025-03-30 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:26:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:27:06 [end_date_ymd] => 2025-03-30 05:27:06 [RateCDR] => 1 ) [2025-03-30 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:27:06' and `end` < '2025-03-30 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:27:18] Production.INFO: count ==580 [2025-03-30 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:27:06 - End Time 2025-03-30 05:27:06 [2025-03-30 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794032', 'tblTempUsageDetail_20' ) start [2025-03-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794032', 'tblTempUsageDetail_20' ) end [2025-03-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794032', 'tblTempVendorCDR_20' ) start [2025-03-30 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794032', 'tblTempVendorCDR_20' ) end [2025-03-30 05:27:18] Production.INFO: ProcessCDR(1,14794032,1,1,2) [2025-03-30 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794032', 'tblTempUsageDetail_20' ) start [2025-03-30 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794032', 'tblTempUsageDetail_20' ) end [2025-03-30 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:27:22] Production.INFO: ==24641== Releasing lock... [2025-03-30 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:28:05 [end_date_ymd] => 2025-03-30 05:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:28:05' and `end` < '2025-03-30 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-03-30 05:28:18] Production.INFO: count ==577 [2025-03-30 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:28:05 - End Time 2025-03-30 05:28:05 [2025-03-30 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794037', 'tblTempUsageDetail_20' ) start [2025-03-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794037', 'tblTempUsageDetail_20' ) end [2025-03-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794037', 'tblTempVendorCDR_20' ) start [2025-03-30 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794037', 'tblTempVendorCDR_20' ) end [2025-03-30 05:28:18] Production.INFO: ProcessCDR(1,14794037,1,1,2) [2025-03-30 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794037', 'tblTempUsageDetail_20' ) start [2025-03-30 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794037', 'tblTempUsageDetail_20' ) end [2025-03-30 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:28:21] Production.INFO: ==24723== Releasing lock... [2025-03-30 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:29:05 [end_date_ymd] => 2025-03-30 05:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:29:05' and `end` < '2025-03-30 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-03-30 05:29:18] Production.INFO: count ==575 [2025-03-30 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:29:05 - End Time 2025-03-30 05:29:05 [2025-03-30 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794042', 'tblTempUsageDetail_20' ) start [2025-03-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794042', 'tblTempUsageDetail_20' ) end [2025-03-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794042', 'tblTempVendorCDR_20' ) start [2025-03-30 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794042', 'tblTempVendorCDR_20' ) end [2025-03-30 05:29:18] Production.INFO: ProcessCDR(1,14794042,1,1,2) [2025-03-30 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794042', 'tblTempUsageDetail_20' ) start [2025-03-30 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794042', 'tblTempUsageDetail_20' ) end [2025-03-30 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:29:22] Production.INFO: ==24803== Releasing lock... [2025-03-30 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:29:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:30:06 [end_date_ymd] => 2025-03-30 05:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:30:06' and `end` < '2025-03-30 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-03-30 05:30:19] Production.INFO: count ==577 [2025-03-30 05:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:30:06 - End Time 2025-03-30 05:30:06 [2025-03-30 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794048', 'tblTempUsageDetail_20' ) start [2025-03-30 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794048', 'tblTempUsageDetail_20' ) end [2025-03-30 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794048', 'tblTempVendorCDR_20' ) start [2025-03-30 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794048', 'tblTempVendorCDR_20' ) end [2025-03-30 05:30:19] Production.INFO: ProcessCDR(1,14794048,1,1,2) [2025-03-30 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794048', 'tblTempUsageDetail_20' ) start [2025-03-30 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794048', 'tblTempUsageDetail_20' ) end [2025-03-30 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:30:22] Production.INFO: ==24887== Releasing lock... [2025-03-30 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:31:05 [end_date_ymd] => 2025-03-30 05:31:05 [RateCDR] => 1 ) [2025-03-30 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:31:05' and `end` < '2025-03-30 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:31:18] Production.INFO: count ==581 [2025-03-30 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:31:05 - End Time 2025-03-30 05:31:05 [2025-03-30 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794053', 'tblTempUsageDetail_20' ) start [2025-03-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794053', 'tblTempUsageDetail_20' ) end [2025-03-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794053', 'tblTempVendorCDR_20' ) start [2025-03-30 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794053', 'tblTempVendorCDR_20' ) end [2025-03-30 05:31:18] Production.INFO: ProcessCDR(1,14794053,1,1,2) [2025-03-30 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794053', 'tblTempUsageDetail_20' ) start [2025-03-30 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794053', 'tblTempUsageDetail_20' ) end [2025-03-30 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:31:21] Production.INFO: ==24973== Releasing lock... [2025-03-30 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:31:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:32:05 [end_date_ymd] => 2025-03-30 05:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:32:05' and `end` < '2025-03-30 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-03-30 05:32:17] Production.INFO: count ==581 [2025-03-30 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:32:05 - End Time 2025-03-30 05:32:05 [2025-03-30 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794058', 'tblTempUsageDetail_20' ) start [2025-03-30 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794058', 'tblTempUsageDetail_20' ) end [2025-03-30 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794058', 'tblTempVendorCDR_20' ) start [2025-03-30 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794058', 'tblTempVendorCDR_20' ) end [2025-03-30 05:32:18] Production.INFO: ProcessCDR(1,14794058,1,1,2) [2025-03-30 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794058', 'tblTempUsageDetail_20' ) start [2025-03-30 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794058', 'tblTempUsageDetail_20' ) end [2025-03-30 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:32:21] Production.INFO: ==25051== Releasing lock... [2025-03-30 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:32:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:33:05 [end_date_ymd] => 2025-03-30 05:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:33:05' and `end` < '2025-03-30 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-03-30 05:33:18] Production.INFO: count ==581 [2025-03-30 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:33:05 - End Time 2025-03-30 05:33:05 [2025-03-30 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794063', 'tblTempUsageDetail_20' ) start [2025-03-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794063', 'tblTempUsageDetail_20' ) end [2025-03-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794063', 'tblTempVendorCDR_20' ) start [2025-03-30 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794063', 'tblTempVendorCDR_20' ) end [2025-03-30 05:33:18] Production.INFO: ProcessCDR(1,14794063,1,1,2) [2025-03-30 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794063', 'tblTempUsageDetail_20' ) start [2025-03-30 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794063', 'tblTempUsageDetail_20' ) end [2025-03-30 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:33:21] Production.INFO: ==25138== Releasing lock... [2025-03-30 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:33:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:34:05 [end_date_ymd] => 2025-03-30 05:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:34:05' and `end` < '2025-03-30 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-03-30 05:34:17] Production.INFO: count ==581 [2025-03-30 05:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:34:05 - End Time 2025-03-30 05:34:05 [2025-03-30 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794068', 'tblTempUsageDetail_20' ) start [2025-03-30 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794068', 'tblTempUsageDetail_20' ) end [2025-03-30 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794068', 'tblTempVendorCDR_20' ) start [2025-03-30 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794068', 'tblTempVendorCDR_20' ) end [2025-03-30 05:34:18] Production.INFO: ProcessCDR(1,14794068,1,1,2) [2025-03-30 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794068', 'tblTempUsageDetail_20' ) start [2025-03-30 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794068', 'tblTempUsageDetail_20' ) end [2025-03-30 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:34:21] Production.INFO: ==25265== Releasing lock... [2025-03-30 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:35:05 [end_date_ymd] => 2025-03-30 05:35:05 [RateCDR] => 1 ) [2025-03-30 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:35:05' and `end` < '2025-03-30 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:35:18] Production.INFO: count ==581 [2025-03-30 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:35:05 - End Time 2025-03-30 05:35:05 [2025-03-30 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794073', 'tblTempUsageDetail_20' ) start [2025-03-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794073', 'tblTempUsageDetail_20' ) end [2025-03-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794073', 'tblTempVendorCDR_20' ) start [2025-03-30 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794073', 'tblTempVendorCDR_20' ) end [2025-03-30 05:35:18] Production.INFO: ProcessCDR(1,14794073,1,1,2) [2025-03-30 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794073', 'tblTempUsageDetail_20' ) start [2025-03-30 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794073', 'tblTempUsageDetail_20' ) end [2025-03-30 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:35:21] Production.INFO: ==25348== Releasing lock... [2025-03-30 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:35:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:36:06 [end_date_ymd] => 2025-03-30 05:36:06 [RateCDR] => 1 ) [2025-03-30 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:36:06' and `end` < '2025-03-30 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:36:18] Production.INFO: count ==581 [2025-03-30 05:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:36:06 - End Time 2025-03-30 05:36:06 [2025-03-30 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794078', 'tblTempUsageDetail_20' ) start [2025-03-30 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794078', 'tblTempUsageDetail_20' ) end [2025-03-30 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794078', 'tblTempVendorCDR_20' ) start [2025-03-30 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794078', 'tblTempVendorCDR_20' ) end [2025-03-30 05:36:19] Production.INFO: ProcessCDR(1,14794078,1,1,2) [2025-03-30 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794078', 'tblTempUsageDetail_20' ) start [2025-03-30 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794078', 'tblTempUsageDetail_20' ) end [2025-03-30 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:36:22] Production.INFO: ==25430== Releasing lock... [2025-03-30 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:37:05 [end_date_ymd] => 2025-03-30 05:37:05 [RateCDR] => 1 ) [2025-03-30 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:37:05' and `end` < '2025-03-30 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:37:18] Production.INFO: count ==581 [2025-03-30 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:37:05 - End Time 2025-03-30 05:37:05 [2025-03-30 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794083', 'tblTempUsageDetail_20' ) start [2025-03-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794083', 'tblTempUsageDetail_20' ) end [2025-03-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794083', 'tblTempVendorCDR_20' ) start [2025-03-30 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794083', 'tblTempVendorCDR_20' ) end [2025-03-30 05:37:18] Production.INFO: ProcessCDR(1,14794083,1,1,2) [2025-03-30 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794083', 'tblTempUsageDetail_20' ) start [2025-03-30 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794083', 'tblTempUsageDetail_20' ) end [2025-03-30 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:37:21] Production.INFO: ==25510== Releasing lock... [2025-03-30 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:37:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:38:06 [end_date_ymd] => 2025-03-30 05:38:06 [RateCDR] => 1 ) [2025-03-30 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:38:06' and `end` < '2025-03-30 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:38:18] Production.INFO: count ==581 [2025-03-30 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:38:06 - End Time 2025-03-30 05:38:06 [2025-03-30 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794088', 'tblTempUsageDetail_20' ) start [2025-03-30 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794088', 'tblTempUsageDetail_20' ) end [2025-03-30 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794088', 'tblTempVendorCDR_20' ) start [2025-03-30 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794088', 'tblTempVendorCDR_20' ) end [2025-03-30 05:38:18] Production.INFO: ProcessCDR(1,14794088,1,1,2) [2025-03-30 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794088', 'tblTempUsageDetail_20' ) start [2025-03-30 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794088', 'tblTempUsageDetail_20' ) end [2025-03-30 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:38:22] Production.INFO: ==25591== Releasing lock... [2025-03-30 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:38:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:39:05 [end_date_ymd] => 2025-03-30 05:39:05 [RateCDR] => 1 ) [2025-03-30 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:39:05' and `end` < '2025-03-30 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:39:17] Production.INFO: count ==583 [2025-03-30 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-30 02:39:05 - End Time 2025-03-30 05:39:05 [2025-03-30 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794093', 'tblTempUsageDetail_20' ) start [2025-03-30 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794093', 'tblTempUsageDetail_20' ) end [2025-03-30 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794093', 'tblTempVendorCDR_20' ) start [2025-03-30 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794093', 'tblTempVendorCDR_20' ) end [2025-03-30 05:39:17] Production.INFO: ProcessCDR(1,14794093,1,1,2) [2025-03-30 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794093', 'tblTempUsageDetail_20' ) start [2025-03-30 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794093', 'tblTempUsageDetail_20' ) end [2025-03-30 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:39:21] Production.INFO: ==25680== Releasing lock... [2025-03-30 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:39:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:40:06 [end_date_ymd] => 2025-03-30 05:40:06 [RateCDR] => 1 ) [2025-03-30 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:40:06' and `end` < '2025-03-30 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:40:19] Production.INFO: count ==579 [2025-03-30 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:40:06 - End Time 2025-03-30 05:40:06 [2025-03-30 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794098', 'tblTempUsageDetail_20' ) start [2025-03-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794098', 'tblTempUsageDetail_20' ) end [2025-03-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794098', 'tblTempVendorCDR_20' ) start [2025-03-30 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794098', 'tblTempVendorCDR_20' ) end [2025-03-30 05:40:19] Production.INFO: ProcessCDR(1,14794098,1,1,2) [2025-03-30 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794098', 'tblTempUsageDetail_20' ) start [2025-03-30 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794098', 'tblTempUsageDetail_20' ) end [2025-03-30 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:40:22] Production.INFO: ==25765== Releasing lock... [2025-03-30 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:41:05 [end_date_ymd] => 2025-03-30 05:41:05 [RateCDR] => 1 ) [2025-03-30 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:41:05' and `end` < '2025-03-30 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:41:18] Production.INFO: count ==579 [2025-03-30 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:41:05 - End Time 2025-03-30 05:41:05 [2025-03-30 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794104', 'tblTempUsageDetail_20' ) start [2025-03-30 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794104', 'tblTempUsageDetail_20' ) end [2025-03-30 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794104', 'tblTempVendorCDR_20' ) start [2025-03-30 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794104', 'tblTempVendorCDR_20' ) end [2025-03-30 05:41:18] Production.INFO: ProcessCDR(1,14794104,1,1,2) [2025-03-30 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794104', 'tblTempUsageDetail_20' ) start [2025-03-30 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794104', 'tblTempUsageDetail_20' ) end [2025-03-30 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:41:22] Production.INFO: ==25852== Releasing lock... [2025-03-30 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:42:05 [end_date_ymd] => 2025-03-30 05:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:42:05' and `end` < '2025-03-30 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-03-30 05:42:18] Production.INFO: count ==565 [2025-03-30 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:42:05 - End Time 2025-03-30 05:42:05 [2025-03-30 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794109', 'tblTempUsageDetail_20' ) start [2025-03-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794109', 'tblTempUsageDetail_20' ) end [2025-03-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794109', 'tblTempVendorCDR_20' ) start [2025-03-30 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794109', 'tblTempVendorCDR_20' ) end [2025-03-30 05:42:18] Production.INFO: ProcessCDR(1,14794109,1,1,2) [2025-03-30 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794109', 'tblTempUsageDetail_20' ) start [2025-03-30 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794109', 'tblTempUsageDetail_20' ) end [2025-03-30 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:42:22] Production.INFO: ==25935== Releasing lock... [2025-03-30 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:42:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:43:05 [end_date_ymd] => 2025-03-30 05:43:05 [RateCDR] => 1 ) [2025-03-30 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:43:05' and `end` < '2025-03-30 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:43:17] Production.INFO: count ==565 [2025-03-30 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:43:05 - End Time 2025-03-30 05:43:05 [2025-03-30 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794114', 'tblTempUsageDetail_20' ) start [2025-03-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794114', 'tblTempUsageDetail_20' ) end [2025-03-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794114', 'tblTempVendorCDR_20' ) start [2025-03-30 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794114', 'tblTempVendorCDR_20' ) end [2025-03-30 05:43:18] Production.INFO: ProcessCDR(1,14794114,1,1,2) [2025-03-30 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794114', 'tblTempUsageDetail_20' ) start [2025-03-30 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794114', 'tblTempUsageDetail_20' ) end [2025-03-30 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:43:21] Production.INFO: ==26020== Releasing lock... [2025-03-30 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:43:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:44:05 [end_date_ymd] => 2025-03-30 05:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:44:05' and `end` < '2025-03-30 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-03-30 05:44:17] Production.INFO: count ==554 [2025-03-30 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:44:05 - End Time 2025-03-30 05:44:05 [2025-03-30 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794119', 'tblTempUsageDetail_20' ) start [2025-03-30 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794119', 'tblTempUsageDetail_20' ) end [2025-03-30 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794119', 'tblTempVendorCDR_20' ) start [2025-03-30 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794119', 'tblTempVendorCDR_20' ) end [2025-03-30 05:44:18] Production.INFO: ProcessCDR(1,14794119,1,1,2) [2025-03-30 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794119', 'tblTempUsageDetail_20' ) start [2025-03-30 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794119', 'tblTempUsageDetail_20' ) end [2025-03-30 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:44:21] Production.INFO: ==26110== Releasing lock... [2025-03-30 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:45:05 [end_date_ymd] => 2025-03-30 05:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:45:05' and `end` < '2025-03-30 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-03-30 05:45:18] Production.INFO: count ==553 [2025-03-30 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:45:05 - End Time 2025-03-30 05:45:05 [2025-03-30 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794124', 'tblTempUsageDetail_20' ) start [2025-03-30 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794124', 'tblTempUsageDetail_20' ) end [2025-03-30 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794124', 'tblTempVendorCDR_20' ) start [2025-03-30 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794124', 'tblTempVendorCDR_20' ) end [2025-03-30 05:45:18] Production.INFO: ProcessCDR(1,14794124,1,1,2) [2025-03-30 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794124', 'tblTempUsageDetail_20' ) start [2025-03-30 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794124', 'tblTempUsageDetail_20' ) end [2025-03-30 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:45:21] Production.INFO: ==26191== Releasing lock... [2025-03-30 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:46:05 [end_date_ymd] => 2025-03-30 05:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:46:05' and `end` < '2025-03-30 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-03-30 05:46:18] Production.INFO: count ==557 [2025-03-30 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:46:05 - End Time 2025-03-30 05:46:05 [2025-03-30 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794129', 'tblTempUsageDetail_20' ) start [2025-03-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794129', 'tblTempUsageDetail_20' ) end [2025-03-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794129', 'tblTempVendorCDR_20' ) start [2025-03-30 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794129', 'tblTempVendorCDR_20' ) end [2025-03-30 05:46:18] Production.INFO: ProcessCDR(1,14794129,1,1,2) [2025-03-30 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794129', 'tblTempUsageDetail_20' ) start [2025-03-30 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794129', 'tblTempUsageDetail_20' ) end [2025-03-30 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:46:21] Production.INFO: ==26280== Releasing lock... [2025-03-30 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:47:05 [end_date_ymd] => 2025-03-30 05:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:47:05' and `end` < '2025-03-30 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-03-30 05:47:18] Production.INFO: count ==557 [2025-03-30 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:47:05 - End Time 2025-03-30 05:47:05 [2025-03-30 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794134', 'tblTempUsageDetail_20' ) start [2025-03-30 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794134', 'tblTempUsageDetail_20' ) end [2025-03-30 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794134', 'tblTempVendorCDR_20' ) start [2025-03-30 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794134', 'tblTempVendorCDR_20' ) end [2025-03-30 05:47:18] Production.INFO: ProcessCDR(1,14794134,1,1,2) [2025-03-30 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794134', 'tblTempUsageDetail_20' ) start [2025-03-30 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794134', 'tblTempUsageDetail_20' ) end [2025-03-30 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:47:21] Production.INFO: ==26368== Releasing lock... [2025-03-30 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:48:05 [end_date_ymd] => 2025-03-30 05:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:48:05' and `end` < '2025-03-30 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-03-30 05:48:18] Production.INFO: count ==557 [2025-03-30 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:48:05 - End Time 2025-03-30 05:48:05 [2025-03-30 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794139', 'tblTempUsageDetail_20' ) start [2025-03-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794139', 'tblTempUsageDetail_20' ) end [2025-03-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794139', 'tblTempVendorCDR_20' ) start [2025-03-30 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794139', 'tblTempVendorCDR_20' ) end [2025-03-30 05:48:18] Production.INFO: ProcessCDR(1,14794139,1,1,2) [2025-03-30 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794139', 'tblTempUsageDetail_20' ) start [2025-03-30 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794139', 'tblTempUsageDetail_20' ) end [2025-03-30 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:48:21] Production.INFO: ==26453== Releasing lock... [2025-03-30 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:49:05 [end_date_ymd] => 2025-03-30 05:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:49:05' and `end` < '2025-03-30 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-03-30 05:49:17] Production.INFO: count ==557 [2025-03-30 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:49:05 - End Time 2025-03-30 05:49:05 [2025-03-30 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794144', 'tblTempUsageDetail_20' ) start [2025-03-30 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794144', 'tblTempUsageDetail_20' ) end [2025-03-30 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794144', 'tblTempVendorCDR_20' ) start [2025-03-30 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794144', 'tblTempVendorCDR_20' ) end [2025-03-30 05:49:18] Production.INFO: ProcessCDR(1,14794144,1,1,2) [2025-03-30 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794144', 'tblTempUsageDetail_20' ) start [2025-03-30 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794144', 'tblTempUsageDetail_20' ) end [2025-03-30 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:49:21] Production.INFO: ==26579== Releasing lock... [2025-03-30 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:49:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:50:06 [end_date_ymd] => 2025-03-30 05:50:06 [RateCDR] => 1 ) [2025-03-30 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:50:06' and `end` < '2025-03-30 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:50:19] Production.INFO: count ==557 [2025-03-30 05:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:50:06 - End Time 2025-03-30 05:50:06 [2025-03-30 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794150', 'tblTempUsageDetail_20' ) start [2025-03-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794150', 'tblTempUsageDetail_20' ) end [2025-03-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794150', 'tblTempVendorCDR_20' ) start [2025-03-30 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794150', 'tblTempVendorCDR_20' ) end [2025-03-30 05:50:19] Production.INFO: ProcessCDR(1,14794150,1,1,2) [2025-03-30 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794150', 'tblTempUsageDetail_20' ) start [2025-03-30 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794150', 'tblTempUsageDetail_20' ) end [2025-03-30 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:50:22] Production.INFO: ==26670== Releasing lock... [2025-03-30 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:51:06 [end_date_ymd] => 2025-03-30 05:51:06 [RateCDR] => 1 ) [2025-03-30 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:51:06' and `end` < '2025-03-30 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:51:18] Production.INFO: count ==557 [2025-03-30 05:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:51:06 - End Time 2025-03-30 05:51:06 [2025-03-30 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794155', 'tblTempUsageDetail_20' ) start [2025-03-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794155', 'tblTempUsageDetail_20' ) end [2025-03-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794155', 'tblTempVendorCDR_20' ) start [2025-03-30 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794155', 'tblTempVendorCDR_20' ) end [2025-03-30 05:51:18] Production.INFO: ProcessCDR(1,14794155,1,1,2) [2025-03-30 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794155', 'tblTempUsageDetail_20' ) start [2025-03-30 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794155', 'tblTempUsageDetail_20' ) end [2025-03-30 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:51:22] Production.INFO: ==26759== Releasing lock... [2025-03-30 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:51:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:52:05 [end_date_ymd] => 2025-03-30 05:52:05 [RateCDR] => 1 ) [2025-03-30 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:52:05' and `end` < '2025-03-30 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:52:18] Production.INFO: count ==557 [2025-03-30 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:52:05 - End Time 2025-03-30 05:52:05 [2025-03-30 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794160', 'tblTempUsageDetail_20' ) start [2025-03-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794160', 'tblTempUsageDetail_20' ) end [2025-03-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794160', 'tblTempVendorCDR_20' ) start [2025-03-30 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794160', 'tblTempVendorCDR_20' ) end [2025-03-30 05:52:18] Production.INFO: ProcessCDR(1,14794160,1,1,2) [2025-03-30 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794160', 'tblTempUsageDetail_20' ) start [2025-03-30 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794160', 'tblTempUsageDetail_20' ) end [2025-03-30 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:52:21] Production.INFO: ==26843== Releasing lock... [2025-03-30 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:53:06 [end_date_ymd] => 2025-03-30 05:53:06 [RateCDR] => 1 ) [2025-03-30 05: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-03-30 02:53:06' and `end` < '2025-03-30 05: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-03-30 05:53:18] Production.INFO: count ==557 [2025-03-30 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:53:06 - End Time 2025-03-30 05:53:06 [2025-03-30 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794165', 'tblTempUsageDetail_20' ) start [2025-03-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794165', 'tblTempUsageDetail_20' ) end [2025-03-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794165', 'tblTempVendorCDR_20' ) start [2025-03-30 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794165', 'tblTempVendorCDR_20' ) end [2025-03-30 05:53:18] Production.INFO: ProcessCDR(1,14794165,1,1,2) [2025-03-30 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794165', 'tblTempUsageDetail_20' ) start [2025-03-30 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794165', 'tblTempUsageDetail_20' ) end [2025-03-30 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:53:22] Production.INFO: ==26931== Releasing lock... [2025-03-30 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:54:05 [end_date_ymd] => 2025-03-30 05:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:54:05' and `end` < '2025-03-30 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-03-30 05:54:17] Production.INFO: count ==558 [2025-03-30 05:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:54:05 - End Time 2025-03-30 05:54:05 [2025-03-30 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794170', 'tblTempUsageDetail_20' ) start [2025-03-30 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794170', 'tblTempUsageDetail_20' ) end [2025-03-30 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794170', 'tblTempVendorCDR_20' ) start [2025-03-30 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794170', 'tblTempVendorCDR_20' ) end [2025-03-30 05:54:18] Production.INFO: ProcessCDR(1,14794170,1,1,2) [2025-03-30 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794170', 'tblTempUsageDetail_20' ) start [2025-03-30 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794170', 'tblTempUsageDetail_20' ) end [2025-03-30 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:54:21] Production.INFO: ==27014== Releasing lock... [2025-03-30 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:55:06 [end_date_ymd] => 2025-03-30 05:55:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:55:06' and `end` < '2025-03-30 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-03-30 05:55:18] Production.INFO: count ==561 [2025-03-30 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:55:06 - End Time 2025-03-30 05:55:06 [2025-03-30 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794175', 'tblTempUsageDetail_20' ) start [2025-03-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794175', 'tblTempUsageDetail_20' ) end [2025-03-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794175', 'tblTempVendorCDR_20' ) start [2025-03-30 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794175', 'tblTempVendorCDR_20' ) end [2025-03-30 05:55:18] Production.INFO: ProcessCDR(1,14794175,1,1,2) [2025-03-30 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794175', 'tblTempUsageDetail_20' ) start [2025-03-30 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794175', 'tblTempUsageDetail_20' ) end [2025-03-30 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:55:22] Production.INFO: ==27101== Releasing lock... [2025-03-30 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:56:05 [end_date_ymd] => 2025-03-30 05:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:56:05' and `end` < '2025-03-30 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-03-30 05:56:18] Production.INFO: count ==547 [2025-03-30 05:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:56:05 - End Time 2025-03-30 05:56:05 [2025-03-30 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794180', 'tblTempUsageDetail_20' ) start [2025-03-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794180', 'tblTempUsageDetail_20' ) end [2025-03-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794180', 'tblTempVendorCDR_20' ) start [2025-03-30 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794180', 'tblTempVendorCDR_20' ) end [2025-03-30 05:56:18] Production.INFO: ProcessCDR(1,14794180,1,1,2) [2025-03-30 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794180', 'tblTempUsageDetail_20' ) start [2025-03-30 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794180', 'tblTempUsageDetail_20' ) end [2025-03-30 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:56:22] Production.INFO: ==27190== Releasing lock... [2025-03-30 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:57:06 [end_date_ymd] => 2025-03-30 05:57:06 [RateCDR] => 1 ) [2025-03-30 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:57:06' and `end` < '2025-03-30 05: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-03-30 05:57:18] Production.INFO: count ==510 [2025-03-30 05:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 02:57:06 - End Time 2025-03-30 05:57:06 [2025-03-30 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794185', 'tblTempUsageDetail_20' ) start [2025-03-30 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794185', 'tblTempUsageDetail_20' ) end [2025-03-30 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794185', 'tblTempVendorCDR_20' ) start [2025-03-30 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794185', 'tblTempVendorCDR_20' ) end [2025-03-30 05:57:19] Production.INFO: ProcessCDR(1,14794185,1,1,2) [2025-03-30 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794185', 'tblTempUsageDetail_20' ) start [2025-03-30 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794185', 'tblTempUsageDetail_20' ) end [2025-03-30 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:57:22] Production.INFO: ==27279== Releasing lock... [2025-03-30 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:58:05 [end_date_ymd] => 2025-03-30 05:58:05 [RateCDR] => 1 ) [2025-03-30 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 02:58:05' and `end` < '2025-03-30 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 05:58:17] Production.INFO: count ==434 [2025-03-30 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-30 02:58:05 - End Time 2025-03-30 05:58:05 [2025-03-30 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794190', 'tblTempUsageDetail_20' ) start [2025-03-30 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794190', 'tblTempUsageDetail_20' ) end [2025-03-30 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794190', 'tblTempVendorCDR_20' ) start [2025-03-30 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794190', 'tblTempVendorCDR_20' ) end [2025-03-30 05:58:17] Production.INFO: ProcessCDR(1,14794190,1,1,2) [2025-03-30 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794190', 'tblTempUsageDetail_20' ) start [2025-03-30 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794190', 'tblTempUsageDetail_20' ) end [2025-03-30 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:58:21] Production.INFO: ==27361== Releasing lock... [2025-03-30 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 02:59:05 [end_date_ymd] => 2025-03-30 05:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 02:59:05' and `end` < '2025-03-30 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-03-30 05:59:18] Production.INFO: count ==423 [2025-03-30 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 02:59:05 - End Time 2025-03-30 05:59:05 [2025-03-30 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794195', 'tblTempUsageDetail_20' ) start [2025-03-30 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794195', 'tblTempUsageDetail_20' ) end [2025-03-30 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794195', 'tblTempVendorCDR_20' ) start [2025-03-30 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794195', 'tblTempVendorCDR_20' ) end [2025-03-30 05:59:18] Production.INFO: ProcessCDR(1,14794195,1,1,2) [2025-03-30 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794195', 'tblTempUsageDetail_20' ) start [2025-03-30 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794195', 'tblTempUsageDetail_20' ) end [2025-03-30 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 05:59:21] Production.INFO: ==27451== Releasing lock... [2025-03-30 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 05:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:00:06 [end_date_ymd] => 2025-03-30 06:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:00:06' and `end` < '2025-03-30 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-03-30 06:00:18] Production.INFO: count ==416 [2025-03-30 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:00:06 - End Time 2025-03-30 06:00:06 [2025-03-30 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794201', 'tblTempUsageDetail_20' ) start [2025-03-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794201', 'tblTempUsageDetail_20' ) end [2025-03-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794201', 'tblTempVendorCDR_20' ) start [2025-03-30 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794201', 'tblTempVendorCDR_20' ) end [2025-03-30 06:00:18] Production.INFO: ProcessCDR(1,14794201,1,1,2) [2025-03-30 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794201', 'tblTempUsageDetail_20' ) start [2025-03-30 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794201', 'tblTempUsageDetail_20' ) end [2025-03-30 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:00:24] Production.INFO: ==27536== Releasing lock... [2025-03-30 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:00:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:01:06 [end_date_ymd] => 2025-03-30 06:01:06 [RateCDR] => 1 ) [2025-03-30 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:01:06' and `end` < '2025-03-30 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:01:18] Production.INFO: count ==416 [2025-03-30 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:01:06 - End Time 2025-03-30 06:01:06 [2025-03-30 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794206', 'tblTempUsageDetail_20' ) start [2025-03-30 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794206', 'tblTempUsageDetail_20' ) end [2025-03-30 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794206', 'tblTempVendorCDR_20' ) start [2025-03-30 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794206', 'tblTempVendorCDR_20' ) end [2025-03-30 06:01:19] Production.INFO: ProcessCDR(1,14794206,1,1,2) [2025-03-30 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794206', 'tblTempUsageDetail_20' ) start [2025-03-30 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794206', 'tblTempUsageDetail_20' ) end [2025-03-30 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:01:22] Production.INFO: ==27641== Releasing lock... [2025-03-30 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:02:05 [end_date_ymd] => 2025-03-30 06:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:02:05' and `end` < '2025-03-30 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-03-30 06:02:17] Production.INFO: count ==413 [2025-03-30 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:02:05 - End Time 2025-03-30 06:02:05 [2025-03-30 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794211', 'tblTempUsageDetail_20' ) start [2025-03-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794211', 'tblTempUsageDetail_20' ) end [2025-03-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794211', 'tblTempVendorCDR_20' ) start [2025-03-30 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794211', 'tblTempVendorCDR_20' ) end [2025-03-30 06:02:18] Production.INFO: ProcessCDR(1,14794211,1,1,2) [2025-03-30 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794211', 'tblTempUsageDetail_20' ) start [2025-03-30 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794211', 'tblTempUsageDetail_20' ) end [2025-03-30 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:02:23] Production.INFO: ==27726== Releasing lock... [2025-03-30 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:02:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:03:05 [end_date_ymd] => 2025-03-30 06:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:03:05' and `end` < '2025-03-30 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-03-30 06:03:18] Production.INFO: count ==413 [2025-03-30 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:03:05 - End Time 2025-03-30 06:03:05 [2025-03-30 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794216', 'tblTempUsageDetail_20' ) start [2025-03-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794216', 'tblTempUsageDetail_20' ) end [2025-03-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794216', 'tblTempVendorCDR_20' ) start [2025-03-30 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794216', 'tblTempVendorCDR_20' ) end [2025-03-30 06:03:18] Production.INFO: ProcessCDR(1,14794216,1,1,2) [2025-03-30 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794216', 'tblTempUsageDetail_20' ) start [2025-03-30 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794216', 'tblTempUsageDetail_20' ) end [2025-03-30 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:03:21] Production.INFO: ==27820== Releasing lock... [2025-03-30 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:04:05 [end_date_ymd] => 2025-03-30 06:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:04:05' and `end` < '2025-03-30 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-03-30 06:04:17] Production.INFO: count ==413 [2025-03-30 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:04:05 - End Time 2025-03-30 06:04:05 [2025-03-30 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794221', 'tblTempUsageDetail_20' ) start [2025-03-30 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794221', 'tblTempUsageDetail_20' ) end [2025-03-30 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794221', 'tblTempVendorCDR_20' ) start [2025-03-30 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794221', 'tblTempVendorCDR_20' ) end [2025-03-30 06:04:17] Production.INFO: ProcessCDR(1,14794221,1,1,2) [2025-03-30 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794221', 'tblTempUsageDetail_20' ) start [2025-03-30 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794221', 'tblTempUsageDetail_20' ) end [2025-03-30 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:04:21] Production.INFO: ==27944== Releasing lock... [2025-03-30 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:05:05 [end_date_ymd] => 2025-03-30 06:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:05:05' and `end` < '2025-03-30 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:05:18] Production.INFO: count ==413 [2025-03-30 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:05:05 - End Time 2025-03-30 06:05:05 [2025-03-30 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794226', 'tblTempUsageDetail_20' ) start [2025-03-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794226', 'tblTempUsageDetail_20' ) end [2025-03-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794226', 'tblTempVendorCDR_20' ) start [2025-03-30 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794226', 'tblTempVendorCDR_20' ) end [2025-03-30 06:05:18] Production.INFO: ProcessCDR(1,14794226,1,1,2) [2025-03-30 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794226', 'tblTempUsageDetail_20' ) start [2025-03-30 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794226', 'tblTempUsageDetail_20' ) end [2025-03-30 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:05:21] Production.INFO: ==28031== Releasing lock... [2025-03-30 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:06:06 [end_date_ymd] => 2025-03-30 06:06:06 [RateCDR] => 1 ) [2025-03-30 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:06:06' and `end` < '2025-03-30 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:06:18] Production.INFO: count ==409 [2025-03-30 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:06:06 - End Time 2025-03-30 06:06:06 [2025-03-30 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794231', 'tblTempUsageDetail_20' ) start [2025-03-30 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794231', 'tblTempUsageDetail_20' ) end [2025-03-30 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794231', 'tblTempVendorCDR_20' ) start [2025-03-30 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794231', 'tblTempVendorCDR_20' ) end [2025-03-30 06:06:18] Production.INFO: ProcessCDR(1,14794231,1,1,2) [2025-03-30 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794231', 'tblTempUsageDetail_20' ) start [2025-03-30 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794231', 'tblTempUsageDetail_20' ) end [2025-03-30 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:06:21] Production.INFO: ==28117== Releasing lock... [2025-03-30 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:07:05 [end_date_ymd] => 2025-03-30 06:07:05 [RateCDR] => 1 ) [2025-03-30 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:07:05' and `end` < '2025-03-30 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:07:18] Production.INFO: count ==409 [2025-03-30 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:07:05 - End Time 2025-03-30 06:07:05 [2025-03-30 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794236', 'tblTempUsageDetail_20' ) start [2025-03-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794236', 'tblTempUsageDetail_20' ) end [2025-03-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794236', 'tblTempVendorCDR_20' ) start [2025-03-30 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794236', 'tblTempVendorCDR_20' ) end [2025-03-30 06:07:18] Production.INFO: ProcessCDR(1,14794236,1,1,2) [2025-03-30 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794236', 'tblTempUsageDetail_20' ) start [2025-03-30 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794236', 'tblTempUsageDetail_20' ) end [2025-03-30 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:07:21] Production.INFO: ==28199== Releasing lock... [2025-03-30 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:08:05 [end_date_ymd] => 2025-03-30 06:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:08:05' and `end` < '2025-03-30 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-03-30 06:08:18] Production.INFO: count ==408 [2025-03-30 06:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:08:05 - End Time 2025-03-30 06:08:05 [2025-03-30 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794241', 'tblTempUsageDetail_20' ) start [2025-03-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794241', 'tblTempUsageDetail_20' ) end [2025-03-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794241', 'tblTempVendorCDR_20' ) start [2025-03-30 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794241', 'tblTempVendorCDR_20' ) end [2025-03-30 06:08:18] Production.INFO: ProcessCDR(1,14794241,1,1,2) [2025-03-30 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794241', 'tblTempUsageDetail_20' ) start [2025-03-30 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794241', 'tblTempUsageDetail_20' ) end [2025-03-30 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:08:21] Production.INFO: ==28288== Releasing lock... [2025-03-30 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:09:05 [end_date_ymd] => 2025-03-30 06:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:09:05' and `end` < '2025-03-30 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-03-30 06:09:17] Production.INFO: count ==404 [2025-03-30 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:09:05 - End Time 2025-03-30 06:09:05 [2025-03-30 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794246', 'tblTempUsageDetail_20' ) start [2025-03-30 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794246', 'tblTempUsageDetail_20' ) end [2025-03-30 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794246', 'tblTempVendorCDR_20' ) start [2025-03-30 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794246', 'tblTempVendorCDR_20' ) end [2025-03-30 06:09:17] Production.INFO: ProcessCDR(1,14794246,1,1,2) [2025-03-30 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794246', 'tblTempUsageDetail_20' ) start [2025-03-30 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794246', 'tblTempUsageDetail_20' ) end [2025-03-30 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:09:21] Production.INFO: ==28374== Releasing lock... [2025-03-30 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:10:06 [end_date_ymd] => 2025-03-30 06:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:10:06' and `end` < '2025-03-30 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-03-30 06:10:19] Production.INFO: count ==400 [2025-03-30 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:10:06 - End Time 2025-03-30 06:10:06 [2025-03-30 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794252', 'tblTempUsageDetail_20' ) start [2025-03-30 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794252', 'tblTempUsageDetail_20' ) end [2025-03-30 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794252', 'tblTempVendorCDR_20' ) start [2025-03-30 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794252', 'tblTempVendorCDR_20' ) end [2025-03-30 06:10:19] Production.INFO: ProcessCDR(1,14794252,1,1,2) [2025-03-30 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794252', 'tblTempUsageDetail_20' ) start [2025-03-30 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794252', 'tblTempUsageDetail_20' ) end [2025-03-30 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:10:22] Production.INFO: ==28462== Releasing lock... [2025-03-30 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:11:05 [end_date_ymd] => 2025-03-30 06:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:11:05' and `end` < '2025-03-30 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-03-30 06:11:18] Production.INFO: count ==400 [2025-03-30 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:11:05 - End Time 2025-03-30 06:11:05 [2025-03-30 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794257', 'tblTempUsageDetail_20' ) start [2025-03-30 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794257', 'tblTempUsageDetail_20' ) end [2025-03-30 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794257', 'tblTempVendorCDR_20' ) start [2025-03-30 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794257', 'tblTempVendorCDR_20' ) end [2025-03-30 06:11:18] Production.INFO: ProcessCDR(1,14794257,1,1,2) [2025-03-30 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794257', 'tblTempUsageDetail_20' ) start [2025-03-30 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794257', 'tblTempUsageDetail_20' ) end [2025-03-30 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:11:21] Production.INFO: ==28548== Releasing lock... [2025-03-30 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:12:06 [end_date_ymd] => 2025-03-30 06:12:06 [RateCDR] => 1 ) [2025-03-30 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:12:06' and `end` < '2025-03-30 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:12:18] Production.INFO: count ==400 [2025-03-30 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:12:06 - End Time 2025-03-30 06:12:06 [2025-03-30 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794262', 'tblTempUsageDetail_20' ) start [2025-03-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794262', 'tblTempUsageDetail_20' ) end [2025-03-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794262', 'tblTempVendorCDR_20' ) start [2025-03-30 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794262', 'tblTempVendorCDR_20' ) end [2025-03-30 06:12:18] Production.INFO: ProcessCDR(1,14794262,1,1,2) [2025-03-30 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794262', 'tblTempUsageDetail_20' ) start [2025-03-30 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794262', 'tblTempUsageDetail_20' ) end [2025-03-30 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:12:22] Production.INFO: ==28642== Releasing lock... [2025-03-30 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:13:05 [end_date_ymd] => 2025-03-30 06:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:13:05' and `end` < '2025-03-30 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-03-30 06:13:18] Production.INFO: count ==400 [2025-03-30 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:13:05 - End Time 2025-03-30 06:13:05 [2025-03-30 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794267', 'tblTempUsageDetail_20' ) start [2025-03-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794267', 'tblTempUsageDetail_20' ) end [2025-03-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794267', 'tblTempVendorCDR_20' ) start [2025-03-30 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794267', 'tblTempVendorCDR_20' ) end [2025-03-30 06:13:18] Production.INFO: ProcessCDR(1,14794267,1,1,2) [2025-03-30 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794267', 'tblTempUsageDetail_20' ) start [2025-03-30 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794267', 'tblTempUsageDetail_20' ) end [2025-03-30 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:13:21] Production.INFO: ==28729== Releasing lock... [2025-03-30 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:14:05 [end_date_ymd] => 2025-03-30 06:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:14:05' and `end` < '2025-03-30 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-03-30 06:14:18] Production.INFO: count ==393 [2025-03-30 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:14:05 - End Time 2025-03-30 06:14:05 [2025-03-30 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794272', 'tblTempUsageDetail_20' ) start [2025-03-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794272', 'tblTempUsageDetail_20' ) end [2025-03-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794272', 'tblTempVendorCDR_20' ) start [2025-03-30 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794272', 'tblTempVendorCDR_20' ) end [2025-03-30 06:14:18] Production.INFO: ProcessCDR(1,14794272,1,1,2) [2025-03-30 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794272', 'tblTempUsageDetail_20' ) start [2025-03-30 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794272', 'tblTempUsageDetail_20' ) end [2025-03-30 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:14:21] Production.INFO: ==28810== Releasing lock... [2025-03-30 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:15:05 [end_date_ymd] => 2025-03-30 06:15:05 [RateCDR] => 1 ) [2025-03-30 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:15:05' and `end` < '2025-03-30 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:15:17] Production.INFO: count ==392 [2025-03-30 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:15:05 - End Time 2025-03-30 06:15:05 [2025-03-30 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794277', 'tblTempUsageDetail_20' ) start [2025-03-30 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794277', 'tblTempUsageDetail_20' ) end [2025-03-30 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794277', 'tblTempVendorCDR_20' ) start [2025-03-30 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794277', 'tblTempVendorCDR_20' ) end [2025-03-30 06:15:18] Production.INFO: ProcessCDR(1,14794277,1,1,2) [2025-03-30 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794277', 'tblTempUsageDetail_20' ) start [2025-03-30 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794277', 'tblTempUsageDetail_20' ) end [2025-03-30 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:15:21] Production.INFO: ==28907== Releasing lock... [2025-03-30 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:16:05 [end_date_ymd] => 2025-03-30 06:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:16:05' and `end` < '2025-03-30 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-03-30 06:16:18] Production.INFO: count ==392 [2025-03-30 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:16:05 - End Time 2025-03-30 06:16:05 [2025-03-30 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794282', 'tblTempUsageDetail_20' ) start [2025-03-30 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794282', 'tblTempUsageDetail_20' ) end [2025-03-30 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794282', 'tblTempVendorCDR_20' ) start [2025-03-30 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794282', 'tblTempVendorCDR_20' ) end [2025-03-30 06:16:18] Production.INFO: ProcessCDR(1,14794282,1,1,2) [2025-03-30 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794282', 'tblTempUsageDetail_20' ) start [2025-03-30 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794282', 'tblTempUsageDetail_20' ) end [2025-03-30 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:16:21] Production.INFO: ==28986== Releasing lock... [2025-03-30 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:17:05 [end_date_ymd] => 2025-03-30 06:17:05 [RateCDR] => 1 ) [2025-03-30 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:17:05' and `end` < '2025-03-30 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:17:18] Production.INFO: count ==396 [2025-03-30 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:17:05 - End Time 2025-03-30 06:17:05 [2025-03-30 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794287', 'tblTempUsageDetail_20' ) start [2025-03-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794287', 'tblTempUsageDetail_20' ) end [2025-03-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794287', 'tblTempVendorCDR_20' ) start [2025-03-30 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794287', 'tblTempVendorCDR_20' ) end [2025-03-30 06:17:18] Production.INFO: ProcessCDR(1,14794287,1,1,2) [2025-03-30 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794287', 'tblTempUsageDetail_20' ) start [2025-03-30 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794287', 'tblTempUsageDetail_20' ) end [2025-03-30 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:17:21] Production.INFO: ==29065== Releasing lock... [2025-03-30 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:18:06 [end_date_ymd] => 2025-03-30 06:18:06 [RateCDR] => 1 ) [2025-03-30 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:18:06' and `end` < '2025-03-30 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:18:18] Production.INFO: count ==396 [2025-03-30 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:18:06 - End Time 2025-03-30 06:18:06 [2025-03-30 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794292', 'tblTempUsageDetail_20' ) start [2025-03-30 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794292', 'tblTempUsageDetail_20' ) end [2025-03-30 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794292', 'tblTempVendorCDR_20' ) start [2025-03-30 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794292', 'tblTempVendorCDR_20' ) end [2025-03-30 06:18:18] Production.INFO: ProcessCDR(1,14794292,1,1,2) [2025-03-30 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794292', 'tblTempUsageDetail_20' ) start [2025-03-30 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794292', 'tblTempUsageDetail_20' ) end [2025-03-30 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:18:22] Production.INFO: ==29142== Releasing lock... [2025-03-30 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:19:06 [end_date_ymd] => 2025-03-30 06:19:06 [RateCDR] => 1 ) [2025-03-30 06: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-03-30 03:19:06' and `end` < '2025-03-30 06: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-03-30 06:19:18] Production.INFO: count ==379 [2025-03-30 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:19:06 - End Time 2025-03-30 06:19:06 [2025-03-30 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794297', 'tblTempUsageDetail_20' ) start [2025-03-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794297', 'tblTempUsageDetail_20' ) end [2025-03-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794297', 'tblTempVendorCDR_20' ) start [2025-03-30 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794297', 'tblTempVendorCDR_20' ) end [2025-03-30 06:19:18] Production.INFO: ProcessCDR(1,14794297,1,1,2) [2025-03-30 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794297', 'tblTempUsageDetail_20' ) start [2025-03-30 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794297', 'tblTempUsageDetail_20' ) end [2025-03-30 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:19:22] Production.INFO: ==29219== Releasing lock... [2025-03-30 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:20:06 [end_date_ymd] => 2025-03-30 06:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:20:06' and `end` < '2025-03-30 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-03-30 06:20:19] Production.INFO: count ==393 [2025-03-30 06:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:20:06 - End Time 2025-03-30 06:20:06 [2025-03-30 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794303', 'tblTempUsageDetail_20' ) start [2025-03-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794303', 'tblTempUsageDetail_20' ) end [2025-03-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794303', 'tblTempVendorCDR_20' ) start [2025-03-30 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794303', 'tblTempVendorCDR_20' ) end [2025-03-30 06:20:19] Production.INFO: ProcessCDR(1,14794303,1,1,2) [2025-03-30 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794303', 'tblTempUsageDetail_20' ) start [2025-03-30 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794303', 'tblTempUsageDetail_20' ) end [2025-03-30 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:20:23] Production.INFO: ==29335== Releasing lock... [2025-03-30 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:21:05 [end_date_ymd] => 2025-03-30 06:21:05 [RateCDR] => 1 ) [2025-03-30 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:21:05' and `end` < '2025-03-30 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:21:18] Production.INFO: count ==393 [2025-03-30 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:21:05 - End Time 2025-03-30 06:21:05 [2025-03-30 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794308', 'tblTempUsageDetail_20' ) start [2025-03-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794308', 'tblTempUsageDetail_20' ) end [2025-03-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794308', 'tblTempVendorCDR_20' ) start [2025-03-30 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794308', 'tblTempVendorCDR_20' ) end [2025-03-30 06:21:18] Production.INFO: ProcessCDR(1,14794308,1,1,2) [2025-03-30 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794308', 'tblTempUsageDetail_20' ) start [2025-03-30 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794308', 'tblTempUsageDetail_20' ) end [2025-03-30 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:21:21] Production.INFO: ==29423== Releasing lock... [2025-03-30 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:22:05 [end_date_ymd] => 2025-03-30 06:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:22:05' and `end` < '2025-03-30 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-03-30 06:22:18] Production.INFO: count ==396 [2025-03-30 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:22:05 - End Time 2025-03-30 06:22:05 [2025-03-30 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794313', 'tblTempUsageDetail_20' ) start [2025-03-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794313', 'tblTempUsageDetail_20' ) end [2025-03-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794313', 'tblTempVendorCDR_20' ) start [2025-03-30 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794313', 'tblTempVendorCDR_20' ) end [2025-03-30 06:22:18] Production.INFO: ProcessCDR(1,14794313,1,1,2) [2025-03-30 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794313', 'tblTempUsageDetail_20' ) start [2025-03-30 06:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794313', 'tblTempUsageDetail_20' ) end [2025-03-30 06:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:22:24] Production.INFO: ==29505== Releasing lock... [2025-03-30 06:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:22:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:23:05 [end_date_ymd] => 2025-03-30 06:23:05 [RateCDR] => 1 ) [2025-03-30 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:23:05' and `end` < '2025-03-30 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:23:17] Production.INFO: count ==396 [2025-03-30 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:23:05 - End Time 2025-03-30 06:23:05 [2025-03-30 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794318', 'tblTempUsageDetail_20' ) start [2025-03-30 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794318', 'tblTempUsageDetail_20' ) end [2025-03-30 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794318', 'tblTempVendorCDR_20' ) start [2025-03-30 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794318', 'tblTempVendorCDR_20' ) end [2025-03-30 06:23:17] Production.INFO: ProcessCDR(1,14794318,1,1,2) [2025-03-30 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794318', 'tblTempUsageDetail_20' ) start [2025-03-30 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794318', 'tblTempUsageDetail_20' ) end [2025-03-30 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:23:21] Production.INFO: ==29593== Releasing lock... [2025-03-30 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:24:06 [end_date_ymd] => 2025-03-30 06:24:06 [RateCDR] => 1 ) [2025-03-30 06: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-03-30 03:24:06' and `end` < '2025-03-30 06: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-03-30 06:24:19] Production.INFO: count ==406 [2025-03-30 06:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:24:06 - End Time 2025-03-30 06:24:06 [2025-03-30 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794323', 'tblTempUsageDetail_20' ) start [2025-03-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794323', 'tblTempUsageDetail_20' ) end [2025-03-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794323', 'tblTempVendorCDR_20' ) start [2025-03-30 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794323', 'tblTempVendorCDR_20' ) end [2025-03-30 06:24:19] Production.INFO: ProcessCDR(1,14794323,1,1,2) [2025-03-30 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794323', 'tblTempUsageDetail_20' ) start [2025-03-30 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794323', 'tblTempUsageDetail_20' ) end [2025-03-30 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:24:22] Production.INFO: ==29670== Releasing lock... [2025-03-30 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:25:05 [end_date_ymd] => 2025-03-30 06:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:25:05' and `end` < '2025-03-30 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-03-30 06:25:17] Production.INFO: count ==406 [2025-03-30 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:25:05 - End Time 2025-03-30 06:25:05 [2025-03-30 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794328', 'tblTempUsageDetail_20' ) start [2025-03-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794328', 'tblTempUsageDetail_20' ) end [2025-03-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794328', 'tblTempVendorCDR_20' ) start [2025-03-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794328', 'tblTempVendorCDR_20' ) end [2025-03-30 06:25:17] Production.INFO: ProcessCDR(1,14794328,1,1,2) [2025-03-30 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794328', 'tblTempUsageDetail_20' ) start [2025-03-30 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794328', 'tblTempUsageDetail_20' ) end [2025-03-30 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:25:21] Production.INFO: ==29746== Releasing lock... [2025-03-30 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:26:05 [end_date_ymd] => 2025-03-30 06:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:26:05' and `end` < '2025-03-30 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-03-30 06:26:18] Production.INFO: count ==409 [2025-03-30 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:26:05 - End Time 2025-03-30 06:26:05 [2025-03-30 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794333', 'tblTempUsageDetail_20' ) start [2025-03-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794333', 'tblTempUsageDetail_20' ) end [2025-03-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794333', 'tblTempVendorCDR_20' ) start [2025-03-30 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794333', 'tblTempVendorCDR_20' ) end [2025-03-30 06:26:18] Production.INFO: ProcessCDR(1,14794333,1,1,2) [2025-03-30 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794333', 'tblTempUsageDetail_20' ) start [2025-03-30 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794333', 'tblTempUsageDetail_20' ) end [2025-03-30 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:26:22] Production.INFO: ==29824== Releasing lock... [2025-03-30 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:27:05 [end_date_ymd] => 2025-03-30 06:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:27:05' and `end` < '2025-03-30 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-03-30 06:27:18] Production.INFO: count ==405 [2025-03-30 06:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:27:05 - End Time 2025-03-30 06:27:05 [2025-03-30 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794338', 'tblTempUsageDetail_20' ) start [2025-03-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794338', 'tblTempUsageDetail_20' ) end [2025-03-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794338', 'tblTempVendorCDR_20' ) start [2025-03-30 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794338', 'tblTempVendorCDR_20' ) end [2025-03-30 06:27:18] Production.INFO: ProcessCDR(1,14794338,1,1,2) [2025-03-30 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794338', 'tblTempUsageDetail_20' ) start [2025-03-30 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794338', 'tblTempUsageDetail_20' ) end [2025-03-30 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:27:21] Production.INFO: ==29904== Releasing lock... [2025-03-30 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:28:05 [end_date_ymd] => 2025-03-30 06:28:05 [RateCDR] => 1 ) [2025-03-30 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:28:05' and `end` < '2025-03-30 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:28:18] Production.INFO: count ==402 [2025-03-30 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:28:05 - End Time 2025-03-30 06:28:05 [2025-03-30 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794343', 'tblTempUsageDetail_20' ) start [2025-03-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794343', 'tblTempUsageDetail_20' ) end [2025-03-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794343', 'tblTempVendorCDR_20' ) start [2025-03-30 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794343', 'tblTempVendorCDR_20' ) end [2025-03-30 06:28:18] Production.INFO: ProcessCDR(1,14794343,1,1,2) [2025-03-30 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794343', 'tblTempUsageDetail_20' ) start [2025-03-30 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794343', 'tblTempUsageDetail_20' ) end [2025-03-30 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:28:22] Production.INFO: ==29981== Releasing lock... [2025-03-30 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:28:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:29:05 [end_date_ymd] => 2025-03-30 06:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:29:05' and `end` < '2025-03-30 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-03-30 06:29:18] Production.INFO: count ==402 [2025-03-30 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:29:05 - End Time 2025-03-30 06:29:05 [2025-03-30 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794348', 'tblTempUsageDetail_20' ) start [2025-03-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794348', 'tblTempUsageDetail_20' ) end [2025-03-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794348', 'tblTempVendorCDR_20' ) start [2025-03-30 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794348', 'tblTempVendorCDR_20' ) end [2025-03-30 06:29:18] Production.INFO: ProcessCDR(1,14794348,1,1,2) [2025-03-30 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794348', 'tblTempUsageDetail_20' ) start [2025-03-30 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794348', 'tblTempUsageDetail_20' ) end [2025-03-30 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:29:21] Production.INFO: ==30054== Releasing lock... [2025-03-30 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:29:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:30:06 [end_date_ymd] => 2025-03-30 06:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:30:06' and `end` < '2025-03-30 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-03-30 06:30:19] Production.INFO: count ==408 [2025-03-30 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:30:06 - End Time 2025-03-30 06:30:06 [2025-03-30 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794354', 'tblTempUsageDetail_20' ) start [2025-03-30 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794354', 'tblTempUsageDetail_20' ) end [2025-03-30 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794354', 'tblTempVendorCDR_20' ) start [2025-03-30 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794354', 'tblTempVendorCDR_20' ) end [2025-03-30 06:30:19] Production.INFO: ProcessCDR(1,14794354,1,1,2) [2025-03-30 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794354', 'tblTempUsageDetail_20' ) start [2025-03-30 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794354', 'tblTempUsageDetail_20' ) end [2025-03-30 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:30:22] Production.INFO: ==30133== Releasing lock... [2025-03-30 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:30:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:31:05 [end_date_ymd] => 2025-03-30 06:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:31:05' and `end` < '2025-03-30 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-03-30 06:31:18] Production.INFO: count ==408 [2025-03-30 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:31:05 - End Time 2025-03-30 06:31:05 [2025-03-30 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794359', 'tblTempUsageDetail_20' ) start [2025-03-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794359', 'tblTempUsageDetail_20' ) end [2025-03-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794359', 'tblTempVendorCDR_20' ) start [2025-03-30 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794359', 'tblTempVendorCDR_20' ) end [2025-03-30 06:31:18] Production.INFO: ProcessCDR(1,14794359,1,1,2) [2025-03-30 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794359', 'tblTempUsageDetail_20' ) start [2025-03-30 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794359', 'tblTempUsageDetail_20' ) end [2025-03-30 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:31:21] Production.INFO: ==30210== Releasing lock... [2025-03-30 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:32:05 [end_date_ymd] => 2025-03-30 06:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:32:05' and `end` < '2025-03-30 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-03-30 06:32:17] Production.INFO: count ==405 [2025-03-30 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:32:05 - End Time 2025-03-30 06:32:05 [2025-03-30 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794364', 'tblTempUsageDetail_20' ) start [2025-03-30 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794364', 'tblTempUsageDetail_20' ) end [2025-03-30 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794364', 'tblTempVendorCDR_20' ) start [2025-03-30 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794364', 'tblTempVendorCDR_20' ) end [2025-03-30 06:32:18] Production.INFO: ProcessCDR(1,14794364,1,1,2) [2025-03-30 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794364', 'tblTempUsageDetail_20' ) start [2025-03-30 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794364', 'tblTempUsageDetail_20' ) end [2025-03-30 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:32:21] Production.INFO: ==30285== Releasing lock... [2025-03-30 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:33:06 [end_date_ymd] => 2025-03-30 06:33:06 [RateCDR] => 1 ) [2025-03-30 06:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:33:06' and `end` < '2025-03-30 06:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:33:18] Production.INFO: count ==404 [2025-03-30 06:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:33:06 - End Time 2025-03-30 06:33:06 [2025-03-30 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794369', 'tblTempUsageDetail_20' ) start [2025-03-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794369', 'tblTempUsageDetail_20' ) end [2025-03-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794369', 'tblTempVendorCDR_20' ) start [2025-03-30 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794369', 'tblTempVendorCDR_20' ) end [2025-03-30 06:33:19] Production.INFO: ProcessCDR(1,14794369,1,1,2) [2025-03-30 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794369', 'tblTempUsageDetail_20' ) start [2025-03-30 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794369', 'tblTempUsageDetail_20' ) end [2025-03-30 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:33:22] Production.INFO: ==30362== Releasing lock... [2025-03-30 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:34:05 [end_date_ymd] => 2025-03-30 06:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:34:05' and `end` < '2025-03-30 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-03-30 06:34:17] Production.INFO: count ==404 [2025-03-30 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:34:05 - End Time 2025-03-30 06:34:05 [2025-03-30 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794374', 'tblTempUsageDetail_20' ) start [2025-03-30 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794374', 'tblTempUsageDetail_20' ) end [2025-03-30 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794374', 'tblTempVendorCDR_20' ) start [2025-03-30 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794374', 'tblTempVendorCDR_20' ) end [2025-03-30 06:34:17] Production.INFO: ProcessCDR(1,14794374,1,1,2) [2025-03-30 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794374', 'tblTempUsageDetail_20' ) start [2025-03-30 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794374', 'tblTempUsageDetail_20' ) end [2025-03-30 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:34:21] Production.INFO: ==30446== Releasing lock... [2025-03-30 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:35:06 [end_date_ymd] => 2025-03-30 06:35:06 [RateCDR] => 1 ) [2025-03-30 06:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:35:06' and `end` < '2025-03-30 06:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:35:18] Production.INFO: count ==404 [2025-03-30 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:35:06 - End Time 2025-03-30 06:35:06 [2025-03-30 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794379', 'tblTempUsageDetail_20' ) start [2025-03-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794379', 'tblTempUsageDetail_20' ) end [2025-03-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794379', 'tblTempVendorCDR_20' ) start [2025-03-30 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794379', 'tblTempVendorCDR_20' ) end [2025-03-30 06:35:18] Production.INFO: ProcessCDR(1,14794379,1,1,2) [2025-03-30 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794379', 'tblTempUsageDetail_20' ) start [2025-03-30 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794379', 'tblTempUsageDetail_20' ) end [2025-03-30 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:35:22] Production.INFO: ==30564== Releasing lock... [2025-03-30 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:36:05 [end_date_ymd] => 2025-03-30 06:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:36:05' and `end` < '2025-03-30 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-03-30 06:36:18] Production.INFO: count ==404 [2025-03-30 06:36:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:36:05 - End Time 2025-03-30 06:36:05 [2025-03-30 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794384', 'tblTempUsageDetail_20' ) start [2025-03-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794384', 'tblTempUsageDetail_20' ) end [2025-03-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794384', 'tblTempVendorCDR_20' ) start [2025-03-30 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794384', 'tblTempVendorCDR_20' ) end [2025-03-30 06:36:18] Production.INFO: ProcessCDR(1,14794384,1,1,2) [2025-03-30 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794384', 'tblTempUsageDetail_20' ) start [2025-03-30 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794384', 'tblTempUsageDetail_20' ) end [2025-03-30 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:36:22] Production.INFO: ==30638== Releasing lock... [2025-03-30 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:37:06 [end_date_ymd] => 2025-03-30 06:37:06 [RateCDR] => 1 ) [2025-03-30 06:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:37:06' and `end` < '2025-03-30 06:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:37:19] Production.INFO: count ==404 [2025-03-30 06:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:37:06 - End Time 2025-03-30 06:37:06 [2025-03-30 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794389', 'tblTempUsageDetail_20' ) start [2025-03-30 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794389', 'tblTempUsageDetail_20' ) end [2025-03-30 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794389', 'tblTempVendorCDR_20' ) start [2025-03-30 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794389', 'tblTempVendorCDR_20' ) end [2025-03-30 06:37:19] Production.INFO: ProcessCDR(1,14794389,1,1,2) [2025-03-30 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794389', 'tblTempUsageDetail_20' ) start [2025-03-30 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794389', 'tblTempUsageDetail_20' ) end [2025-03-30 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:37:22] Production.INFO: ==30723== Releasing lock... [2025-03-30 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:38:05 [end_date_ymd] => 2025-03-30 06:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:38:05' and `end` < '2025-03-30 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-03-30 06:38:17] Production.INFO: count ==405 [2025-03-30 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:38:05 - End Time 2025-03-30 06:38:05 [2025-03-30 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794394', 'tblTempUsageDetail_20' ) start [2025-03-30 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794394', 'tblTempUsageDetail_20' ) end [2025-03-30 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794394', 'tblTempVendorCDR_20' ) start [2025-03-30 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794394', 'tblTempVendorCDR_20' ) end [2025-03-30 06:38:17] Production.INFO: ProcessCDR(1,14794394,1,1,2) [2025-03-30 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794394', 'tblTempUsageDetail_20' ) start [2025-03-30 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794394', 'tblTempUsageDetail_20' ) end [2025-03-30 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:38:22] Production.INFO: ==30811== Releasing lock... [2025-03-30 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:39:05 [end_date_ymd] => 2025-03-30 06:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:39:05' and `end` < '2025-03-30 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-03-30 06:39:17] Production.INFO: count ==405 [2025-03-30 06:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:39:05 - End Time 2025-03-30 06:39:05 [2025-03-30 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794399', 'tblTempUsageDetail_20' ) start [2025-03-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794399', 'tblTempUsageDetail_20' ) end [2025-03-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794399', 'tblTempVendorCDR_20' ) start [2025-03-30 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794399', 'tblTempVendorCDR_20' ) end [2025-03-30 06:39:18] Production.INFO: ProcessCDR(1,14794399,1,1,2) [2025-03-30 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794399', 'tblTempUsageDetail_20' ) start [2025-03-30 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794399', 'tblTempUsageDetail_20' ) end [2025-03-30 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:39:21] Production.INFO: ==30884== Releasing lock... [2025-03-30 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:40:06 [end_date_ymd] => 2025-03-30 06:40:06 [RateCDR] => 1 ) [2025-03-30 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:40:06' and `end` < '2025-03-30 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:40:18] Production.INFO: count ==405 [2025-03-30 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:40:06 - End Time 2025-03-30 06:40:06 [2025-03-30 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794405', 'tblTempUsageDetail_20' ) start [2025-03-30 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794405', 'tblTempUsageDetail_20' ) end [2025-03-30 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794405', 'tblTempVendorCDR_20' ) start [2025-03-30 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794405', 'tblTempVendorCDR_20' ) end [2025-03-30 06:40:18] Production.INFO: ProcessCDR(1,14794405,1,1,2) [2025-03-30 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794405', 'tblTempUsageDetail_20' ) start [2025-03-30 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794405', 'tblTempUsageDetail_20' ) end [2025-03-30 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:40:21] Production.INFO: ==30964== Releasing lock... [2025-03-30 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:41:06 [end_date_ymd] => 2025-03-30 06:41:06 [RateCDR] => 1 ) [2025-03-30 06: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-03-30 03:41:06' and `end` < '2025-03-30 06: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-03-30 06:41:18] Production.INFO: count ==405 [2025-03-30 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:41:06 - End Time 2025-03-30 06:41:06 [2025-03-30 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794410', 'tblTempUsageDetail_20' ) start [2025-03-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794410', 'tblTempUsageDetail_20' ) end [2025-03-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794410', 'tblTempVendorCDR_20' ) start [2025-03-30 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794410', 'tblTempVendorCDR_20' ) end [2025-03-30 06:41:18] Production.INFO: ProcessCDR(1,14794410,1,1,2) [2025-03-30 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794410', 'tblTempUsageDetail_20' ) start [2025-03-30 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794410', 'tblTempUsageDetail_20' ) end [2025-03-30 06:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:41:22] Production.INFO: ==31043== Releasing lock... [2025-03-30 06:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:41:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:42:05 [end_date_ymd] => 2025-03-30 06:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:42:05' and `end` < '2025-03-30 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-03-30 06:42:18] Production.INFO: count ==405 [2025-03-30 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:42:05 - End Time 2025-03-30 06:42:05 [2025-03-30 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794415', 'tblTempUsageDetail_20' ) start [2025-03-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794415', 'tblTempUsageDetail_20' ) end [2025-03-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794415', 'tblTempVendorCDR_20' ) start [2025-03-30 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794415', 'tblTempVendorCDR_20' ) end [2025-03-30 06:42:18] Production.INFO: ProcessCDR(1,14794415,1,1,2) [2025-03-30 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794415', 'tblTempUsageDetail_20' ) start [2025-03-30 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794415', 'tblTempUsageDetail_20' ) end [2025-03-30 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:42:21] Production.INFO: ==31119== Releasing lock... [2025-03-30 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:43:05 [end_date_ymd] => 2025-03-30 06:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:43:05' and `end` < '2025-03-30 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-03-30 06:43:18] Production.INFO: count ==407 [2025-03-30 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:43:05 - End Time 2025-03-30 06:43:05 [2025-03-30 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794420', 'tblTempUsageDetail_20' ) start [2025-03-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794420', 'tblTempUsageDetail_20' ) end [2025-03-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794420', 'tblTempVendorCDR_20' ) start [2025-03-30 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794420', 'tblTempVendorCDR_20' ) end [2025-03-30 06:43:18] Production.INFO: ProcessCDR(1,14794420,1,1,2) [2025-03-30 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794420', 'tblTempUsageDetail_20' ) start [2025-03-30 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794420', 'tblTempUsageDetail_20' ) end [2025-03-30 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:43:21] Production.INFO: ==31195== Releasing lock... [2025-03-30 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:44:05 [end_date_ymd] => 2025-03-30 06:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:44:05' and `end` < '2025-03-30 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-03-30 06:44:18] Production.INFO: count ==409 [2025-03-30 06:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:44:05 - End Time 2025-03-30 06:44:05 [2025-03-30 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794425', 'tblTempUsageDetail_20' ) start [2025-03-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794425', 'tblTempUsageDetail_20' ) end [2025-03-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794425', 'tblTempVendorCDR_20' ) start [2025-03-30 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794425', 'tblTempVendorCDR_20' ) end [2025-03-30 06:44:18] Production.INFO: ProcessCDR(1,14794425,1,1,2) [2025-03-30 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794425', 'tblTempUsageDetail_20' ) start [2025-03-30 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794425', 'tblTempUsageDetail_20' ) end [2025-03-30 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:44:21] Production.INFO: ==31267== Releasing lock... [2025-03-30 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:45:05 [end_date_ymd] => 2025-03-30 06:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:45:05' and `end` < '2025-03-30 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-03-30 06:45:17] Production.INFO: count ==413 [2025-03-30 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:45:05 - End Time 2025-03-30 06:45:05 [2025-03-30 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794430', 'tblTempUsageDetail_20' ) start [2025-03-30 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794430', 'tblTempUsageDetail_20' ) end [2025-03-30 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794430', 'tblTempVendorCDR_20' ) start [2025-03-30 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794430', 'tblTempVendorCDR_20' ) end [2025-03-30 06:45:17] Production.INFO: ProcessCDR(1,14794430,1,1,2) [2025-03-30 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794430', 'tblTempUsageDetail_20' ) start [2025-03-30 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794430', 'tblTempUsageDetail_20' ) end [2025-03-30 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:45:21] Production.INFO: ==31342== Releasing lock... [2025-03-30 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:46:05 [end_date_ymd] => 2025-03-30 06:46:05 [RateCDR] => 1 ) [2025-03-30 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:46:05' and `end` < '2025-03-30 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:46:18] Production.INFO: count ==413 [2025-03-30 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:46:05 - End Time 2025-03-30 06:46:05 [2025-03-30 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794435', 'tblTempUsageDetail_20' ) start [2025-03-30 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794435', 'tblTempUsageDetail_20' ) end [2025-03-30 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794435', 'tblTempVendorCDR_20' ) start [2025-03-30 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794435', 'tblTempVendorCDR_20' ) end [2025-03-30 06:46:18] Production.INFO: ProcessCDR(1,14794435,1,1,2) [2025-03-30 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794435', 'tblTempUsageDetail_20' ) start [2025-03-30 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794435', 'tblTempUsageDetail_20' ) end [2025-03-30 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:46:21] Production.INFO: ==31417== Releasing lock... [2025-03-30 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:47:05 [end_date_ymd] => 2025-03-30 06:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:47:05' and `end` < '2025-03-30 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-03-30 06:47:18] Production.INFO: count ==413 [2025-03-30 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:47:05 - End Time 2025-03-30 06:47:05 [2025-03-30 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794440', 'tblTempUsageDetail_20' ) start [2025-03-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794440', 'tblTempUsageDetail_20' ) end [2025-03-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794440', 'tblTempVendorCDR_20' ) start [2025-03-30 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794440', 'tblTempVendorCDR_20' ) end [2025-03-30 06:47:18] Production.INFO: ProcessCDR(1,14794440,1,1,2) [2025-03-30 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794440', 'tblTempUsageDetail_20' ) start [2025-03-30 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794440', 'tblTempUsageDetail_20' ) end [2025-03-30 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:47:21] Production.INFO: ==31490== Releasing lock... [2025-03-30 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:48:05 [end_date_ymd] => 2025-03-30 06:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:48:05' and `end` < '2025-03-30 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-03-30 06:48:18] Production.INFO: count ==413 [2025-03-30 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:48:05 - End Time 2025-03-30 06:48:05 [2025-03-30 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794445', 'tblTempUsageDetail_20' ) start [2025-03-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794445', 'tblTempUsageDetail_20' ) end [2025-03-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794445', 'tblTempVendorCDR_20' ) start [2025-03-30 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794445', 'tblTempVendorCDR_20' ) end [2025-03-30 06:48:18] Production.INFO: ProcessCDR(1,14794445,1,1,2) [2025-03-30 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794445', 'tblTempUsageDetail_20' ) start [2025-03-30 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794445', 'tblTempUsageDetail_20' ) end [2025-03-30 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:48:21] Production.INFO: ==31570== Releasing lock... [2025-03-30 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:49:05 [end_date_ymd] => 2025-03-30 06:49:05 [RateCDR] => 1 ) [2025-03-30 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:49:05' and `end` < '2025-03-30 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:49:17] Production.INFO: count ==413 [2025-03-30 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:49:05 - End Time 2025-03-30 06:49:05 [2025-03-30 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794450', 'tblTempUsageDetail_20' ) start [2025-03-30 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794450', 'tblTempUsageDetail_20' ) end [2025-03-30 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794450', 'tblTempVendorCDR_20' ) start [2025-03-30 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794450', 'tblTempVendorCDR_20' ) end [2025-03-30 06:49:17] Production.INFO: ProcessCDR(1,14794450,1,1,2) [2025-03-30 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794450', 'tblTempUsageDetail_20' ) start [2025-03-30 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794450', 'tblTempUsageDetail_20' ) end [2025-03-30 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:49:20] Production.INFO: ==31645== Releasing lock... [2025-03-30 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:49:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:50:07 [end_date_ymd] => 2025-03-30 06:50:07 [RateCDR] => 1 ) [2025-03-30 06:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:50:07' and `end` < '2025-03-30 06:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:50:19] Production.INFO: count ==392 [2025-03-30 06:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 03:50:07 - End Time 2025-03-30 06:50:07 [2025-03-30 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794456', 'tblTempUsageDetail_20' ) start [2025-03-30 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794456', 'tblTempUsageDetail_20' ) end [2025-03-30 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794456', 'tblTempVendorCDR_20' ) start [2025-03-30 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794456', 'tblTempVendorCDR_20' ) end [2025-03-30 06:50:19] Production.INFO: ProcessCDR(1,14794456,1,1,2) [2025-03-30 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794456', 'tblTempUsageDetail_20' ) start [2025-03-30 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794456', 'tblTempUsageDetail_20' ) end [2025-03-30 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:50:23] Production.INFO: ==31726== Releasing lock... [2025-03-30 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:50:23] Production.INFO: 32 MB #Memory Used# [2025-03-30 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:51:05 [end_date_ymd] => 2025-03-30 06:51:05 [RateCDR] => 1 ) [2025-03-30 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:51:05' and `end` < '2025-03-30 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:51:17] Production.INFO: count ==390 [2025-03-30 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:51:05 - End Time 2025-03-30 06:51:05 [2025-03-30 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794461', 'tblTempUsageDetail_20' ) start [2025-03-30 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794461', 'tblTempUsageDetail_20' ) end [2025-03-30 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794461', 'tblTempVendorCDR_20' ) start [2025-03-30 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794461', 'tblTempVendorCDR_20' ) end [2025-03-30 06:51:17] Production.INFO: ProcessCDR(1,14794461,1,1,2) [2025-03-30 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794461', 'tblTempUsageDetail_20' ) start [2025-03-30 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794461', 'tblTempUsageDetail_20' ) end [2025-03-30 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:51:21] Production.INFO: ==31838== Releasing lock... [2025-03-30 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:52:05 [end_date_ymd] => 2025-03-30 06:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:52:05' and `end` < '2025-03-30 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-03-30 06:52:18] Production.INFO: count ==390 [2025-03-30 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:52:05 - End Time 2025-03-30 06:52:05 [2025-03-30 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794466', 'tblTempUsageDetail_20' ) start [2025-03-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794466', 'tblTempUsageDetail_20' ) end [2025-03-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794466', 'tblTempVendorCDR_20' ) start [2025-03-30 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794466', 'tblTempVendorCDR_20' ) end [2025-03-30 06:52:18] Production.INFO: ProcessCDR(1,14794466,1,1,2) [2025-03-30 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794466', 'tblTempUsageDetail_20' ) start [2025-03-30 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794466', 'tblTempUsageDetail_20' ) end [2025-03-30 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:52:21] Production.INFO: ==31926== Releasing lock... [2025-03-30 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:53:05 [end_date_ymd] => 2025-03-30 06:53:05 [RateCDR] => 1 ) [2025-03-30 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:53:05' and `end` < '2025-03-30 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:53:18] Production.INFO: count ==390 [2025-03-30 06:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:53:05 - End Time 2025-03-30 06:53:05 [2025-03-30 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794471', 'tblTempUsageDetail_20' ) start [2025-03-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794471', 'tblTempUsageDetail_20' ) end [2025-03-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794471', 'tblTempVendorCDR_20' ) start [2025-03-30 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794471', 'tblTempVendorCDR_20' ) end [2025-03-30 06:53:18] Production.INFO: ProcessCDR(1,14794471,1,1,2) [2025-03-30 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794471', 'tblTempUsageDetail_20' ) start [2025-03-30 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794471', 'tblTempUsageDetail_20' ) end [2025-03-30 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:53:22] Production.INFO: ==32008== Releasing lock... [2025-03-30 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:53:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:54:05 [end_date_ymd] => 2025-03-30 06:54:05 [RateCDR] => 1 ) [2025-03-30 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:54:05' and `end` < '2025-03-30 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:54:18] Production.INFO: count ==386 [2025-03-30 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:54:05 - End Time 2025-03-30 06:54:05 [2025-03-30 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794476', 'tblTempUsageDetail_20' ) start [2025-03-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794476', 'tblTempUsageDetail_20' ) end [2025-03-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794476', 'tblTempVendorCDR_20' ) start [2025-03-30 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794476', 'tblTempVendorCDR_20' ) end [2025-03-30 06:54:18] Production.INFO: ProcessCDR(1,14794476,1,1,2) [2025-03-30 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794476', 'tblTempUsageDetail_20' ) start [2025-03-30 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794476', 'tblTempUsageDetail_20' ) end [2025-03-30 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:54:22] Production.INFO: ==32091== Releasing lock... [2025-03-30 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:55:06 [end_date_ymd] => 2025-03-30 06:55:06 [RateCDR] => 1 ) [2025-03-30 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:55:06' and `end` < '2025-03-30 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:55:18] Production.INFO: count ==386 [2025-03-30 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:55:06 - End Time 2025-03-30 06:55:06 [2025-03-30 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794481', 'tblTempUsageDetail_20' ) start [2025-03-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794481', 'tblTempUsageDetail_20' ) end [2025-03-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794481', 'tblTempVendorCDR_20' ) start [2025-03-30 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794481', 'tblTempVendorCDR_20' ) end [2025-03-30 06:55:18] Production.INFO: ProcessCDR(1,14794481,1,1,2) [2025-03-30 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794481', 'tblTempUsageDetail_20' ) start [2025-03-30 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794481', 'tblTempUsageDetail_20' ) end [2025-03-30 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:55:22] Production.INFO: ==32166== Releasing lock... [2025-03-30 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:56:05 [end_date_ymd] => 2025-03-30 06:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:56:05' and `end` < '2025-03-30 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-03-30 06:56:18] Production.INFO: count ==388 [2025-03-30 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:56:05 - End Time 2025-03-30 06:56:05 [2025-03-30 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794486', 'tblTempUsageDetail_20' ) start [2025-03-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794486', 'tblTempUsageDetail_20' ) end [2025-03-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794486', 'tblTempVendorCDR_20' ) start [2025-03-30 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794486', 'tblTempVendorCDR_20' ) end [2025-03-30 06:56:18] Production.INFO: ProcessCDR(1,14794486,1,1,2) [2025-03-30 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794486', 'tblTempUsageDetail_20' ) start [2025-03-30 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794486', 'tblTempUsageDetail_20' ) end [2025-03-30 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:56:21] Production.INFO: ==32240== Releasing lock... [2025-03-30 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:57:06 [end_date_ymd] => 2025-03-30 06:57:06 [RateCDR] => 1 ) [2025-03-30 06:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:57:06' and `end` < '2025-03-30 06: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-03-30 06:57:18] Production.INFO: count ==383 [2025-03-30 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:57:06 - End Time 2025-03-30 06:57:06 [2025-03-30 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794491', 'tblTempUsageDetail_20' ) start [2025-03-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794491', 'tblTempUsageDetail_20' ) end [2025-03-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794491', 'tblTempVendorCDR_20' ) start [2025-03-30 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794491', 'tblTempVendorCDR_20' ) end [2025-03-30 06:57:18] Production.INFO: ProcessCDR(1,14794491,1,1,2) [2025-03-30 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794491', 'tblTempUsageDetail_20' ) start [2025-03-30 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794491', 'tblTempUsageDetail_20' ) end [2025-03-30 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:57:22] Production.INFO: ==32316== Releasing lock... [2025-03-30 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:58:05 [end_date_ymd] => 2025-03-30 06:58:05 [RateCDR] => 1 ) [2025-03-30 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 03:58:05' and `end` < '2025-03-30 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 06:58:17] Production.INFO: count ==379 [2025-03-30 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-30 03:58:05 - End Time 2025-03-30 06:58:05 [2025-03-30 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794496', 'tblTempUsageDetail_20' ) start [2025-03-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794496', 'tblTempUsageDetail_20' ) end [2025-03-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794496', 'tblTempVendorCDR_20' ) start [2025-03-30 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794496', 'tblTempVendorCDR_20' ) end [2025-03-30 06:58:17] Production.INFO: ProcessCDR(1,14794496,1,1,2) [2025-03-30 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794496', 'tblTempUsageDetail_20' ) start [2025-03-30 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794496', 'tblTempUsageDetail_20' ) end [2025-03-30 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:58:21] Production.INFO: ==32388== Releasing lock... [2025-03-30 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:58:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 03:59:05 [end_date_ymd] => 2025-03-30 06:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 03:59:05' and `end` < '2025-03-30 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-03-30 06:59:18] Production.INFO: count ==379 [2025-03-30 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 03:59:05 - End Time 2025-03-30 06:59:05 [2025-03-30 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794501', 'tblTempUsageDetail_20' ) start [2025-03-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794501', 'tblTempUsageDetail_20' ) end [2025-03-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794501', 'tblTempVendorCDR_20' ) start [2025-03-30 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794501', 'tblTempVendorCDR_20' ) end [2025-03-30 06:59:18] Production.INFO: ProcessCDR(1,14794501,1,1,2) [2025-03-30 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794501', 'tblTempUsageDetail_20' ) start [2025-03-30 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794501', 'tblTempUsageDetail_20' ) end [2025-03-30 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 06:59:21] Production.INFO: ==32463== Releasing lock... [2025-03-30 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 06:59:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:00:05 [end_date_ymd] => 2025-03-30 07:00:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:00:05' and `end` < '2025-03-30 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-03-30 07:00:18] Production.INFO: count ==377 [2025-03-30 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:00:05 - End Time 2025-03-30 07:00:05 [2025-03-30 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794507', 'tblTempUsageDetail_20' ) start [2025-03-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794507', 'tblTempUsageDetail_20' ) end [2025-03-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794507', 'tblTempVendorCDR_20' ) start [2025-03-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794507', 'tblTempVendorCDR_20' ) end [2025-03-30 07:00:18] Production.INFO: ProcessCDR(1,14794507,1,1,2) [2025-03-30 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794507', 'tblTempUsageDetail_20' ) start [2025-03-30 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794507', 'tblTempUsageDetail_20' ) end [2025-03-30 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:00:22] Production.INFO: ==32539== Releasing lock... [2025-03-30 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:01:05 [end_date_ymd] => 2025-03-30 07:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:01:05' and `end` < '2025-03-30 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-03-30 07:01:18] Production.INFO: count ==377 [2025-03-30 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:01:05 - End Time 2025-03-30 07:01:05 [2025-03-30 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794512', 'tblTempUsageDetail_20' ) start [2025-03-30 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794512', 'tblTempUsageDetail_20' ) end [2025-03-30 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794512', 'tblTempVendorCDR_20' ) start [2025-03-30 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794512', 'tblTempVendorCDR_20' ) end [2025-03-30 07:01:18] Production.INFO: ProcessCDR(1,14794512,1,1,2) [2025-03-30 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794512', 'tblTempUsageDetail_20' ) start [2025-03-30 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794512', 'tblTempUsageDetail_20' ) end [2025-03-30 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:01:21] Production.INFO: ==32632== Releasing lock... [2025-03-30 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:02:06 [end_date_ymd] => 2025-03-30 07:02:06 [RateCDR] => 1 ) [2025-03-30 07: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-03-30 04:02:06' and `end` < '2025-03-30 07: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-03-30 07:02:19] Production.INFO: count ==377 [2025-03-30 07:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:02:06 - End Time 2025-03-30 07:02:06 [2025-03-30 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794517', 'tblTempUsageDetail_20' ) start [2025-03-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794517', 'tblTempUsageDetail_20' ) end [2025-03-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794517', 'tblTempVendorCDR_20' ) start [2025-03-30 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794517', 'tblTempVendorCDR_20' ) end [2025-03-30 07:02:19] Production.INFO: ProcessCDR(1,14794517,1,1,2) [2025-03-30 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794517', 'tblTempUsageDetail_20' ) start [2025-03-30 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794517', 'tblTempUsageDetail_20' ) end [2025-03-30 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:02:23] Production.INFO: ==327== Releasing lock... [2025-03-30 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:03:05 [end_date_ymd] => 2025-03-30 07:03:05 [RateCDR] => 1 ) [2025-03-30 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:03:05' and `end` < '2025-03-30 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:03:19] Production.INFO: count ==377 [2025-03-30 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:03:05 - End Time 2025-03-30 07:03:05 [2025-03-30 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794522', 'tblTempUsageDetail_20' ) start [2025-03-30 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794522', 'tblTempUsageDetail_20' ) end [2025-03-30 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794522', 'tblTempVendorCDR_20' ) start [2025-03-30 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794522', 'tblTempVendorCDR_20' ) end [2025-03-30 07:03:19] Production.INFO: ProcessCDR(1,14794522,1,1,2) [2025-03-30 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794522', 'tblTempUsageDetail_20' ) start [2025-03-30 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794522', 'tblTempUsageDetail_20' ) end [2025-03-30 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:03:23] Production.INFO: ==417== Releasing lock... [2025-03-30 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:03:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:04:06 [end_date_ymd] => 2025-03-30 07:04:06 [RateCDR] => 1 ) [2025-03-30 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:04:06' and `end` < '2025-03-30 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:04:19] Production.INFO: count ==375 [2025-03-30 07:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 04:04:06 - End Time 2025-03-30 07:04:06 [2025-03-30 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794527', 'tblTempUsageDetail_20' ) start [2025-03-30 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794527', 'tblTempUsageDetail_20' ) end [2025-03-30 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794527', 'tblTempVendorCDR_20' ) start [2025-03-30 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794527', 'tblTempVendorCDR_20' ) end [2025-03-30 07:04:20] Production.INFO: ProcessCDR(1,14794527,1,1,2) [2025-03-30 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794527', 'tblTempUsageDetail_20' ) start [2025-03-30 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794527', 'tblTempUsageDetail_20' ) end [2025-03-30 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:04:23] Production.INFO: ==495== Releasing lock... [2025-03-30 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:04:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:05:05 [end_date_ymd] => 2025-03-30 07:05:05 [RateCDR] => 1 ) [2025-03-30 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:05:05' and `end` < '2025-03-30 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:05:18] Production.INFO: count ==375 [2025-03-30 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:05:05 - End Time 2025-03-30 07:05:05 [2025-03-30 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794532', 'tblTempUsageDetail_20' ) start [2025-03-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794532', 'tblTempUsageDetail_20' ) end [2025-03-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794532', 'tblTempVendorCDR_20' ) start [2025-03-30 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794532', 'tblTempVendorCDR_20' ) end [2025-03-30 07:05:18] Production.INFO: ProcessCDR(1,14794532,1,1,2) [2025-03-30 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794532', 'tblTempUsageDetail_20' ) start [2025-03-30 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794532', 'tblTempUsageDetail_20' ) end [2025-03-30 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:05:24] Production.INFO: ==670== Releasing lock... [2025-03-30 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:05:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:06:05 [end_date_ymd] => 2025-03-30 07:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:06:05' and `end` < '2025-03-30 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-03-30 07:06:18] Production.INFO: count ==361 [2025-03-30 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:06:05 - End Time 2025-03-30 07:06:05 [2025-03-30 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794537', 'tblTempUsageDetail_20' ) start [2025-03-30 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794537', 'tblTempUsageDetail_20' ) end [2025-03-30 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794537', 'tblTempVendorCDR_20' ) start [2025-03-30 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794537', 'tblTempVendorCDR_20' ) end [2025-03-30 07:06:18] Production.INFO: ProcessCDR(1,14794537,1,1,2) [2025-03-30 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794537', 'tblTempUsageDetail_20' ) start [2025-03-30 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794537', 'tblTempUsageDetail_20' ) end [2025-03-30 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:06:22] Production.INFO: ==801== Releasing lock... [2025-03-30 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:07:05 [end_date_ymd] => 2025-03-30 07:07:05 [RateCDR] => 1 ) [2025-03-30 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:07:05' and `end` < '2025-03-30 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:07:18] Production.INFO: count ==356 [2025-03-30 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:07:05 - End Time 2025-03-30 07:07:05 [2025-03-30 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794542', 'tblTempUsageDetail_20' ) start [2025-03-30 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794542', 'tblTempUsageDetail_20' ) end [2025-03-30 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794542', 'tblTempVendorCDR_20' ) start [2025-03-30 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794542', 'tblTempVendorCDR_20' ) end [2025-03-30 07:07:18] Production.INFO: ProcessCDR(1,14794542,1,1,2) [2025-03-30 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794542', 'tblTempUsageDetail_20' ) start [2025-03-30 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794542', 'tblTempUsageDetail_20' ) end [2025-03-30 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:07:21] Production.INFO: ==881== Releasing lock... [2025-03-30 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:07:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:08:05 [end_date_ymd] => 2025-03-30 07:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:08:05' and `end` < '2025-03-30 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-03-30 07:08:19] Production.INFO: count ==356 [2025-03-30 07:08:20] Production.ERROR: pbx CDR StartTime 2025-03-30 04:08:05 - End Time 2025-03-30 07:08:05 [2025-03-30 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794547', 'tblTempUsageDetail_20' ) start [2025-03-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794547', 'tblTempUsageDetail_20' ) end [2025-03-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794547', 'tblTempVendorCDR_20' ) start [2025-03-30 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794547', 'tblTempVendorCDR_20' ) end [2025-03-30 07:08:20] Production.INFO: ProcessCDR(1,14794547,1,1,2) [2025-03-30 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794547', 'tblTempUsageDetail_20' ) start [2025-03-30 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794547', 'tblTempUsageDetail_20' ) end [2025-03-30 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:08:23] Production.INFO: ==1046== Releasing lock... [2025-03-30 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:08:23] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:09:05 [end_date_ymd] => 2025-03-30 07:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:09:05' and `end` < '2025-03-30 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-03-30 07:09:18] Production.INFO: count ==352 [2025-03-30 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:09:05 - End Time 2025-03-30 07:09:05 [2025-03-30 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794552', 'tblTempUsageDetail_20' ) start [2025-03-30 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794552', 'tblTempUsageDetail_20' ) end [2025-03-30 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794552', 'tblTempVendorCDR_20' ) start [2025-03-30 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794552', 'tblTempVendorCDR_20' ) end [2025-03-30 07:09:18] Production.INFO: ProcessCDR(1,14794552,1,1,2) [2025-03-30 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794552', 'tblTempUsageDetail_20' ) start [2025-03-30 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794552', 'tblTempUsageDetail_20' ) end [2025-03-30 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:09:21] Production.INFO: ==1118== Releasing lock... [2025-03-30 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:10:06 [end_date_ymd] => 2025-03-30 07:10:06 [RateCDR] => 1 ) [2025-03-30 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:10:06' and `end` < '2025-03-30 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:10:18] Production.INFO: count ==329 [2025-03-30 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:10:06 - End Time 2025-03-30 07:10:06 [2025-03-30 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794557', 'tblTempUsageDetail_20' ) start [2025-03-30 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794557', 'tblTempUsageDetail_20' ) end [2025-03-30 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794557', 'tblTempVendorCDR_20' ) start [2025-03-30 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794557', 'tblTempVendorCDR_20' ) end [2025-03-30 07:10:18] Production.INFO: ProcessCDR(1,14794557,1,1,2) [2025-03-30 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794557', 'tblTempUsageDetail_20' ) start [2025-03-30 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794557', 'tblTempUsageDetail_20' ) end [2025-03-30 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:10:22] Production.INFO: ==1201== Releasing lock... [2025-03-30 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:11:06 [end_date_ymd] => 2025-03-30 07:11:06 [RateCDR] => 1 ) [2025-03-30 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:11:06' and `end` < '2025-03-30 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:11:20] Production.INFO: count ==325 [2025-03-30 07:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 04:11:06 - End Time 2025-03-30 07:11:06 [2025-03-30 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794563', 'tblTempUsageDetail_20' ) start [2025-03-30 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794563', 'tblTempUsageDetail_20' ) end [2025-03-30 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794563', 'tblTempVendorCDR_20' ) start [2025-03-30 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794563', 'tblTempVendorCDR_20' ) end [2025-03-30 07:11:20] Production.INFO: ProcessCDR(1,14794563,1,1,2) [2025-03-30 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794563', 'tblTempUsageDetail_20' ) start [2025-03-30 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794563', 'tblTempUsageDetail_20' ) end [2025-03-30 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:11:23] Production.INFO: ==1294== Releasing lock... [2025-03-30 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:11:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:12:05 [end_date_ymd] => 2025-03-30 07:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:12:05' and `end` < '2025-03-30 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-03-30 07:12:18] Production.INFO: count ==299 [2025-03-30 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:12:05 - End Time 2025-03-30 07:12:05 [2025-03-30 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794568', 'tblTempUsageDetail_20' ) start [2025-03-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794568', 'tblTempUsageDetail_20' ) end [2025-03-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794568', 'tblTempVendorCDR_20' ) start [2025-03-30 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794568', 'tblTempVendorCDR_20' ) end [2025-03-30 07:12:18] Production.INFO: ProcessCDR(1,14794568,1,1,2) [2025-03-30 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794568', 'tblTempUsageDetail_20' ) start [2025-03-30 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794568', 'tblTempUsageDetail_20' ) end [2025-03-30 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:12:21] Production.INFO: ==1445== Releasing lock... [2025-03-30 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:12:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:13:06 [end_date_ymd] => 2025-03-30 07:13:06 [RateCDR] => 1 ) [2025-03-30 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:13:06' and `end` < '2025-03-30 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:13:19] Production.INFO: count ==298 [2025-03-30 07:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:13:06 - End Time 2025-03-30 07:13:06 [2025-03-30 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794573', 'tblTempUsageDetail_20' ) start [2025-03-30 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794573', 'tblTempUsageDetail_20' ) end [2025-03-30 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794573', 'tblTempVendorCDR_20' ) start [2025-03-30 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794573', 'tblTempVendorCDR_20' ) end [2025-03-30 07:13:20] Production.INFO: ProcessCDR(1,14794573,1,1,2) [2025-03-30 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794573', 'tblTempUsageDetail_20' ) start [2025-03-30 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794573', 'tblTempUsageDetail_20' ) end [2025-03-30 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:13:23] Production.INFO: ==1556== Releasing lock... [2025-03-30 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:14:05 [end_date_ymd] => 2025-03-30 07:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:14:05' and `end` < '2025-03-30 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-03-30 07:14:19] Production.INFO: count ==301 [2025-03-30 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:14:05 - End Time 2025-03-30 07:14:05 [2025-03-30 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794578', 'tblTempUsageDetail_20' ) start [2025-03-30 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794578', 'tblTempUsageDetail_20' ) end [2025-03-30 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794578', 'tblTempVendorCDR_20' ) start [2025-03-30 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794578', 'tblTempVendorCDR_20' ) end [2025-03-30 07:14:19] Production.INFO: ProcessCDR(1,14794578,1,1,2) [2025-03-30 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794578', 'tblTempUsageDetail_20' ) start [2025-03-30 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794578', 'tblTempUsageDetail_20' ) end [2025-03-30 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:14:22] Production.INFO: ==1635== Releasing lock... [2025-03-30 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:14:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:15:05 [end_date_ymd] => 2025-03-30 07:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:15:05' and `end` < '2025-03-30 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-03-30 07:15:20] Production.INFO: count ==301 [2025-03-30 07:15:20] Production.ERROR: pbx CDR StartTime 2025-03-30 04:15:05 - End Time 2025-03-30 07:15:05 [2025-03-30 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794583', 'tblTempUsageDetail_20' ) start [2025-03-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794583', 'tblTempUsageDetail_20' ) end [2025-03-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794583', 'tblTempVendorCDR_20' ) start [2025-03-30 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794583', 'tblTempVendorCDR_20' ) end [2025-03-30 07:15:20] Production.INFO: ProcessCDR(1,14794583,1,1,2) [2025-03-30 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794583', 'tblTempUsageDetail_20' ) start [2025-03-30 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794583', 'tblTempUsageDetail_20' ) end [2025-03-30 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:15:23] Production.INFO: ==1821== Releasing lock... [2025-03-30 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:15:23] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:16:05 [end_date_ymd] => 2025-03-30 07:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:16:05' and `end` < '2025-03-30 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-03-30 07:16:18] Production.INFO: count ==301 [2025-03-30 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:16:05 - End Time 2025-03-30 07:16:05 [2025-03-30 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794588', 'tblTempUsageDetail_20' ) start [2025-03-30 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794588', 'tblTempUsageDetail_20' ) end [2025-03-30 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794588', 'tblTempVendorCDR_20' ) start [2025-03-30 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794588', 'tblTempVendorCDR_20' ) end [2025-03-30 07:16:18] Production.INFO: ProcessCDR(1,14794588,1,1,2) [2025-03-30 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794588', 'tblTempUsageDetail_20' ) start [2025-03-30 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794588', 'tblTempUsageDetail_20' ) end [2025-03-30 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:16:21] Production.INFO: ==1933== Releasing lock... [2025-03-30 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:17:05 [end_date_ymd] => 2025-03-30 07:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:17:05' and `end` < '2025-03-30 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-03-30 07:17:19] Production.INFO: count ==302 [2025-03-30 07:17:20] Production.ERROR: pbx CDR StartTime 2025-03-30 04:17:05 - End Time 2025-03-30 07:17:05 [2025-03-30 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794593', 'tblTempUsageDetail_20' ) start [2025-03-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794593', 'tblTempUsageDetail_20' ) end [2025-03-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794593', 'tblTempVendorCDR_20' ) start [2025-03-30 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794593', 'tblTempVendorCDR_20' ) end [2025-03-30 07:17:20] Production.INFO: ProcessCDR(1,14794593,1,1,2) [2025-03-30 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794593', 'tblTempUsageDetail_20' ) start [2025-03-30 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794593', 'tblTempUsageDetail_20' ) end [2025-03-30 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:17:24] Production.INFO: ==2030== Releasing lock... [2025-03-30 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:17:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:18:05 [end_date_ymd] => 2025-03-30 07:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:18:05' and `end` < '2025-03-30 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-03-30 07:18:17] Production.INFO: count ==268 [2025-03-30 07:18:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:18:05 - End Time 2025-03-30 07:18:05 [2025-03-30 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794598', 'tblTempUsageDetail_20' ) start [2025-03-30 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794598', 'tblTempUsageDetail_20' ) end [2025-03-30 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794598', 'tblTempVendorCDR_20' ) start [2025-03-30 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794598', 'tblTempVendorCDR_20' ) end [2025-03-30 07:18:17] Production.INFO: ProcessCDR(1,14794598,1,1,2) [2025-03-30 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794598', 'tblTempUsageDetail_20' ) start [2025-03-30 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794598', 'tblTempUsageDetail_20' ) end [2025-03-30 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:18:21] Production.INFO: ==2103== Releasing lock... [2025-03-30 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:19:05 [end_date_ymd] => 2025-03-30 07:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:19:05' and `end` < '2025-03-30 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-03-30 07:19:18] Production.INFO: count ==268 [2025-03-30 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:19:05 - End Time 2025-03-30 07:19:05 [2025-03-30 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794603', 'tblTempUsageDetail_20' ) start [2025-03-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794603', 'tblTempUsageDetail_20' ) end [2025-03-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794603', 'tblTempVendorCDR_20' ) start [2025-03-30 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794603', 'tblTempVendorCDR_20' ) end [2025-03-30 07:19:18] Production.INFO: ProcessCDR(1,14794603,1,1,2) [2025-03-30 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794603', 'tblTempUsageDetail_20' ) start [2025-03-30 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794603', 'tblTempUsageDetail_20' ) end [2025-03-30 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:19:21] Production.INFO: ==2181== Releasing lock... [2025-03-30 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:20:06 [end_date_ymd] => 2025-03-30 07:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:20:06' and `end` < '2025-03-30 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-03-30 07:20:19] Production.INFO: count ==267 [2025-03-30 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:20:06 - End Time 2025-03-30 07:20:06 [2025-03-30 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794609', 'tblTempUsageDetail_20' ) start [2025-03-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794609', 'tblTempUsageDetail_20' ) end [2025-03-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794609', 'tblTempVendorCDR_20' ) start [2025-03-30 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794609', 'tblTempVendorCDR_20' ) end [2025-03-30 07:20:19] Production.INFO: ProcessCDR(1,14794609,1,1,2) [2025-03-30 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794609', 'tblTempUsageDetail_20' ) start [2025-03-30 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794609', 'tblTempUsageDetail_20' ) end [2025-03-30 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:20:22] Production.INFO: ==2262== Releasing lock... [2025-03-30 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:21:05 [end_date_ymd] => 2025-03-30 07:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:21:05' and `end` < '2025-03-30 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-03-30 07:21:18] Production.INFO: count ==267 [2025-03-30 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:21:05 - End Time 2025-03-30 07:21:05 [2025-03-30 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794614', 'tblTempUsageDetail_20' ) start [2025-03-30 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794614', 'tblTempUsageDetail_20' ) end [2025-03-30 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794614', 'tblTempVendorCDR_20' ) start [2025-03-30 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794614', 'tblTempVendorCDR_20' ) end [2025-03-30 07:21:18] Production.INFO: ProcessCDR(1,14794614,1,1,2) [2025-03-30 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794614', 'tblTempUsageDetail_20' ) start [2025-03-30 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794614', 'tblTempUsageDetail_20' ) end [2025-03-30 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:21:22] Production.INFO: ==2348== Releasing lock... [2025-03-30 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:22:05 [end_date_ymd] => 2025-03-30 07:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:22:05' and `end` < '2025-03-30 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-03-30 07:22:19] Production.INFO: count ==267 [2025-03-30 07:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:22:05 - End Time 2025-03-30 07:22:05 [2025-03-30 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794619', 'tblTempUsageDetail_20' ) start [2025-03-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794619', 'tblTempUsageDetail_20' ) end [2025-03-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794619', 'tblTempVendorCDR_20' ) start [2025-03-30 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794619', 'tblTempVendorCDR_20' ) end [2025-03-30 07:22:19] Production.INFO: ProcessCDR(1,14794619,1,1,2) [2025-03-30 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794619', 'tblTempUsageDetail_20' ) start [2025-03-30 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794619', 'tblTempUsageDetail_20' ) end [2025-03-30 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:22:22] Production.INFO: ==2464== Releasing lock... [2025-03-30 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:22:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:23:05 [end_date_ymd] => 2025-03-30 07:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:23:05' and `end` < '2025-03-30 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-03-30 07:23:17] Production.INFO: count ==267 [2025-03-30 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:23:05 - End Time 2025-03-30 07:23:05 [2025-03-30 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794624', 'tblTempUsageDetail_20' ) start [2025-03-30 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794624', 'tblTempUsageDetail_20' ) end [2025-03-30 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794624', 'tblTempVendorCDR_20' ) start [2025-03-30 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794624', 'tblTempVendorCDR_20' ) end [2025-03-30 07:23:17] Production.INFO: ProcessCDR(1,14794624,1,1,2) [2025-03-30 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794624', 'tblTempUsageDetail_20' ) start [2025-03-30 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794624', 'tblTempUsageDetail_20' ) end [2025-03-30 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:23:20] Production.INFO: ==2540== Releasing lock... [2025-03-30 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:24:05 [end_date_ymd] => 2025-03-30 07:24:05 [RateCDR] => 1 ) [2025-03-30 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:24:05' and `end` < '2025-03-30 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:24:18] Production.INFO: count ==259 [2025-03-30 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:24:05 - End Time 2025-03-30 07:24:05 [2025-03-30 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794629', 'tblTempUsageDetail_20' ) start [2025-03-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794629', 'tblTempUsageDetail_20' ) end [2025-03-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794629', 'tblTempVendorCDR_20' ) start [2025-03-30 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794629', 'tblTempVendorCDR_20' ) end [2025-03-30 07:24:18] Production.INFO: ProcessCDR(1,14794629,1,1,2) [2025-03-30 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794629', 'tblTempUsageDetail_20' ) start [2025-03-30 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794629', 'tblTempUsageDetail_20' ) end [2025-03-30 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:24:21] Production.INFO: ==2627== Releasing lock... [2025-03-30 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:25:05 [end_date_ymd] => 2025-03-30 07:25:05 [RateCDR] => 1 ) [2025-03-30 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:25:05' and `end` < '2025-03-30 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:25:17] Production.INFO: count ==252 [2025-03-30 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:25:05 - End Time 2025-03-30 07:25:05 [2025-03-30 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794634', 'tblTempUsageDetail_20' ) start [2025-03-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794634', 'tblTempUsageDetail_20' ) end [2025-03-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794634', 'tblTempVendorCDR_20' ) start [2025-03-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794634', 'tblTempVendorCDR_20' ) end [2025-03-30 07:25:17] Production.INFO: ProcessCDR(1,14794634,1,1,2) [2025-03-30 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794634', 'tblTempUsageDetail_20' ) start [2025-03-30 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794634', 'tblTempUsageDetail_20' ) end [2025-03-30 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:25:21] Production.INFO: ==2704== Releasing lock... [2025-03-30 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:25:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:26:05 [end_date_ymd] => 2025-03-30 07:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:26:05' and `end` < '2025-03-30 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-03-30 07:26:18] Production.INFO: count ==250 [2025-03-30 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:26:05 - End Time 2025-03-30 07:26:05 [2025-03-30 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794639', 'tblTempUsageDetail_20' ) start [2025-03-30 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794639', 'tblTempUsageDetail_20' ) end [2025-03-30 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794639', 'tblTempVendorCDR_20' ) start [2025-03-30 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794639', 'tblTempVendorCDR_20' ) end [2025-03-30 07:26:18] Production.INFO: ProcessCDR(1,14794639,1,1,2) [2025-03-30 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794639', 'tblTempUsageDetail_20' ) start [2025-03-30 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794639', 'tblTempUsageDetail_20' ) end [2025-03-30 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:26:21] Production.INFO: ==2778== Releasing lock... [2025-03-30 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:27:04 [end_date_ymd] => 2025-03-30 07:27:04 [RateCDR] => 1 ) [2025-03-30 07: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-03-30 04:27:04' and `end` < '2025-03-30 07: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-03-30 07:27:17] Production.INFO: count ==251 [2025-03-30 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:27:04 - End Time 2025-03-30 07:27:04 [2025-03-30 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794644', 'tblTempUsageDetail_20' ) start [2025-03-30 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794644', 'tblTempUsageDetail_20' ) end [2025-03-30 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794644', 'tblTempVendorCDR_20' ) start [2025-03-30 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794644', 'tblTempVendorCDR_20' ) end [2025-03-30 07:27:17] Production.INFO: ProcessCDR(1,14794644,1,1,2) [2025-03-30 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794644', 'tblTempUsageDetail_20' ) start [2025-03-30 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794644', 'tblTempUsageDetail_20' ) end [2025-03-30 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:27:20] Production.INFO: ==2850== Releasing lock... [2025-03-30 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:27:20] Production.INFO: 30 MB #Memory Used# [2025-03-30 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:28:05 [end_date_ymd] => 2025-03-30 07:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:28:05' and `end` < '2025-03-30 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-03-30 07:28:18] Production.INFO: count ==220 [2025-03-30 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:28:05 - End Time 2025-03-30 07:28:05 [2025-03-30 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794649', 'tblTempUsageDetail_20' ) start [2025-03-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794649', 'tblTempUsageDetail_20' ) end [2025-03-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794649', 'tblTempVendorCDR_20' ) start [2025-03-30 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794649', 'tblTempVendorCDR_20' ) end [2025-03-30 07:28:18] Production.INFO: ProcessCDR(1,14794649,1,1,2) [2025-03-30 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794649', 'tblTempUsageDetail_20' ) start [2025-03-30 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794649', 'tblTempUsageDetail_20' ) end [2025-03-30 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:28:21] Production.INFO: ==2926== Releasing lock... [2025-03-30 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:29:06 [end_date_ymd] => 2025-03-30 07:29:06 [RateCDR] => 1 ) [2025-03-30 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:29:06' and `end` < '2025-03-30 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:29:18] Production.INFO: count ==223 [2025-03-30 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:29:06 - End Time 2025-03-30 07:29:06 [2025-03-30 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794654', 'tblTempUsageDetail_20' ) start [2025-03-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794654', 'tblTempUsageDetail_20' ) end [2025-03-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794654', 'tblTempVendorCDR_20' ) start [2025-03-30 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794654', 'tblTempVendorCDR_20' ) end [2025-03-30 07:29:18] Production.INFO: ProcessCDR(1,14794654,1,1,2) [2025-03-30 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794654', 'tblTempUsageDetail_20' ) start [2025-03-30 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794654', 'tblTempUsageDetail_20' ) end [2025-03-30 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:29:22] Production.INFO: ==2999== Releasing lock... [2025-03-30 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:29:22] Production.INFO: 30 MB #Memory Used# [2025-03-30 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:30:06 [end_date_ymd] => 2025-03-30 07:30:06 [RateCDR] => 1 ) [2025-03-30 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:30:06' and `end` < '2025-03-30 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:30:18] Production.INFO: count ==215 [2025-03-30 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:30:06 - End Time 2025-03-30 07:30:06 [2025-03-30 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794659', 'tblTempUsageDetail_20' ) start [2025-03-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794659', 'tblTempUsageDetail_20' ) end [2025-03-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794659', 'tblTempVendorCDR_20' ) start [2025-03-30 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794659', 'tblTempVendorCDR_20' ) end [2025-03-30 07:30:18] Production.INFO: ProcessCDR(1,14794659,1,1,2) [2025-03-30 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794659', 'tblTempUsageDetail_20' ) start [2025-03-30 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794659', 'tblTempUsageDetail_20' ) end [2025-03-30 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:30:22] Production.INFO: ==3083== Releasing lock... [2025-03-30 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:31:05 [end_date_ymd] => 2025-03-30 07:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:31:05' and `end` < '2025-03-30 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-03-30 07:31:18] Production.INFO: count ==212 [2025-03-30 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:31:05 - End Time 2025-03-30 07:31:05 [2025-03-30 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794665', 'tblTempUsageDetail_20' ) start [2025-03-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794665', 'tblTempUsageDetail_20' ) end [2025-03-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794665', 'tblTempVendorCDR_20' ) start [2025-03-30 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794665', 'tblTempVendorCDR_20' ) end [2025-03-30 07:31:18] Production.INFO: ProcessCDR(1,14794665,1,1,2) [2025-03-30 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794665', 'tblTempUsageDetail_20' ) start [2025-03-30 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794665', 'tblTempUsageDetail_20' ) end [2025-03-30 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:31:21] Production.INFO: ==3160== Releasing lock... [2025-03-30 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:32:05 [end_date_ymd] => 2025-03-30 07:32:05 [RateCDR] => 1 ) [2025-03-30 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:32:05' and `end` < '2025-03-30 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:32:18] Production.INFO: count ==212 [2025-03-30 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:32:05 - End Time 2025-03-30 07:32:05 [2025-03-30 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794670', 'tblTempUsageDetail_20' ) start [2025-03-30 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794670', 'tblTempUsageDetail_20' ) end [2025-03-30 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794670', 'tblTempVendorCDR_20' ) start [2025-03-30 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794670', 'tblTempVendorCDR_20' ) end [2025-03-30 07:32:18] Production.INFO: ProcessCDR(1,14794670,1,1,2) [2025-03-30 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794670', 'tblTempUsageDetail_20' ) start [2025-03-30 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794670', 'tblTempUsageDetail_20' ) end [2025-03-30 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:32:21] Production.INFO: ==3233== Releasing lock... [2025-03-30 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:33:05 [end_date_ymd] => 2025-03-30 07:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:33:05' and `end` < '2025-03-30 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-03-30 07:33:18] Production.INFO: count ==212 [2025-03-30 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:33:05 - End Time 2025-03-30 07:33:05 [2025-03-30 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794675', 'tblTempUsageDetail_20' ) start [2025-03-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794675', 'tblTempUsageDetail_20' ) end [2025-03-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794675', 'tblTempVendorCDR_20' ) start [2025-03-30 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794675', 'tblTempVendorCDR_20' ) end [2025-03-30 07:33:18] Production.INFO: ProcessCDR(1,14794675,1,1,2) [2025-03-30 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794675', 'tblTempUsageDetail_20' ) start [2025-03-30 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794675', 'tblTempUsageDetail_20' ) end [2025-03-30 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:33:21] Production.INFO: ==3310== Releasing lock... [2025-03-30 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:34:05 [end_date_ymd] => 2025-03-30 07:34:05 [RateCDR] => 1 ) [2025-03-30 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:34:05' and `end` < '2025-03-30 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:34:18] Production.INFO: count ==212 [2025-03-30 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:34:05 - End Time 2025-03-30 07:34:05 [2025-03-30 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794680', 'tblTempUsageDetail_20' ) start [2025-03-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794680', 'tblTempUsageDetail_20' ) end [2025-03-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794680', 'tblTempVendorCDR_20' ) start [2025-03-30 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794680', 'tblTempVendorCDR_20' ) end [2025-03-30 07:34:18] Production.INFO: ProcessCDR(1,14794680,1,1,2) [2025-03-30 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794680', 'tblTempUsageDetail_20' ) start [2025-03-30 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794680', 'tblTempUsageDetail_20' ) end [2025-03-30 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:34:21] Production.INFO: ==3389== Releasing lock... [2025-03-30 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:35:05 [end_date_ymd] => 2025-03-30 07:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:35:05' and `end` < '2025-03-30 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-03-30 07:35:18] Production.INFO: count ==212 [2025-03-30 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:35:05 - End Time 2025-03-30 07:35:05 [2025-03-30 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794685', 'tblTempUsageDetail_20' ) start [2025-03-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794685', 'tblTempUsageDetail_20' ) end [2025-03-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794685', 'tblTempVendorCDR_20' ) start [2025-03-30 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794685', 'tblTempVendorCDR_20' ) end [2025-03-30 07:35:18] Production.INFO: ProcessCDR(1,14794685,1,1,2) [2025-03-30 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794685', 'tblTempUsageDetail_20' ) start [2025-03-30 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794685', 'tblTempUsageDetail_20' ) end [2025-03-30 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:35:21] Production.INFO: ==3460== Releasing lock... [2025-03-30 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:36:05 [end_date_ymd] => 2025-03-30 07:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:36:05' and `end` < '2025-03-30 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-03-30 07:36:17] Production.INFO: count ==212 [2025-03-30 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:36:05 - End Time 2025-03-30 07:36:05 [2025-03-30 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794690', 'tblTempUsageDetail_20' ) start [2025-03-30 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794690', 'tblTempUsageDetail_20' ) end [2025-03-30 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794690', 'tblTempVendorCDR_20' ) start [2025-03-30 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794690', 'tblTempVendorCDR_20' ) end [2025-03-30 07:36:17] Production.INFO: ProcessCDR(1,14794690,1,1,2) [2025-03-30 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794690', 'tblTempUsageDetail_20' ) start [2025-03-30 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794690', 'tblTempUsageDetail_20' ) end [2025-03-30 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:36:21] Production.INFO: ==3539== Releasing lock... [2025-03-30 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:37:05 [end_date_ymd] => 2025-03-30 07:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:37:05' and `end` < '2025-03-30 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-03-30 07:37:18] Production.INFO: count ==212 [2025-03-30 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:37:05 - End Time 2025-03-30 07:37:05 [2025-03-30 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794695', 'tblTempUsageDetail_20' ) start [2025-03-30 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794695', 'tblTempUsageDetail_20' ) end [2025-03-30 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794695', 'tblTempVendorCDR_20' ) start [2025-03-30 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794695', 'tblTempVendorCDR_20' ) end [2025-03-30 07:37:18] Production.INFO: ProcessCDR(1,14794695,1,1,2) [2025-03-30 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794695', 'tblTempUsageDetail_20' ) start [2025-03-30 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794695', 'tblTempUsageDetail_20' ) end [2025-03-30 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:37:21] Production.INFO: ==3656== Releasing lock... [2025-03-30 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:38:06 [end_date_ymd] => 2025-03-30 07:38:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:38:06' and `end` < '2025-03-30 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-03-30 07:38:18] Production.INFO: count ==212 [2025-03-30 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:38:06 - End Time 2025-03-30 07:38:06 [2025-03-30 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794700', 'tblTempUsageDetail_20' ) start [2025-03-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794700', 'tblTempUsageDetail_20' ) end [2025-03-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794700', 'tblTempVendorCDR_20' ) start [2025-03-30 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794700', 'tblTempVendorCDR_20' ) end [2025-03-30 07:38:18] Production.INFO: ProcessCDR(1,14794700,1,1,2) [2025-03-30 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794700', 'tblTempUsageDetail_20' ) start [2025-03-30 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794700', 'tblTempUsageDetail_20' ) end [2025-03-30 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:38:21] Production.INFO: ==3729== Releasing lock... [2025-03-30 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:39:05 [end_date_ymd] => 2025-03-30 07:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:39:05' and `end` < '2025-03-30 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-03-30 07:39:17] Production.INFO: count ==212 [2025-03-30 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:39:05 - End Time 2025-03-30 07:39:05 [2025-03-30 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794705', 'tblTempUsageDetail_20' ) start [2025-03-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794705', 'tblTempUsageDetail_20' ) end [2025-03-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794705', 'tblTempVendorCDR_20' ) start [2025-03-30 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794705', 'tblTempVendorCDR_20' ) end [2025-03-30 07:39:17] Production.INFO: ProcessCDR(1,14794705,1,1,2) [2025-03-30 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794705', 'tblTempUsageDetail_20' ) start [2025-03-30 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794705', 'tblTempUsageDetail_20' ) end [2025-03-30 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:39:20] Production.INFO: ==3811== Releasing lock... [2025-03-30 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:40:06 [end_date_ymd] => 2025-03-30 07:40:06 [RateCDR] => 1 ) [2025-03-30 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:40:06' and `end` < '2025-03-30 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:40:19] Production.INFO: count ==212 [2025-03-30 07:40:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:40:06 - End Time 2025-03-30 07:40:06 [2025-03-30 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794710', 'tblTempUsageDetail_20' ) start [2025-03-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794710', 'tblTempUsageDetail_20' ) end [2025-03-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794710', 'tblTempVendorCDR_20' ) start [2025-03-30 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794710', 'tblTempVendorCDR_20' ) end [2025-03-30 07:40:19] Production.INFO: ProcessCDR(1,14794710,1,1,2) [2025-03-30 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794710', 'tblTempUsageDetail_20' ) start [2025-03-30 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794710', 'tblTempUsageDetail_20' ) end [2025-03-30 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:40:22] Production.INFO: ==3901== Releasing lock... [2025-03-30 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:41:05 [end_date_ymd] => 2025-03-30 07:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:41:05' and `end` < '2025-03-30 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-03-30 07:41:18] Production.INFO: count ==216 [2025-03-30 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:41:05 - End Time 2025-03-30 07:41:05 [2025-03-30 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794716', 'tblTempUsageDetail_20' ) start [2025-03-30 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794716', 'tblTempUsageDetail_20' ) end [2025-03-30 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794716', 'tblTempVendorCDR_20' ) start [2025-03-30 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794716', 'tblTempVendorCDR_20' ) end [2025-03-30 07:41:18] Production.INFO: ProcessCDR(1,14794716,1,1,2) [2025-03-30 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794716', 'tblTempUsageDetail_20' ) start [2025-03-30 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794716', 'tblTempUsageDetail_20' ) end [2025-03-30 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:41:21] Production.INFO: ==3982== Releasing lock... [2025-03-30 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:42:06 [end_date_ymd] => 2025-03-30 07:42:06 [RateCDR] => 1 ) [2025-03-30 07: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-03-30 04:42:06' and `end` < '2025-03-30 07: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-03-30 07:42:19] Production.INFO: count ==216 [2025-03-30 07:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 04:42:06 - End Time 2025-03-30 07:42:06 [2025-03-30 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794721', 'tblTempUsageDetail_20' ) start [2025-03-30 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794721', 'tblTempUsageDetail_20' ) end [2025-03-30 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794721', 'tblTempVendorCDR_20' ) start [2025-03-30 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794721', 'tblTempVendorCDR_20' ) end [2025-03-30 07:42:19] Production.INFO: ProcessCDR(1,14794721,1,1,2) [2025-03-30 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794721', 'tblTempUsageDetail_20' ) start [2025-03-30 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794721', 'tblTempUsageDetail_20' ) end [2025-03-30 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:42:22] Production.INFO: ==4060== Releasing lock... [2025-03-30 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:43:05 [end_date_ymd] => 2025-03-30 07:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:43:05' and `end` < '2025-03-30 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-03-30 07:43:18] Production.INFO: count ==216 [2025-03-30 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:43:05 - End Time 2025-03-30 07:43:05 [2025-03-30 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794726', 'tblTempUsageDetail_20' ) start [2025-03-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794726', 'tblTempUsageDetail_20' ) end [2025-03-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794726', 'tblTempVendorCDR_20' ) start [2025-03-30 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794726', 'tblTempVendorCDR_20' ) end [2025-03-30 07:43:18] Production.INFO: ProcessCDR(1,14794726,1,1,2) [2025-03-30 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794726', 'tblTempUsageDetail_20' ) start [2025-03-30 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794726', 'tblTempUsageDetail_20' ) end [2025-03-30 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:43:21] Production.INFO: ==4140== Releasing lock... [2025-03-30 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:44:05 [end_date_ymd] => 2025-03-30 07:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:44:05' and `end` < '2025-03-30 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-03-30 07:44:18] Production.INFO: count ==216 [2025-03-30 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:44:05 - End Time 2025-03-30 07:44:05 [2025-03-30 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794731', 'tblTempUsageDetail_20' ) start [2025-03-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794731', 'tblTempUsageDetail_20' ) end [2025-03-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794731', 'tblTempVendorCDR_20' ) start [2025-03-30 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794731', 'tblTempVendorCDR_20' ) end [2025-03-30 07:44:18] Production.INFO: ProcessCDR(1,14794731,1,1,2) [2025-03-30 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794731', 'tblTempUsageDetail_20' ) start [2025-03-30 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794731', 'tblTempUsageDetail_20' ) end [2025-03-30 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:44:21] Production.INFO: ==4214== Releasing lock... [2025-03-30 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:45:05 [end_date_ymd] => 2025-03-30 07:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:45:05' and `end` < '2025-03-30 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-03-30 07:45:17] Production.INFO: count ==188 [2025-03-30 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:45:05 - End Time 2025-03-30 07:45:05 [2025-03-30 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794736', 'tblTempUsageDetail_20' ) start [2025-03-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794736', 'tblTempUsageDetail_20' ) end [2025-03-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794736', 'tblTempVendorCDR_20' ) start [2025-03-30 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794736', 'tblTempVendorCDR_20' ) end [2025-03-30 07:45:17] Production.INFO: ProcessCDR(1,14794736,1,1,2) [2025-03-30 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794736', 'tblTempUsageDetail_20' ) start [2025-03-30 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794736', 'tblTempUsageDetail_20' ) end [2025-03-30 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:45:21] Production.INFO: ==4290== Releasing lock... [2025-03-30 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:46:05 [end_date_ymd] => 2025-03-30 07:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:46:05' and `end` < '2025-03-30 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-03-30 07:46:18] Production.INFO: count ==186 [2025-03-30 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:46:05 - End Time 2025-03-30 07:46:05 [2025-03-30 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794741', 'tblTempUsageDetail_20' ) start [2025-03-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794741', 'tblTempUsageDetail_20' ) end [2025-03-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794741', 'tblTempVendorCDR_20' ) start [2025-03-30 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794741', 'tblTempVendorCDR_20' ) end [2025-03-30 07:46:18] Production.INFO: ProcessCDR(1,14794741,1,1,2) [2025-03-30 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794741', 'tblTempUsageDetail_20' ) start [2025-03-30 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794741', 'tblTempUsageDetail_20' ) end [2025-03-30 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:46:21] Production.INFO: ==4363== Releasing lock... [2025-03-30 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:46:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:47:05 [end_date_ymd] => 2025-03-30 07:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:47:05' and `end` < '2025-03-30 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-03-30 07:47:17] Production.INFO: count ==153 [2025-03-30 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:47:05 - End Time 2025-03-30 07:47:05 [2025-03-30 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794746', 'tblTempUsageDetail_20' ) start [2025-03-30 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794746', 'tblTempUsageDetail_20' ) end [2025-03-30 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794746', 'tblTempVendorCDR_20' ) start [2025-03-30 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794746', 'tblTempVendorCDR_20' ) end [2025-03-30 07:47:17] Production.INFO: ProcessCDR(1,14794746,1,1,2) [2025-03-30 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794746', 'tblTempUsageDetail_20' ) start [2025-03-30 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794746', 'tblTempUsageDetail_20' ) end [2025-03-30 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:47:21] Production.INFO: ==4436== Releasing lock... [2025-03-30 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:48:05 [end_date_ymd] => 2025-03-30 07:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:48:05' and `end` < '2025-03-30 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-03-30 07:48:18] Production.INFO: count ==155 [2025-03-30 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:48:05 - End Time 2025-03-30 07:48:05 [2025-03-30 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794751', 'tblTempUsageDetail_20' ) start [2025-03-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794751', 'tblTempUsageDetail_20' ) end [2025-03-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794751', 'tblTempVendorCDR_20' ) start [2025-03-30 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794751', 'tblTempVendorCDR_20' ) end [2025-03-30 07:48:18] Production.INFO: ProcessCDR(1,14794751,1,1,2) [2025-03-30 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794751', 'tblTempUsageDetail_20' ) start [2025-03-30 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794751', 'tblTempUsageDetail_20' ) end [2025-03-30 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:48:21] Production.INFO: ==4515== Releasing lock... [2025-03-30 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:49:04 [end_date_ymd] => 2025-03-30 07:49:04 [RateCDR] => 1 ) [2025-03-30 07: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-03-30 04:49:04' and `end` < '2025-03-30 07: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-03-30 07:49:17] Production.INFO: count ==155 [2025-03-30 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:49:04 - End Time 2025-03-30 07:49:04 [2025-03-30 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794756', 'tblTempUsageDetail_20' ) start [2025-03-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794756', 'tblTempUsageDetail_20' ) end [2025-03-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794756', 'tblTempVendorCDR_20' ) start [2025-03-30 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794756', 'tblTempVendorCDR_20' ) end [2025-03-30 07:49:17] Production.INFO: ProcessCDR(1,14794756,1,1,2) [2025-03-30 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794756', 'tblTempUsageDetail_20' ) start [2025-03-30 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794756', 'tblTempUsageDetail_20' ) end [2025-03-30 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:49:20] Production.INFO: ==4597== Releasing lock... [2025-03-30 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:50:06 [end_date_ymd] => 2025-03-30 07:50:06 [RateCDR] => 1 ) [2025-03-30 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:50:06' and `end` < '2025-03-30 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:50:18] Production.INFO: count ==155 [2025-03-30 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:50:06 - End Time 2025-03-30 07:50:06 [2025-03-30 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794762', 'tblTempUsageDetail_20' ) start [2025-03-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794762', 'tblTempUsageDetail_20' ) end [2025-03-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794762', 'tblTempVendorCDR_20' ) start [2025-03-30 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794762', 'tblTempVendorCDR_20' ) end [2025-03-30 07:50:18] Production.INFO: ProcessCDR(1,14794762,1,1,2) [2025-03-30 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794762', 'tblTempUsageDetail_20' ) start [2025-03-30 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794762', 'tblTempUsageDetail_20' ) end [2025-03-30 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:50:22] Production.INFO: ==4673== Releasing lock... [2025-03-30 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:51:05 [end_date_ymd] => 2025-03-30 07:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:51:05' and `end` < '2025-03-30 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-03-30 07:51:17] Production.INFO: count ==155 [2025-03-30 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:51:05 - End Time 2025-03-30 07:51:05 [2025-03-30 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794767', 'tblTempUsageDetail_20' ) start [2025-03-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794767', 'tblTempUsageDetail_20' ) end [2025-03-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794767', 'tblTempVendorCDR_20' ) start [2025-03-30 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794767', 'tblTempVendorCDR_20' ) end [2025-03-30 07:51:17] Production.INFO: ProcessCDR(1,14794767,1,1,2) [2025-03-30 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794767', 'tblTempUsageDetail_20' ) start [2025-03-30 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794767', 'tblTempUsageDetail_20' ) end [2025-03-30 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:51:21] Production.INFO: ==4754== Releasing lock... [2025-03-30 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:52:06 [end_date_ymd] => 2025-03-30 07:52:06 [RateCDR] => 1 ) [2025-03-30 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:52:06' and `end` < '2025-03-30 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:52:18] Production.INFO: count ==155 [2025-03-30 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:52:06 - End Time 2025-03-30 07:52:06 [2025-03-30 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794772', 'tblTempUsageDetail_20' ) start [2025-03-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794772', 'tblTempUsageDetail_20' ) end [2025-03-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794772', 'tblTempVendorCDR_20' ) start [2025-03-30 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794772', 'tblTempVendorCDR_20' ) end [2025-03-30 07:52:18] Production.INFO: ProcessCDR(1,14794772,1,1,2) [2025-03-30 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794772', 'tblTempUsageDetail_20' ) start [2025-03-30 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794772', 'tblTempUsageDetail_20' ) end [2025-03-30 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:52:22] Production.INFO: ==4829== Releasing lock... [2025-03-30 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:53:04 [end_date_ymd] => 2025-03-30 07:53:04 [RateCDR] => 1 ) [2025-03-30 07: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-03-30 04:53:04' and `end` < '2025-03-30 07: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-03-30 07:53:17] Production.INFO: count ==155 [2025-03-30 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:53:04 - End Time 2025-03-30 07:53:04 [2025-03-30 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794777', 'tblTempUsageDetail_20' ) start [2025-03-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794777', 'tblTempUsageDetail_20' ) end [2025-03-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794777', 'tblTempVendorCDR_20' ) start [2025-03-30 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794777', 'tblTempVendorCDR_20' ) end [2025-03-30 07:53:17] Production.INFO: ProcessCDR(1,14794777,1,1,2) [2025-03-30 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794777', 'tblTempUsageDetail_20' ) start [2025-03-30 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794777', 'tblTempUsageDetail_20' ) end [2025-03-30 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:53:20] Production.INFO: ==4942== Releasing lock... [2025-03-30 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:54:05 [end_date_ymd] => 2025-03-30 07:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:54:05' and `end` < '2025-03-30 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-03-30 07:54:18] Production.INFO: count ==155 [2025-03-30 07:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:54:05 - End Time 2025-03-30 07:54:05 [2025-03-30 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794782', 'tblTempUsageDetail_20' ) start [2025-03-30 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794782', 'tblTempUsageDetail_20' ) end [2025-03-30 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794782', 'tblTempVendorCDR_20' ) start [2025-03-30 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794782', 'tblTempVendorCDR_20' ) end [2025-03-30 07:54:18] Production.INFO: ProcessCDR(1,14794782,1,1,2) [2025-03-30 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794782', 'tblTempUsageDetail_20' ) start [2025-03-30 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794782', 'tblTempUsageDetail_20' ) end [2025-03-30 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:54:21] Production.INFO: ==5022== Releasing lock... [2025-03-30 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:55:05 [end_date_ymd] => 2025-03-30 07:55:05 [RateCDR] => 1 ) [2025-03-30 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:55:05' and `end` < '2025-03-30 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:55:17] Production.INFO: count ==155 [2025-03-30 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:55:05 - End Time 2025-03-30 07:55:05 [2025-03-30 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794787', 'tblTempUsageDetail_20' ) start [2025-03-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794787', 'tblTempUsageDetail_20' ) end [2025-03-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794787', 'tblTempVendorCDR_20' ) start [2025-03-30 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794787', 'tblTempVendorCDR_20' ) end [2025-03-30 07:55:17] Production.INFO: ProcessCDR(1,14794787,1,1,2) [2025-03-30 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794787', 'tblTempUsageDetail_20' ) start [2025-03-30 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794787', 'tblTempUsageDetail_20' ) end [2025-03-30 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:55:20] Production.INFO: ==5113== Releasing lock... [2025-03-30 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:56:05 [end_date_ymd] => 2025-03-30 07:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:56:05' and `end` < '2025-03-30 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-03-30 07:56:17] Production.INFO: count ==159 [2025-03-30 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-30 04:56:05 - End Time 2025-03-30 07:56:05 [2025-03-30 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794792', 'tblTempUsageDetail_20' ) start [2025-03-30 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794792', 'tblTempUsageDetail_20' ) end [2025-03-30 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794792', 'tblTempVendorCDR_20' ) start [2025-03-30 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794792', 'tblTempVendorCDR_20' ) end [2025-03-30 07:56:17] Production.INFO: ProcessCDR(1,14794792,1,1,2) [2025-03-30 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794792', 'tblTempUsageDetail_20' ) start [2025-03-30 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794792', 'tblTempUsageDetail_20' ) end [2025-03-30 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:56:21] Production.INFO: ==5187== Releasing lock... [2025-03-30 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:57:06 [end_date_ymd] => 2025-03-30 07:57:06 [RateCDR] => 1 ) [2025-03-30 07:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:57:06' and `end` < '2025-03-30 07: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-03-30 07:57:18] Production.INFO: count ==155 [2025-03-30 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:57:06 - End Time 2025-03-30 07:57:06 [2025-03-30 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794797', 'tblTempUsageDetail_20' ) start [2025-03-30 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794797', 'tblTempUsageDetail_20' ) end [2025-03-30 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794797', 'tblTempVendorCDR_20' ) start [2025-03-30 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794797', 'tblTempVendorCDR_20' ) end [2025-03-30 07:57:18] Production.INFO: ProcessCDR(1,14794797,1,1,2) [2025-03-30 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794797', 'tblTempUsageDetail_20' ) start [2025-03-30 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794797', 'tblTempUsageDetail_20' ) end [2025-03-30 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:57:21] Production.INFO: ==5274== Releasing lock... [2025-03-30 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:58:05 [end_date_ymd] => 2025-03-30 07:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 04:58:05' and `end` < '2025-03-30 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-03-30 07:58:18] Production.INFO: count ==155 [2025-03-30 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:58:05 - End Time 2025-03-30 07:58:05 [2025-03-30 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794802', 'tblTempUsageDetail_20' ) start [2025-03-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794802', 'tblTempUsageDetail_20' ) end [2025-03-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794802', 'tblTempVendorCDR_20' ) start [2025-03-30 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794802', 'tblTempVendorCDR_20' ) end [2025-03-30 07:58:18] Production.INFO: ProcessCDR(1,14794802,1,1,2) [2025-03-30 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794802', 'tblTempUsageDetail_20' ) start [2025-03-30 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794802', 'tblTempUsageDetail_20' ) end [2025-03-30 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:58:21] Production.INFO: ==5369== Releasing lock... [2025-03-30 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 04:59:06 [end_date_ymd] => 2025-03-30 07:59:06 [RateCDR] => 1 ) [2025-03-30 07:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 04:59:06' and `end` < '2025-03-30 07:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 07:59:18] Production.INFO: count ==156 [2025-03-30 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 04:59:06 - End Time 2025-03-30 07:59:06 [2025-03-30 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794807', 'tblTempUsageDetail_20' ) start [2025-03-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794807', 'tblTempUsageDetail_20' ) end [2025-03-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794807', 'tblTempVendorCDR_20' ) start [2025-03-30 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794807', 'tblTempVendorCDR_20' ) end [2025-03-30 07:59:18] Production.INFO: ProcessCDR(1,14794807,1,1,2) [2025-03-30 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794807', 'tblTempUsageDetail_20' ) start [2025-03-30 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794807', 'tblTempUsageDetail_20' ) end [2025-03-30 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 07:59:23] Production.INFO: ==5459== Releasing lock... [2025-03-30 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 07:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:00:06 [end_date_ymd] => 2025-03-30 08:00:06 [RateCDR] => 1 ) [2025-03-30 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:00:06' and `end` < '2025-03-30 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:00:19] Production.INFO: count ==148 [2025-03-30 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 05:00:06 - End Time 2025-03-30 08:00:06 [2025-03-30 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794813', 'tblTempUsageDetail_20' ) start [2025-03-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794813', 'tblTempUsageDetail_20' ) end [2025-03-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794813', 'tblTempVendorCDR_20' ) start [2025-03-30 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794813', 'tblTempVendorCDR_20' ) end [2025-03-30 08:00:19] Production.INFO: ProcessCDR(1,14794813,1,1,2) [2025-03-30 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794813', 'tblTempUsageDetail_20' ) start [2025-03-30 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794813', 'tblTempUsageDetail_20' ) end [2025-03-30 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:00:22] Production.INFO: ==5567== Releasing lock... [2025-03-30 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:01:05 [end_date_ymd] => 2025-03-30 08:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:01:05' and `end` < '2025-03-30 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-03-30 08:01:18] Production.INFO: count ==148 [2025-03-30 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:01:05 - End Time 2025-03-30 08:01:05 [2025-03-30 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794818', 'tblTempUsageDetail_20' ) start [2025-03-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794818', 'tblTempUsageDetail_20' ) end [2025-03-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794818', 'tblTempVendorCDR_20' ) start [2025-03-30 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794818', 'tblTempVendorCDR_20' ) end [2025-03-30 08:01:18] Production.INFO: ProcessCDR(1,14794818,1,1,2) [2025-03-30 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794818', 'tblTempUsageDetail_20' ) start [2025-03-30 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794818', 'tblTempUsageDetail_20' ) end [2025-03-30 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:01:21] Production.INFO: ==5672== Releasing lock... [2025-03-30 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:02:05 [end_date_ymd] => 2025-03-30 08:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:02:05' and `end` < '2025-03-30 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-03-30 08:02:17] Production.INFO: count ==148 [2025-03-30 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:02:05 - End Time 2025-03-30 08:02:05 [2025-03-30 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794823', 'tblTempUsageDetail_20' ) start [2025-03-30 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794823', 'tblTempUsageDetail_20' ) end [2025-03-30 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794823', 'tblTempVendorCDR_20' ) start [2025-03-30 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794823', 'tblTempVendorCDR_20' ) end [2025-03-30 08:02:17] Production.INFO: ProcessCDR(1,14794823,1,1,2) [2025-03-30 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794823', 'tblTempUsageDetail_20' ) start [2025-03-30 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794823', 'tblTempUsageDetail_20' ) end [2025-03-30 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:02:21] Production.INFO: ==5762== Releasing lock... [2025-03-30 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:03:05 [end_date_ymd] => 2025-03-30 08:03:05 [RateCDR] => 1 ) [2025-03-30 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:03:05' and `end` < '2025-03-30 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:03:18] Production.INFO: count ==148 [2025-03-30 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:03:05 - End Time 2025-03-30 08:03:05 [2025-03-30 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794828', 'tblTempUsageDetail_20' ) start [2025-03-30 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794828', 'tblTempUsageDetail_20' ) end [2025-03-30 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794828', 'tblTempVendorCDR_20' ) start [2025-03-30 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794828', 'tblTempVendorCDR_20' ) end [2025-03-30 08:03:18] Production.INFO: ProcessCDR(1,14794828,1,1,2) [2025-03-30 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794828', 'tblTempUsageDetail_20' ) start [2025-03-30 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794828', 'tblTempUsageDetail_20' ) end [2025-03-30 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:03:21] Production.INFO: ==5854== Releasing lock... [2025-03-30 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:04:05 [end_date_ymd] => 2025-03-30 08:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:04:05' and `end` < '2025-03-30 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-03-30 08:04:18] Production.INFO: count ==153 [2025-03-30 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:04:05 - End Time 2025-03-30 08:04:05 [2025-03-30 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794833', 'tblTempUsageDetail_20' ) start [2025-03-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794833', 'tblTempUsageDetail_20' ) end [2025-03-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794833', 'tblTempVendorCDR_20' ) start [2025-03-30 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794833', 'tblTempVendorCDR_20' ) end [2025-03-30 08:04:18] Production.INFO: ProcessCDR(1,14794833,1,1,2) [2025-03-30 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794833', 'tblTempUsageDetail_20' ) start [2025-03-30 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794833', 'tblTempUsageDetail_20' ) end [2025-03-30 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:04:23] Production.INFO: ==5949== Releasing lock... [2025-03-30 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:04:23] Production.INFO: 30 MB #Memory Used# [2025-03-30 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:05:05 [end_date_ymd] => 2025-03-30 08:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:05:05' and `end` < '2025-03-30 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-03-30 08:05:18] Production.INFO: count ==155 [2025-03-30 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:05:05 - End Time 2025-03-30 08:05:05 [2025-03-30 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794838', 'tblTempUsageDetail_20' ) start [2025-03-30 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794838', 'tblTempUsageDetail_20' ) end [2025-03-30 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794838', 'tblTempVendorCDR_20' ) start [2025-03-30 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794838', 'tblTempVendorCDR_20' ) end [2025-03-30 08:05:18] Production.INFO: ProcessCDR(1,14794838,1,1,2) [2025-03-30 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794838', 'tblTempUsageDetail_20' ) start [2025-03-30 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794838', 'tblTempUsageDetail_20' ) end [2025-03-30 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:05:21] Production.INFO: ==6042== Releasing lock... [2025-03-30 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:06:05 [end_date_ymd] => 2025-03-30 08:06:05 [RateCDR] => 1 ) [2025-03-30 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:06:05' and `end` < '2025-03-30 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:06:18] Production.INFO: count ==157 [2025-03-30 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:06:05 - End Time 2025-03-30 08:06:05 [2025-03-30 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794843', 'tblTempUsageDetail_20' ) start [2025-03-30 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794843', 'tblTempUsageDetail_20' ) end [2025-03-30 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794843', 'tblTempVendorCDR_20' ) start [2025-03-30 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794843', 'tblTempVendorCDR_20' ) end [2025-03-30 08:06:18] Production.INFO: ProcessCDR(1,14794843,1,1,2) [2025-03-30 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794843', 'tblTempUsageDetail_20' ) start [2025-03-30 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794843', 'tblTempUsageDetail_20' ) end [2025-03-30 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:06:21] Production.INFO: ==6138== Releasing lock... [2025-03-30 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:07:05 [end_date_ymd] => 2025-03-30 08:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:07:05' and `end` < '2025-03-30 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-03-30 08:07:17] Production.INFO: count ==153 [2025-03-30 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:07:05 - End Time 2025-03-30 08:07:05 [2025-03-30 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794848', 'tblTempUsageDetail_20' ) start [2025-03-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794848', 'tblTempUsageDetail_20' ) end [2025-03-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794848', 'tblTempVendorCDR_20' ) start [2025-03-30 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794848', 'tblTempVendorCDR_20' ) end [2025-03-30 08:07:17] Production.INFO: ProcessCDR(1,14794848,1,1,2) [2025-03-30 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794848', 'tblTempUsageDetail_20' ) start [2025-03-30 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794848', 'tblTempUsageDetail_20' ) end [2025-03-30 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:07:21] Production.INFO: ==6234== Releasing lock... [2025-03-30 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:08:05 [end_date_ymd] => 2025-03-30 08:08:05 [RateCDR] => 1 ) [2025-03-30 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:08:05' and `end` < '2025-03-30 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:08:18] Production.INFO: count ==155 [2025-03-30 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:08:05 - End Time 2025-03-30 08:08:05 [2025-03-30 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794853', 'tblTempUsageDetail_20' ) start [2025-03-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794853', 'tblTempUsageDetail_20' ) end [2025-03-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794853', 'tblTempVendorCDR_20' ) start [2025-03-30 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794853', 'tblTempVendorCDR_20' ) end [2025-03-30 08:08:18] Production.INFO: ProcessCDR(1,14794853,1,1,2) [2025-03-30 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794853', 'tblTempUsageDetail_20' ) start [2025-03-30 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794853', 'tblTempUsageDetail_20' ) end [2025-03-30 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:08:21] Production.INFO: ==6372== Releasing lock... [2025-03-30 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-30 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:09:05 [end_date_ymd] => 2025-03-30 08:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:09:05' and `end` < '2025-03-30 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-03-30 08:09:17] Production.INFO: count ==161 [2025-03-30 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:09:05 - End Time 2025-03-30 08:09:05 [2025-03-30 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794858', 'tblTempUsageDetail_20' ) start [2025-03-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794858', 'tblTempUsageDetail_20' ) end [2025-03-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794858', 'tblTempVendorCDR_20' ) start [2025-03-30 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794858', 'tblTempVendorCDR_20' ) end [2025-03-30 08:09:17] Production.INFO: ProcessCDR(1,14794858,1,1,2) [2025-03-30 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794858', 'tblTempUsageDetail_20' ) start [2025-03-30 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794858', 'tblTempUsageDetail_20' ) end [2025-03-30 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:09:21] Production.INFO: ==6465== Releasing lock... [2025-03-30 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:10:06 [end_date_ymd] => 2025-03-30 08:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:10:06' and `end` < '2025-03-30 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-03-30 08:10:19] Production.INFO: count ==161 [2025-03-30 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 05:10:06 - End Time 2025-03-30 08:10:06 [2025-03-30 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794864', 'tblTempUsageDetail_20' ) start [2025-03-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794864', 'tblTempUsageDetail_20' ) end [2025-03-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794864', 'tblTempVendorCDR_20' ) start [2025-03-30 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794864', 'tblTempVendorCDR_20' ) end [2025-03-30 08:10:19] Production.INFO: ProcessCDR(1,14794864,1,1,2) [2025-03-30 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794864', 'tblTempUsageDetail_20' ) start [2025-03-30 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794864', 'tblTempUsageDetail_20' ) end [2025-03-30 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:10:22] Production.INFO: ==6568== Releasing lock... [2025-03-30 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:11:05 [end_date_ymd] => 2025-03-30 08:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:11:05' and `end` < '2025-03-30 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-03-30 08:11:18] Production.INFO: count ==161 [2025-03-30 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:11:05 - End Time 2025-03-30 08:11:05 [2025-03-30 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794869', 'tblTempUsageDetail_20' ) start [2025-03-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794869', 'tblTempUsageDetail_20' ) end [2025-03-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794869', 'tblTempVendorCDR_20' ) start [2025-03-30 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794869', 'tblTempVendorCDR_20' ) end [2025-03-30 08:11:18] Production.INFO: ProcessCDR(1,14794869,1,1,2) [2025-03-30 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794869', 'tblTempUsageDetail_20' ) start [2025-03-30 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794869', 'tblTempUsageDetail_20' ) end [2025-03-30 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:11:21] Production.INFO: ==6663== Releasing lock... [2025-03-30 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:12:05 [end_date_ymd] => 2025-03-30 08:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:12:05' and `end` < '2025-03-30 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-03-30 08:12:18] Production.INFO: count ==161 [2025-03-30 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:12:05 - End Time 2025-03-30 08:12:05 [2025-03-30 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794874', 'tblTempUsageDetail_20' ) start [2025-03-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794874', 'tblTempUsageDetail_20' ) end [2025-03-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794874', 'tblTempVendorCDR_20' ) start [2025-03-30 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794874', 'tblTempVendorCDR_20' ) end [2025-03-30 08:12:18] Production.INFO: ProcessCDR(1,14794874,1,1,2) [2025-03-30 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794874', 'tblTempUsageDetail_20' ) start [2025-03-30 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794874', 'tblTempUsageDetail_20' ) end [2025-03-30 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:12:21] Production.INFO: ==6753== Releasing lock... [2025-03-30 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:13:05 [end_date_ymd] => 2025-03-30 08:13:05 [RateCDR] => 1 ) [2025-03-30 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:13:05' and `end` < '2025-03-30 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:13:17] Production.INFO: count ==161 [2025-03-30 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:13:05 - End Time 2025-03-30 08:13:05 [2025-03-30 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794879', 'tblTempUsageDetail_20' ) start [2025-03-30 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794879', 'tblTempUsageDetail_20' ) end [2025-03-30 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794879', 'tblTempVendorCDR_20' ) start [2025-03-30 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794879', 'tblTempVendorCDR_20' ) end [2025-03-30 08:13:17] Production.INFO: ProcessCDR(1,14794879,1,1,2) [2025-03-30 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794879', 'tblTempUsageDetail_20' ) start [2025-03-30 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794879', 'tblTempUsageDetail_20' ) end [2025-03-30 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:13:20] Production.INFO: ==6847== Releasing lock... [2025-03-30 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:13:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:14:06 [end_date_ymd] => 2025-03-30 08:14:06 [RateCDR] => 1 ) [2025-03-30 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:14:06' and `end` < '2025-03-30 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:14:18] Production.INFO: count ==157 [2025-03-30 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:14:06 - End Time 2025-03-30 08:14:06 [2025-03-30 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794884', 'tblTempUsageDetail_20' ) start [2025-03-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794884', 'tblTempUsageDetail_20' ) end [2025-03-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794884', 'tblTempVendorCDR_20' ) start [2025-03-30 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794884', 'tblTempVendorCDR_20' ) end [2025-03-30 08:14:18] Production.INFO: ProcessCDR(1,14794884,1,1,2) [2025-03-30 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794884', 'tblTempUsageDetail_20' ) start [2025-03-30 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794884', 'tblTempUsageDetail_20' ) end [2025-03-30 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:14:21] Production.INFO: ==6945== Releasing lock... [2025-03-30 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:15:05 [end_date_ymd] => 2025-03-30 08:15:05 [RateCDR] => 1 ) [2025-03-30 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:15:05' and `end` < '2025-03-30 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:15:17] Production.INFO: count ==157 [2025-03-30 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:15:05 - End Time 2025-03-30 08:15:05 [2025-03-30 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794889', 'tblTempUsageDetail_20' ) start [2025-03-30 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794889', 'tblTempUsageDetail_20' ) end [2025-03-30 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794889', 'tblTempVendorCDR_20' ) start [2025-03-30 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794889', 'tblTempVendorCDR_20' ) end [2025-03-30 08:15:17] Production.INFO: ProcessCDR(1,14794889,1,1,2) [2025-03-30 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794889', 'tblTempUsageDetail_20' ) start [2025-03-30 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794889', 'tblTempUsageDetail_20' ) end [2025-03-30 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:15:21] Production.INFO: ==7038== Releasing lock... [2025-03-30 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:16:05 [end_date_ymd] => 2025-03-30 08:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:16:05' and `end` < '2025-03-30 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-03-30 08:16:18] Production.INFO: count ==158 [2025-03-30 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:16:05 - End Time 2025-03-30 08:16:05 [2025-03-30 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794894', 'tblTempUsageDetail_20' ) start [2025-03-30 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794894', 'tblTempUsageDetail_20' ) end [2025-03-30 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794894', 'tblTempVendorCDR_20' ) start [2025-03-30 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794894', 'tblTempVendorCDR_20' ) end [2025-03-30 08:16:18] Production.INFO: ProcessCDR(1,14794894,1,1,2) [2025-03-30 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794894', 'tblTempUsageDetail_20' ) start [2025-03-30 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794894', 'tblTempUsageDetail_20' ) end [2025-03-30 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:16:23] Production.INFO: ==7132== Releasing lock... [2025-03-30 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:16:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-30 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:17:05 [end_date_ymd] => 2025-03-30 08:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:17:05' and `end` < '2025-03-30 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-03-30 08:17:18] Production.INFO: count ==154 [2025-03-30 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:17:05 - End Time 2025-03-30 08:17:05 [2025-03-30 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794899', 'tblTempUsageDetail_20' ) start [2025-03-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794899', 'tblTempUsageDetail_20' ) end [2025-03-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794899', 'tblTempVendorCDR_20' ) start [2025-03-30 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794899', 'tblTempVendorCDR_20' ) end [2025-03-30 08:17:18] Production.INFO: ProcessCDR(1,14794899,1,1,2) [2025-03-30 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794899', 'tblTempUsageDetail_20' ) start [2025-03-30 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794899', 'tblTempUsageDetail_20' ) end [2025-03-30 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:17:21] Production.INFO: ==7225== Releasing lock... [2025-03-30 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:18:05 [end_date_ymd] => 2025-03-30 08:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:18:05' and `end` < '2025-03-30 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-03-30 08:18:17] Production.INFO: count ==146 [2025-03-30 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:18:05 - End Time 2025-03-30 08:18:05 [2025-03-30 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794904', 'tblTempUsageDetail_20' ) start [2025-03-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794904', 'tblTempUsageDetail_20' ) end [2025-03-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794904', 'tblTempVendorCDR_20' ) start [2025-03-30 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794904', 'tblTempVendorCDR_20' ) end [2025-03-30 08:18:17] Production.INFO: ProcessCDR(1,14794904,1,1,2) [2025-03-30 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794904', 'tblTempUsageDetail_20' ) start [2025-03-30 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794904', 'tblTempUsageDetail_20' ) end [2025-03-30 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:18:21] Production.INFO: ==7322== Releasing lock... [2025-03-30 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:19:06 [end_date_ymd] => 2025-03-30 08:19:06 [RateCDR] => 1 ) [2025-03-30 08:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:19:06' and `end` < '2025-03-30 08:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:19:18] Production.INFO: count ==148 [2025-03-30 08:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:19:06 - End Time 2025-03-30 08:19:06 [2025-03-30 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794909', 'tblTempUsageDetail_20' ) start [2025-03-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794909', 'tblTempUsageDetail_20' ) end [2025-03-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794909', 'tblTempVendorCDR_20' ) start [2025-03-30 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794909', 'tblTempVendorCDR_20' ) end [2025-03-30 08:19:18] Production.INFO: ProcessCDR(1,14794909,1,1,2) [2025-03-30 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794909', 'tblTempUsageDetail_20' ) start [2025-03-30 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794909', 'tblTempUsageDetail_20' ) end [2025-03-30 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:19:21] Production.INFO: ==7422== Releasing lock... [2025-03-30 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:20:06 [end_date_ymd] => 2025-03-30 08:20:06 [RateCDR] => 1 ) [2025-03-30 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:20:06' and `end` < '2025-03-30 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:20:18] Production.INFO: count ==156 [2025-03-30 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:20:06 - End Time 2025-03-30 08:20:06 [2025-03-30 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794915', 'tblTempUsageDetail_20' ) start [2025-03-30 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794915', 'tblTempUsageDetail_20' ) end [2025-03-30 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794915', 'tblTempVendorCDR_20' ) start [2025-03-30 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794915', 'tblTempVendorCDR_20' ) end [2025-03-30 08:20:18] Production.INFO: ProcessCDR(1,14794915,1,1,2) [2025-03-30 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794915', 'tblTempUsageDetail_20' ) start [2025-03-30 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794915', 'tblTempUsageDetail_20' ) end [2025-03-30 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:20:22] Production.INFO: ==7521== Releasing lock... [2025-03-30 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:21:06 [end_date_ymd] => 2025-03-30 08:21:06 [RateCDR] => 1 ) [2025-03-30 08:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:21:06' and `end` < '2025-03-30 08:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:21:18] Production.INFO: count ==156 [2025-03-30 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:21:06 - End Time 2025-03-30 08:21:06 [2025-03-30 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794920', 'tblTempUsageDetail_20' ) start [2025-03-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794920', 'tblTempUsageDetail_20' ) end [2025-03-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794920', 'tblTempVendorCDR_20' ) start [2025-03-30 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794920', 'tblTempVendorCDR_20' ) end [2025-03-30 08:21:18] Production.INFO: ProcessCDR(1,14794920,1,1,2) [2025-03-30 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794920', 'tblTempUsageDetail_20' ) start [2025-03-30 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794920', 'tblTempUsageDetail_20' ) end [2025-03-30 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:21:22] Production.INFO: ==7615== Releasing lock... [2025-03-30 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:22:05 [end_date_ymd] => 2025-03-30 08:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:22:05' and `end` < '2025-03-30 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-03-30 08:22:17] Production.INFO: count ==158 [2025-03-30 08:22:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:22:05 - End Time 2025-03-30 08:22:05 [2025-03-30 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794925', 'tblTempUsageDetail_20' ) start [2025-03-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794925', 'tblTempUsageDetail_20' ) end [2025-03-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794925', 'tblTempVendorCDR_20' ) start [2025-03-30 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794925', 'tblTempVendorCDR_20' ) end [2025-03-30 08:22:17] Production.INFO: ProcessCDR(1,14794925,1,1,2) [2025-03-30 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794925', 'tblTempUsageDetail_20' ) start [2025-03-30 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794925', 'tblTempUsageDetail_20' ) end [2025-03-30 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:22:21] Production.INFO: ==7688== Releasing lock... [2025-03-30 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:23:05 [end_date_ymd] => 2025-03-30 08:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:23:05' and `end` < '2025-03-30 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-03-30 08:23:18] Production.INFO: count ==158 [2025-03-30 08:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:23:05 - End Time 2025-03-30 08:23:05 [2025-03-30 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794930', 'tblTempUsageDetail_20' ) start [2025-03-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794930', 'tblTempUsageDetail_20' ) end [2025-03-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794930', 'tblTempVendorCDR_20' ) start [2025-03-30 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794930', 'tblTempVendorCDR_20' ) end [2025-03-30 08:23:18] Production.INFO: ProcessCDR(1,14794930,1,1,2) [2025-03-30 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794930', 'tblTempUsageDetail_20' ) start [2025-03-30 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794930', 'tblTempUsageDetail_20' ) end [2025-03-30 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:23:21] Production.INFO: ==7802== Releasing lock... [2025-03-30 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:24:05 [end_date_ymd] => 2025-03-30 08:24:05 [RateCDR] => 1 ) [2025-03-30 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:24:05' and `end` < '2025-03-30 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:24:18] Production.INFO: count ==158 [2025-03-30 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:24:05 - End Time 2025-03-30 08:24:05 [2025-03-30 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794935', 'tblTempUsageDetail_20' ) start [2025-03-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794935', 'tblTempUsageDetail_20' ) end [2025-03-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794935', 'tblTempVendorCDR_20' ) start [2025-03-30 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794935', 'tblTempVendorCDR_20' ) end [2025-03-30 08:24:18] Production.INFO: ProcessCDR(1,14794935,1,1,2) [2025-03-30 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794935', 'tblTempUsageDetail_20' ) start [2025-03-30 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794935', 'tblTempUsageDetail_20' ) end [2025-03-30 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:24:21] Production.INFO: ==7875== Releasing lock... [2025-03-30 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:25:06 [end_date_ymd] => 2025-03-30 08:25:06 [RateCDR] => 1 ) [2025-03-30 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:25:06' and `end` < '2025-03-30 08: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-03-30 08:25:18] Production.INFO: count ==158 [2025-03-30 08:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:25:06 - End Time 2025-03-30 08:25:06 [2025-03-30 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794940', 'tblTempUsageDetail_20' ) start [2025-03-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794940', 'tblTempUsageDetail_20' ) end [2025-03-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794940', 'tblTempVendorCDR_20' ) start [2025-03-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794940', 'tblTempVendorCDR_20' ) end [2025-03-30 08:25:18] Production.INFO: ProcessCDR(1,14794940,1,1,2) [2025-03-30 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794940', 'tblTempUsageDetail_20' ) start [2025-03-30 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794940', 'tblTempUsageDetail_20' ) end [2025-03-30 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:25:22] Production.INFO: ==7957== Releasing lock... [2025-03-30 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:26:06 [end_date_ymd] => 2025-03-30 08:26:06 [RateCDR] => 1 ) [2025-03-30 08: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-03-30 05:26:06' and `end` < '2025-03-30 08: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-03-30 08:26:18] Production.INFO: count ==154 [2025-03-30 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:26:06 - End Time 2025-03-30 08:26:06 [2025-03-30 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794945', 'tblTempUsageDetail_20' ) start [2025-03-30 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794945', 'tblTempUsageDetail_20' ) end [2025-03-30 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794945', 'tblTempVendorCDR_20' ) start [2025-03-30 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794945', 'tblTempVendorCDR_20' ) end [2025-03-30 08:26:18] Production.INFO: ProcessCDR(1,14794945,1,1,2) [2025-03-30 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794945', 'tblTempUsageDetail_20' ) start [2025-03-30 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794945', 'tblTempUsageDetail_20' ) end [2025-03-30 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:26:22] Production.INFO: ==8035== Releasing lock... [2025-03-30 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:26:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:27:05 [end_date_ymd] => 2025-03-30 08:27:05 [RateCDR] => 1 ) [2025-03-30 08:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:27:05' and `end` < '2025-03-30 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-03-30 08:27:18] Production.INFO: count ==154 [2025-03-30 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:27:05 - End Time 2025-03-30 08:27:05 [2025-03-30 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794950', 'tblTempUsageDetail_20' ) start [2025-03-30 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794950', 'tblTempUsageDetail_20' ) end [2025-03-30 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794950', 'tblTempVendorCDR_20' ) start [2025-03-30 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794950', 'tblTempVendorCDR_20' ) end [2025-03-30 08:27:18] Production.INFO: ProcessCDR(1,14794950,1,1,2) [2025-03-30 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794950', 'tblTempUsageDetail_20' ) start [2025-03-30 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794950', 'tblTempUsageDetail_20' ) end [2025-03-30 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:27:21] Production.INFO: ==8108== Releasing lock... [2025-03-30 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:28:06 [end_date_ymd] => 2025-03-30 08:28:06 [RateCDR] => 1 ) [2025-03-30 08: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-03-30 05:28:06' and `end` < '2025-03-30 08: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-03-30 08:28:19] Production.INFO: count ==156 [2025-03-30 08:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 05:28:06 - End Time 2025-03-30 08:28:06 [2025-03-30 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794955', 'tblTempUsageDetail_20' ) start [2025-03-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794955', 'tblTempUsageDetail_20' ) end [2025-03-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794955', 'tblTempVendorCDR_20' ) start [2025-03-30 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794955', 'tblTempVendorCDR_20' ) end [2025-03-30 08:28:19] Production.INFO: ProcessCDR(1,14794955,1,1,2) [2025-03-30 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794955', 'tblTempUsageDetail_20' ) start [2025-03-30 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794955', 'tblTempUsageDetail_20' ) end [2025-03-30 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:28:22] Production.INFO: ==8182== Releasing lock... [2025-03-30 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:29:05 [end_date_ymd] => 2025-03-30 08:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:29:05' and `end` < '2025-03-30 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-03-30 08:29:18] Production.INFO: count ==157 [2025-03-30 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:29:05 - End Time 2025-03-30 08:29:05 [2025-03-30 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794960', 'tblTempUsageDetail_20' ) start [2025-03-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794960', 'tblTempUsageDetail_20' ) end [2025-03-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794960', 'tblTempVendorCDR_20' ) start [2025-03-30 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794960', 'tblTempVendorCDR_20' ) end [2025-03-30 08:29:18] Production.INFO: ProcessCDR(1,14794960,1,1,2) [2025-03-30 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794960', 'tblTempUsageDetail_20' ) start [2025-03-30 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794960', 'tblTempUsageDetail_20' ) end [2025-03-30 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:29:21] Production.INFO: ==8260== Releasing lock... [2025-03-30 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:30:06 [end_date_ymd] => 2025-03-30 08:30:06 [RateCDR] => 1 ) [2025-03-30 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:30:06' and `end` < '2025-03-30 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:30:19] Production.INFO: count ==169 [2025-03-30 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 05:30:06 - End Time 2025-03-30 08:30:06 [2025-03-30 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794966', 'tblTempUsageDetail_20' ) start [2025-03-30 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794966', 'tblTempUsageDetail_20' ) end [2025-03-30 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794966', 'tblTempVendorCDR_20' ) start [2025-03-30 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794966', 'tblTempVendorCDR_20' ) end [2025-03-30 08:30:19] Production.INFO: ProcessCDR(1,14794966,1,1,2) [2025-03-30 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794966', 'tblTempUsageDetail_20' ) start [2025-03-30 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794966', 'tblTempUsageDetail_20' ) end [2025-03-30 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:30:24] Production.INFO: ==8340== Releasing lock... [2025-03-30 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:30:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:31:05 [end_date_ymd] => 2025-03-30 08:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:31:05' and `end` < '2025-03-30 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-03-30 08:31:17] Production.INFO: count ==166 [2025-03-30 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:31:05 - End Time 2025-03-30 08:31:05 [2025-03-30 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794971', 'tblTempUsageDetail_20' ) start [2025-03-30 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794971', 'tblTempUsageDetail_20' ) end [2025-03-30 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794971', 'tblTempVendorCDR_20' ) start [2025-03-30 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794971', 'tblTempVendorCDR_20' ) end [2025-03-30 08:31:17] Production.INFO: ProcessCDR(1,14794971,1,1,2) [2025-03-30 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794971', 'tblTempUsageDetail_20' ) start [2025-03-30 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794971', 'tblTempUsageDetail_20' ) end [2025-03-30 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:31:22] Production.INFO: ==8414== Releasing lock... [2025-03-30 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:31:22] Production.INFO: 30 MB #Memory Used# [2025-03-30 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:32:05 [end_date_ymd] => 2025-03-30 08:32:05 [RateCDR] => 1 ) [2025-03-30 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:32:05' and `end` < '2025-03-30 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:32:18] Production.INFO: count ==166 [2025-03-30 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:32:05 - End Time 2025-03-30 08:32:05 [2025-03-30 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794976', 'tblTempUsageDetail_20' ) start [2025-03-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794976', 'tblTempUsageDetail_20' ) end [2025-03-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794976', 'tblTempVendorCDR_20' ) start [2025-03-30 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794976', 'tblTempVendorCDR_20' ) end [2025-03-30 08:32:18] Production.INFO: ProcessCDR(1,14794976,1,1,2) [2025-03-30 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794976', 'tblTempUsageDetail_20' ) start [2025-03-30 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794976', 'tblTempUsageDetail_20' ) end [2025-03-30 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:32:21] Production.INFO: ==8494== Releasing lock... [2025-03-30 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:32:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:33:05 [end_date_ymd] => 2025-03-30 08:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:33:05' and `end` < '2025-03-30 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-03-30 08:33:18] Production.INFO: count ==168 [2025-03-30 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:33:05 - End Time 2025-03-30 08:33:05 [2025-03-30 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794981', 'tblTempUsageDetail_20' ) start [2025-03-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794981', 'tblTempUsageDetail_20' ) end [2025-03-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794981', 'tblTempVendorCDR_20' ) start [2025-03-30 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794981', 'tblTempVendorCDR_20' ) end [2025-03-30 08:33:18] Production.INFO: ProcessCDR(1,14794981,1,1,2) [2025-03-30 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794981', 'tblTempUsageDetail_20' ) start [2025-03-30 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794981', 'tblTempUsageDetail_20' ) end [2025-03-30 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:33:23] Production.INFO: ==8575== Releasing lock... [2025-03-30 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:33:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:34:05 [end_date_ymd] => 2025-03-30 08:34:05 [RateCDR] => 1 ) [2025-03-30 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:34:05' and `end` < '2025-03-30 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:34:18] Production.INFO: count ==168 [2025-03-30 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:34:05 - End Time 2025-03-30 08:34:05 [2025-03-30 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794986', 'tblTempUsageDetail_20' ) start [2025-03-30 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794986', 'tblTempUsageDetail_20' ) end [2025-03-30 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794986', 'tblTempVendorCDR_20' ) start [2025-03-30 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794986', 'tblTempVendorCDR_20' ) end [2025-03-30 08:34:18] Production.INFO: ProcessCDR(1,14794986,1,1,2) [2025-03-30 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794986', 'tblTempUsageDetail_20' ) start [2025-03-30 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794986', 'tblTempUsageDetail_20' ) end [2025-03-30 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:34:21] Production.INFO: ==8649== Releasing lock... [2025-03-30 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:35:06 [end_date_ymd] => 2025-03-30 08:35:06 [RateCDR] => 1 ) [2025-03-30 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:35:06' and `end` < '2025-03-30 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:35:18] Production.INFO: count ==168 [2025-03-30 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:35:06 - End Time 2025-03-30 08:35:06 [2025-03-30 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794991', 'tblTempUsageDetail_20' ) start [2025-03-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794991', 'tblTempUsageDetail_20' ) end [2025-03-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794991', 'tblTempVendorCDR_20' ) start [2025-03-30 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794991', 'tblTempVendorCDR_20' ) end [2025-03-30 08:35:18] Production.INFO: ProcessCDR(1,14794991,1,1,2) [2025-03-30 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794991', 'tblTempUsageDetail_20' ) start [2025-03-30 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794991', 'tblTempUsageDetail_20' ) end [2025-03-30 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:35:22] Production.INFO: ==8724== Releasing lock... [2025-03-30 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:36:05 [end_date_ymd] => 2025-03-30 08:36:05 [RateCDR] => 1 ) [2025-03-30 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:36:05' and `end` < '2025-03-30 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:36:17] Production.INFO: count ==169 [2025-03-30 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:36:05 - End Time 2025-03-30 08:36:05 [2025-03-30 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794996', 'tblTempUsageDetail_20' ) start [2025-03-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14794996', 'tblTempUsageDetail_20' ) end [2025-03-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794996', 'tblTempVendorCDR_20' ) start [2025-03-30 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14794996', 'tblTempVendorCDR_20' ) end [2025-03-30 08:36:17] Production.INFO: ProcessCDR(1,14794996,1,1,2) [2025-03-30 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14794996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14794996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14794996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14794996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794996', 'tblTempUsageDetail_20' ) start [2025-03-30 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14794996', 'tblTempUsageDetail_20' ) end [2025-03-30 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:36:22] Production.INFO: ==8798== Releasing lock... [2025-03-30 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:37:05 [end_date_ymd] => 2025-03-30 08:37:05 [RateCDR] => 1 ) [2025-03-30 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:37:05' and `end` < '2025-03-30 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:37:18] Production.INFO: count ==170 [2025-03-30 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:37:05 - End Time 2025-03-30 08:37:05 [2025-03-30 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795001', 'tblTempUsageDetail_20' ) start [2025-03-30 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795001', 'tblTempUsageDetail_20' ) end [2025-03-30 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795001', 'tblTempVendorCDR_20' ) start [2025-03-30 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795001', 'tblTempVendorCDR_20' ) end [2025-03-30 08:37:18] Production.INFO: ProcessCDR(1,14795001,1,1,2) [2025-03-30 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795001', 'tblTempUsageDetail_20' ) start [2025-03-30 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795001', 'tblTempUsageDetail_20' ) end [2025-03-30 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:37:23] Production.INFO: ==8875== Releasing lock... [2025-03-30 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:37:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-30 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:38:05 [end_date_ymd] => 2025-03-30 08:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:38:05' and `end` < '2025-03-30 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-03-30 08:38:17] Production.INFO: count ==170 [2025-03-30 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:38:05 - End Time 2025-03-30 08:38:05 [2025-03-30 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795006', 'tblTempUsageDetail_20' ) start [2025-03-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795006', 'tblTempUsageDetail_20' ) end [2025-03-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795006', 'tblTempVendorCDR_20' ) start [2025-03-30 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795006', 'tblTempVendorCDR_20' ) end [2025-03-30 08:38:17] Production.INFO: ProcessCDR(1,14795006,1,1,2) [2025-03-30 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795006', 'tblTempUsageDetail_20' ) start [2025-03-30 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795006', 'tblTempUsageDetail_20' ) end [2025-03-30 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:38:21] Production.INFO: ==8956== Releasing lock... [2025-03-30 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-30 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:39:05 [end_date_ymd] => 2025-03-30 08:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:39:05' and `end` < '2025-03-30 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-03-30 08:39:18] Production.INFO: count ==167 [2025-03-30 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:39:05 - End Time 2025-03-30 08:39:05 [2025-03-30 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795011', 'tblTempUsageDetail_20' ) start [2025-03-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795011', 'tblTempUsageDetail_20' ) end [2025-03-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795011', 'tblTempVendorCDR_20' ) start [2025-03-30 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795011', 'tblTempVendorCDR_20' ) end [2025-03-30 08:39:18] Production.INFO: ProcessCDR(1,14795011,1,1,2) [2025-03-30 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795011', 'tblTempUsageDetail_20' ) start [2025-03-30 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795011', 'tblTempUsageDetail_20' ) end [2025-03-30 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:39:23] Production.INFO: ==9071== Releasing lock... [2025-03-30 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:39:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-30 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:40:06 [end_date_ymd] => 2025-03-30 08:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:40:06' and `end` < '2025-03-30 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-03-30 08:40:18] Production.INFO: count ==169 [2025-03-30 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:40:06 - End Time 2025-03-30 08:40:06 [2025-03-30 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795017', 'tblTempUsageDetail_20' ) start [2025-03-30 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795017', 'tblTempUsageDetail_20' ) end [2025-03-30 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795017', 'tblTempVendorCDR_20' ) start [2025-03-30 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795017', 'tblTempVendorCDR_20' ) end [2025-03-30 08:40:18] Production.INFO: ProcessCDR(1,14795017,1,1,2) [2025-03-30 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795017', 'tblTempUsageDetail_20' ) start [2025-03-30 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795017', 'tblTempUsageDetail_20' ) end [2025-03-30 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:40:22] Production.INFO: ==9146== Releasing lock... [2025-03-30 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:41:05 [end_date_ymd] => 2025-03-30 08:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:41:05' and `end` < '2025-03-30 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-03-30 08:41:18] Production.INFO: count ==169 [2025-03-30 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:41:05 - End Time 2025-03-30 08:41:05 [2025-03-30 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795022', 'tblTempUsageDetail_20' ) start [2025-03-30 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795022', 'tblTempUsageDetail_20' ) end [2025-03-30 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795022', 'tblTempVendorCDR_20' ) start [2025-03-30 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795022', 'tblTempVendorCDR_20' ) end [2025-03-30 08:41:18] Production.INFO: ProcessCDR(1,14795022,1,1,2) [2025-03-30 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795022', 'tblTempUsageDetail_20' ) start [2025-03-30 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795022', 'tblTempUsageDetail_20' ) end [2025-03-30 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:41:21] Production.INFO: ==9231== Releasing lock... [2025-03-30 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:42:05 [end_date_ymd] => 2025-03-30 08:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:42:05' and `end` < '2025-03-30 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-03-30 08:42:17] Production.INFO: count ==169 [2025-03-30 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:42:05 - End Time 2025-03-30 08:42:05 [2025-03-30 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795027', 'tblTempUsageDetail_20' ) start [2025-03-30 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795027', 'tblTempUsageDetail_20' ) end [2025-03-30 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795027', 'tblTempVendorCDR_20' ) start [2025-03-30 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795027', 'tblTempVendorCDR_20' ) end [2025-03-30 08:42:17] Production.INFO: ProcessCDR(1,14795027,1,1,2) [2025-03-30 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795027', 'tblTempUsageDetail_20' ) start [2025-03-30 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795027', 'tblTempUsageDetail_20' ) end [2025-03-30 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:42:21] Production.INFO: ==9306== Releasing lock... [2025-03-30 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:43:05 [end_date_ymd] => 2025-03-30 08:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:43:05' and `end` < '2025-03-30 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-03-30 08:43:18] Production.INFO: count ==169 [2025-03-30 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:43:05 - End Time 2025-03-30 08:43:05 [2025-03-30 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795032', 'tblTempUsageDetail_20' ) start [2025-03-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795032', 'tblTempUsageDetail_20' ) end [2025-03-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795032', 'tblTempVendorCDR_20' ) start [2025-03-30 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795032', 'tblTempVendorCDR_20' ) end [2025-03-30 08:43:18] Production.INFO: ProcessCDR(1,14795032,1,1,2) [2025-03-30 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795032', 'tblTempUsageDetail_20' ) start [2025-03-30 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795032', 'tblTempUsageDetail_20' ) end [2025-03-30 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:43:21] Production.INFO: ==9379== Releasing lock... [2025-03-30 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:44:05 [end_date_ymd] => 2025-03-30 08:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:44:05' and `end` < '2025-03-30 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-03-30 08:44:17] Production.INFO: count ==169 [2025-03-30 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:44:05 - End Time 2025-03-30 08:44:05 [2025-03-30 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795037', 'tblTempUsageDetail_20' ) start [2025-03-30 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795037', 'tblTempUsageDetail_20' ) end [2025-03-30 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795037', 'tblTempVendorCDR_20' ) start [2025-03-30 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795037', 'tblTempVendorCDR_20' ) end [2025-03-30 08:44:17] Production.INFO: ProcessCDR(1,14795037,1,1,2) [2025-03-30 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795037', 'tblTempUsageDetail_20' ) start [2025-03-30 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795037', 'tblTempUsageDetail_20' ) end [2025-03-30 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:44:21] Production.INFO: ==9452== Releasing lock... [2025-03-30 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:45:05 [end_date_ymd] => 2025-03-30 08:45:05 [RateCDR] => 1 ) [2025-03-30 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:45:05' and `end` < '2025-03-30 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:45:18] Production.INFO: count ==169 [2025-03-30 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:45:05 - End Time 2025-03-30 08:45:05 [2025-03-30 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795042', 'tblTempUsageDetail_20' ) start [2025-03-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795042', 'tblTempUsageDetail_20' ) end [2025-03-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795042', 'tblTempVendorCDR_20' ) start [2025-03-30 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795042', 'tblTempVendorCDR_20' ) end [2025-03-30 08:45:18] Production.INFO: ProcessCDR(1,14795042,1,1,2) [2025-03-30 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795042', 'tblTempUsageDetail_20' ) start [2025-03-30 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795042', 'tblTempUsageDetail_20' ) end [2025-03-30 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:45:21] Production.INFO: ==9529== Releasing lock... [2025-03-30 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:46:04 [end_date_ymd] => 2025-03-30 08:46:04 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:46:04' and `end` < '2025-03-30 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-03-30 08:46:17] Production.INFO: count ==165 [2025-03-30 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:46:04 - End Time 2025-03-30 08:46:04 [2025-03-30 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795047', 'tblTempUsageDetail_20' ) start [2025-03-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795047', 'tblTempUsageDetail_20' ) end [2025-03-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795047', 'tblTempVendorCDR_20' ) start [2025-03-30 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795047', 'tblTempVendorCDR_20' ) end [2025-03-30 08:46:17] Production.INFO: ProcessCDR(1,14795047,1,1,2) [2025-03-30 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795047', 'tblTempUsageDetail_20' ) start [2025-03-30 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795047', 'tblTempUsageDetail_20' ) end [2025-03-30 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:46:20] Production.INFO: ==9608== Releasing lock... [2025-03-30 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:46:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:47:06 [end_date_ymd] => 2025-03-30 08:47:06 [RateCDR] => 1 ) [2025-03-30 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:47:06' and `end` < '2025-03-30 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:47:18] Production.INFO: count ==165 [2025-03-30 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:47:06 - End Time 2025-03-30 08:47:06 [2025-03-30 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795052', 'tblTempUsageDetail_20' ) start [2025-03-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795052', 'tblTempUsageDetail_20' ) end [2025-03-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795052', 'tblTempVendorCDR_20' ) start [2025-03-30 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795052', 'tblTempVendorCDR_20' ) end [2025-03-30 08:47:18] Production.INFO: ProcessCDR(1,14795052,1,1,2) [2025-03-30 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795052', 'tblTempUsageDetail_20' ) start [2025-03-30 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795052', 'tblTempUsageDetail_20' ) end [2025-03-30 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:47:21] Production.INFO: ==9685== Releasing lock... [2025-03-30 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:48:05 [end_date_ymd] => 2025-03-30 08:48:05 [RateCDR] => 1 ) [2025-03-30 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:48:05' and `end` < '2025-03-30 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:48:17] Production.INFO: count ==165 [2025-03-30 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:48:05 - End Time 2025-03-30 08:48:05 [2025-03-30 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795057', 'tblTempUsageDetail_20' ) start [2025-03-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795057', 'tblTempUsageDetail_20' ) end [2025-03-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795057', 'tblTempVendorCDR_20' ) start [2025-03-30 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795057', 'tblTempVendorCDR_20' ) end [2025-03-30 08:48:17] Production.INFO: ProcessCDR(1,14795057,1,1,2) [2025-03-30 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795057', 'tblTempUsageDetail_20' ) start [2025-03-30 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795057', 'tblTempUsageDetail_20' ) end [2025-03-30 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:48:21] Production.INFO: ==9761== Releasing lock... [2025-03-30 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:49:05 [end_date_ymd] => 2025-03-30 08:49:05 [RateCDR] => 1 ) [2025-03-30 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:49:05' and `end` < '2025-03-30 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:49:18] Production.INFO: count ==165 [2025-03-30 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:49:05 - End Time 2025-03-30 08:49:05 [2025-03-30 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795062', 'tblTempUsageDetail_20' ) start [2025-03-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795062', 'tblTempUsageDetail_20' ) end [2025-03-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795062', 'tblTempVendorCDR_20' ) start [2025-03-30 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795062', 'tblTempVendorCDR_20' ) end [2025-03-30 08:49:18] Production.INFO: ProcessCDR(1,14795062,1,1,2) [2025-03-30 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795062', 'tblTempUsageDetail_20' ) start [2025-03-30 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795062', 'tblTempUsageDetail_20' ) end [2025-03-30 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:49:21] Production.INFO: ==9842== Releasing lock... [2025-03-30 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:50:06 [end_date_ymd] => 2025-03-30 08:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:50:06' and `end` < '2025-03-30 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-03-30 08:50:18] Production.INFO: count ==165 [2025-03-30 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:50:06 - End Time 2025-03-30 08:50:06 [2025-03-30 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795067', 'tblTempUsageDetail_20' ) start [2025-03-30 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795067', 'tblTempUsageDetail_20' ) end [2025-03-30 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795067', 'tblTempVendorCDR_20' ) start [2025-03-30 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795067', 'tblTempVendorCDR_20' ) end [2025-03-30 08:50:18] Production.INFO: ProcessCDR(1,14795067,1,1,2) [2025-03-30 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795067', 'tblTempUsageDetail_20' ) start [2025-03-30 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795067', 'tblTempUsageDetail_20' ) end [2025-03-30 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:50:22] Production.INFO: ==9943== Releasing lock... [2025-03-30 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:51:05 [end_date_ymd] => 2025-03-30 08:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:51:05' and `end` < '2025-03-30 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-03-30 08:51:17] Production.INFO: count ==165 [2025-03-30 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:51:05 - End Time 2025-03-30 08:51:05 [2025-03-30 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795073', 'tblTempUsageDetail_20' ) start [2025-03-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795073', 'tblTempUsageDetail_20' ) end [2025-03-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795073', 'tblTempVendorCDR_20' ) start [2025-03-30 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795073', 'tblTempVendorCDR_20' ) end [2025-03-30 08:51:17] Production.INFO: ProcessCDR(1,14795073,1,1,2) [2025-03-30 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795073', 'tblTempUsageDetail_20' ) start [2025-03-30 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795073', 'tblTempUsageDetail_20' ) end [2025-03-30 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:51:21] Production.INFO: ==10038== Releasing lock... [2025-03-30 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:52:05 [end_date_ymd] => 2025-03-30 08:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:52:05' and `end` < '2025-03-30 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-03-30 08:52:18] Production.INFO: count ==171 [2025-03-30 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:52:05 - End Time 2025-03-30 08:52:05 [2025-03-30 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795078', 'tblTempUsageDetail_20' ) start [2025-03-30 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795078', 'tblTempUsageDetail_20' ) end [2025-03-30 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795078', 'tblTempVendorCDR_20' ) start [2025-03-30 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795078', 'tblTempVendorCDR_20' ) end [2025-03-30 08:52:18] Production.INFO: ProcessCDR(1,14795078,1,1,2) [2025-03-30 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795078', 'tblTempUsageDetail_20' ) start [2025-03-30 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795078', 'tblTempUsageDetail_20' ) end [2025-03-30 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:52:21] Production.INFO: ==10120== Releasing lock... [2025-03-30 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:53:05 [end_date_ymd] => 2025-03-30 08:53:05 [RateCDR] => 1 ) [2025-03-30 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:53:05' and `end` < '2025-03-30 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:53:17] Production.INFO: count ==171 [2025-03-30 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:53:05 - End Time 2025-03-30 08:53:05 [2025-03-30 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795083', 'tblTempUsageDetail_20' ) start [2025-03-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795083', 'tblTempUsageDetail_20' ) end [2025-03-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795083', 'tblTempVendorCDR_20' ) start [2025-03-30 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795083', 'tblTempVendorCDR_20' ) end [2025-03-30 08:53:18] Production.INFO: ProcessCDR(1,14795083,1,1,2) [2025-03-30 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795083', 'tblTempUsageDetail_20' ) start [2025-03-30 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795083', 'tblTempUsageDetail_20' ) end [2025-03-30 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:53:21] Production.INFO: ==10212== Releasing lock... [2025-03-30 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:54:05 [end_date_ymd] => 2025-03-30 08:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:54:05' and `end` < '2025-03-30 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-03-30 08:54:17] Production.INFO: count ==174 [2025-03-30 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:54:05 - End Time 2025-03-30 08:54:05 [2025-03-30 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795088', 'tblTempUsageDetail_20' ) start [2025-03-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795088', 'tblTempUsageDetail_20' ) end [2025-03-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795088', 'tblTempVendorCDR_20' ) start [2025-03-30 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795088', 'tblTempVendorCDR_20' ) end [2025-03-30 08:54:18] Production.INFO: ProcessCDR(1,14795088,1,1,2) [2025-03-30 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795088', 'tblTempUsageDetail_20' ) start [2025-03-30 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795088', 'tblTempUsageDetail_20' ) end [2025-03-30 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:54:21] Production.INFO: ==10338== Releasing lock... [2025-03-30 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:55:05 [end_date_ymd] => 2025-03-30 08:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:55:05' and `end` < '2025-03-30 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-03-30 08:55:17] Production.INFO: count ==173 [2025-03-30 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:55:05 - End Time 2025-03-30 08:55:05 [2025-03-30 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795093', 'tblTempUsageDetail_20' ) start [2025-03-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795093', 'tblTempUsageDetail_20' ) end [2025-03-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795093', 'tblTempVendorCDR_20' ) start [2025-03-30 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795093', 'tblTempVendorCDR_20' ) end [2025-03-30 08:55:18] Production.INFO: ProcessCDR(1,14795093,1,1,2) [2025-03-30 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795093', 'tblTempUsageDetail_20' ) start [2025-03-30 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795093', 'tblTempUsageDetail_20' ) end [2025-03-30 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:55:21] Production.INFO: ==10423== Releasing lock... [2025-03-30 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:56:06 [end_date_ymd] => 2025-03-30 08:56:06 [RateCDR] => 1 ) [2025-03-30 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 05:56:06' and `end` < '2025-03-30 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 08:56:18] Production.INFO: count ==173 [2025-03-30 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:56:06 - End Time 2025-03-30 08:56:06 [2025-03-30 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795098', 'tblTempUsageDetail_20' ) start [2025-03-30 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795098', 'tblTempUsageDetail_20' ) end [2025-03-30 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795098', 'tblTempVendorCDR_20' ) start [2025-03-30 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795098', 'tblTempVendorCDR_20' ) end [2025-03-30 08:56:18] Production.INFO: ProcessCDR(1,14795098,1,1,2) [2025-03-30 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795098', 'tblTempUsageDetail_20' ) start [2025-03-30 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795098', 'tblTempUsageDetail_20' ) end [2025-03-30 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:56:22] Production.INFO: ==10511== Releasing lock... [2025-03-30 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:57:05 [end_date_ymd] => 2025-03-30 08:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:57:05' and `end` < '2025-03-30 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-03-30 08:57:17] Production.INFO: count ==173 [2025-03-30 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:57:05 - End Time 2025-03-30 08:57:05 [2025-03-30 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795103', 'tblTempUsageDetail_20' ) start [2025-03-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795103', 'tblTempUsageDetail_20' ) end [2025-03-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795103', 'tblTempVendorCDR_20' ) start [2025-03-30 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795103', 'tblTempVendorCDR_20' ) end [2025-03-30 08:57:17] Production.INFO: ProcessCDR(1,14795103,1,1,2) [2025-03-30 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795103', 'tblTempUsageDetail_20' ) start [2025-03-30 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795103', 'tblTempUsageDetail_20' ) end [2025-03-30 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:57:21] Production.INFO: ==10600== Releasing lock... [2025-03-30 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:58:05 [end_date_ymd] => 2025-03-30 08:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:58:05' and `end` < '2025-03-30 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-03-30 08:58:18] Production.INFO: count ==175 [2025-03-30 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-30 05:58:05 - End Time 2025-03-30 08:58:05 [2025-03-30 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795108', 'tblTempUsageDetail_20' ) start [2025-03-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795108', 'tblTempUsageDetail_20' ) end [2025-03-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795108', 'tblTempVendorCDR_20' ) start [2025-03-30 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795108', 'tblTempVendorCDR_20' ) end [2025-03-30 08:58:18] Production.INFO: ProcessCDR(1,14795108,1,1,2) [2025-03-30 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795108', 'tblTempUsageDetail_20' ) start [2025-03-30 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795108', 'tblTempUsageDetail_20' ) end [2025-03-30 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:58:21] Production.INFO: ==10690== Releasing lock... [2025-03-30 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 05:59:05 [end_date_ymd] => 2025-03-30 08:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 05:59:05' and `end` < '2025-03-30 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-03-30 08:59:17] Production.INFO: count ==173 [2025-03-30 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-30 05:59:05 - End Time 2025-03-30 08:59:05 [2025-03-30 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795113', 'tblTempUsageDetail_20' ) start [2025-03-30 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795113', 'tblTempUsageDetail_20' ) end [2025-03-30 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795113', 'tblTempVendorCDR_20' ) start [2025-03-30 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795113', 'tblTempVendorCDR_20' ) end [2025-03-30 08:59:17] Production.INFO: ProcessCDR(1,14795113,1,1,2) [2025-03-30 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795113', 'tblTempUsageDetail_20' ) start [2025-03-30 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795113', 'tblTempUsageDetail_20' ) end [2025-03-30 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 08:59:21] Production.INFO: ==10777== Releasing lock... [2025-03-30 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 08:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:00:06 [end_date_ymd] => 2025-03-30 09:00:06 [RateCDR] => 1 ) [2025-03-30 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:00:06' and `end` < '2025-03-30 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:00:19] Production.INFO: count ==182 [2025-03-30 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 06:00:06 - End Time 2025-03-30 09:00:06 [2025-03-30 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795119', 'tblTempUsageDetail_20' ) start [2025-03-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795119', 'tblTempUsageDetail_20' ) end [2025-03-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795119', 'tblTempVendorCDR_20' ) start [2025-03-30 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795119', 'tblTempVendorCDR_20' ) end [2025-03-30 09:00:19] Production.INFO: ProcessCDR(1,14795119,1,1,2) [2025-03-30 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795119', 'tblTempUsageDetail_20' ) start [2025-03-30 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795119', 'tblTempUsageDetail_20' ) end [2025-03-30 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:00:23] Production.INFO: ==10876== Releasing lock... [2025-03-30 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:01:05 [end_date_ymd] => 2025-03-30 09:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:01:05' and `end` < '2025-03-30 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-03-30 09:01:17] Production.INFO: count ==180 [2025-03-30 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:01:05 - End Time 2025-03-30 09:01:05 [2025-03-30 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795124', 'tblTempUsageDetail_20' ) start [2025-03-30 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795124', 'tblTempUsageDetail_20' ) end [2025-03-30 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795124', 'tblTempVendorCDR_20' ) start [2025-03-30 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795124', 'tblTempVendorCDR_20' ) end [2025-03-30 09:01:17] Production.INFO: ProcessCDR(1,14795124,1,1,2) [2025-03-30 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795124', 'tblTempUsageDetail_20' ) start [2025-03-30 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795124', 'tblTempUsageDetail_20' ) end [2025-03-30 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:01:21] Production.INFO: ==10976== Releasing lock... [2025-03-30 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:01:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:02:06 [end_date_ymd] => 2025-03-30 09:02:06 [RateCDR] => 1 ) [2025-03-30 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:02:06' and `end` < '2025-03-30 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:02:18] Production.INFO: count ==180 [2025-03-30 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:02:06 - End Time 2025-03-30 09:02:06 [2025-03-30 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795129', 'tblTempUsageDetail_20' ) start [2025-03-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795129', 'tblTempUsageDetail_20' ) end [2025-03-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795129', 'tblTempVendorCDR_20' ) start [2025-03-30 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795129', 'tblTempVendorCDR_20' ) end [2025-03-30 09:02:18] Production.INFO: ProcessCDR(1,14795129,1,1,2) [2025-03-30 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795129', 'tblTempUsageDetail_20' ) start [2025-03-30 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795129', 'tblTempUsageDetail_20' ) end [2025-03-30 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:02:23] Production.INFO: ==11067== Releasing lock... [2025-03-30 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:02:23] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:03:05 [end_date_ymd] => 2025-03-30 09:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:03:05' and `end` < '2025-03-30 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-03-30 09:03:18] Production.INFO: count ==181 [2025-03-30 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:03:05 - End Time 2025-03-30 09:03:05 [2025-03-30 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795134', 'tblTempUsageDetail_20' ) start [2025-03-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795134', 'tblTempUsageDetail_20' ) end [2025-03-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795134', 'tblTempVendorCDR_20' ) start [2025-03-30 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795134', 'tblTempVendorCDR_20' ) end [2025-03-30 09:03:18] Production.INFO: ProcessCDR(1,14795134,1,1,2) [2025-03-30 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795134', 'tblTempUsageDetail_20' ) start [2025-03-30 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795134', 'tblTempUsageDetail_20' ) end [2025-03-30 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:03:21] Production.INFO: ==11159== Releasing lock... [2025-03-30 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:04:05 [end_date_ymd] => 2025-03-30 09:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:04:05' and `end` < '2025-03-30 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-03-30 09:04:18] Production.INFO: count ==182 [2025-03-30 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:04:05 - End Time 2025-03-30 09:04:05 [2025-03-30 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795139', 'tblTempUsageDetail_20' ) start [2025-03-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795139', 'tblTempUsageDetail_20' ) end [2025-03-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795139', 'tblTempVendorCDR_20' ) start [2025-03-30 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795139', 'tblTempVendorCDR_20' ) end [2025-03-30 09:04:18] Production.INFO: ProcessCDR(1,14795139,1,1,2) [2025-03-30 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795139', 'tblTempUsageDetail_20' ) start [2025-03-30 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795139', 'tblTempUsageDetail_20' ) end [2025-03-30 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:04:21] Production.INFO: ==11245== Releasing lock... [2025-03-30 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-30 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:05:05 [end_date_ymd] => 2025-03-30 09:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:05:05' and `end` < '2025-03-30 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:05:18] Production.INFO: count ==184 [2025-03-30 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:05:05 - End Time 2025-03-30 09:05:05 [2025-03-30 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795144', 'tblTempUsageDetail_20' ) start [2025-03-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795144', 'tblTempUsageDetail_20' ) end [2025-03-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795144', 'tblTempVendorCDR_20' ) start [2025-03-30 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795144', 'tblTempVendorCDR_20' ) end [2025-03-30 09:05:18] Production.INFO: ProcessCDR(1,14795144,1,1,2) [2025-03-30 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795144', 'tblTempUsageDetail_20' ) start [2025-03-30 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795144', 'tblTempUsageDetail_20' ) end [2025-03-30 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:05:21] Production.INFO: ==11334== Releasing lock... [2025-03-30 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:06:05 [end_date_ymd] => 2025-03-30 09:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:06:05' and `end` < '2025-03-30 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-03-30 09:06:18] Production.INFO: count ==189 [2025-03-30 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:06:05 - End Time 2025-03-30 09:06:05 [2025-03-30 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795149', 'tblTempUsageDetail_20' ) start [2025-03-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795149', 'tblTempUsageDetail_20' ) end [2025-03-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795149', 'tblTempVendorCDR_20' ) start [2025-03-30 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795149', 'tblTempVendorCDR_20' ) end [2025-03-30 09:06:18] Production.INFO: ProcessCDR(1,14795149,1,1,2) [2025-03-30 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795149', 'tblTempUsageDetail_20' ) start [2025-03-30 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795149', 'tblTempUsageDetail_20' ) end [2025-03-30 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:06:22] Production.INFO: ==11408== Releasing lock... [2025-03-30 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:07:06 [end_date_ymd] => 2025-03-30 09:07:06 [RateCDR] => 1 ) [2025-03-30 09: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-03-30 06:07:06' and `end` < '2025-03-30 09: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-03-30 09:07:18] Production.INFO: count ==189 [2025-03-30 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:07:06 - End Time 2025-03-30 09:07:06 [2025-03-30 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795154', 'tblTempUsageDetail_20' ) start [2025-03-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795154', 'tblTempUsageDetail_20' ) end [2025-03-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795154', 'tblTempVendorCDR_20' ) start [2025-03-30 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795154', 'tblTempVendorCDR_20' ) end [2025-03-30 09:07:18] Production.INFO: ProcessCDR(1,14795154,1,1,2) [2025-03-30 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795154', 'tblTempUsageDetail_20' ) start [2025-03-30 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795154', 'tblTempUsageDetail_20' ) end [2025-03-30 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:07:22] Production.INFO: ==11485== Releasing lock... [2025-03-30 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:08:05 [end_date_ymd] => 2025-03-30 09:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:08:05' and `end` < '2025-03-30 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-03-30 09:08:18] Production.INFO: count ==191 [2025-03-30 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:08:05 - End Time 2025-03-30 09:08:05 [2025-03-30 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795159', 'tblTempUsageDetail_20' ) start [2025-03-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795159', 'tblTempUsageDetail_20' ) end [2025-03-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795159', 'tblTempVendorCDR_20' ) start [2025-03-30 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795159', 'tblTempVendorCDR_20' ) end [2025-03-30 09:08:18] Production.INFO: ProcessCDR(1,14795159,1,1,2) [2025-03-30 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795159', 'tblTempUsageDetail_20' ) start [2025-03-30 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795159', 'tblTempUsageDetail_20' ) end [2025-03-30 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:08:21] Production.INFO: ==11562== Releasing lock... [2025-03-30 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:09:06 [end_date_ymd] => 2025-03-30 09:09:06 [RateCDR] => 1 ) [2025-03-30 09: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-03-30 06:09:06' and `end` < '2025-03-30 09: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-03-30 09:09:18] Production.INFO: count ==196 [2025-03-30 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:09:06 - End Time 2025-03-30 09:09:06 [2025-03-30 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795164', 'tblTempUsageDetail_20' ) start [2025-03-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795164', 'tblTempUsageDetail_20' ) end [2025-03-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795164', 'tblTempVendorCDR_20' ) start [2025-03-30 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795164', 'tblTempVendorCDR_20' ) end [2025-03-30 09:09:18] Production.INFO: ProcessCDR(1,14795164,1,1,2) [2025-03-30 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795164', 'tblTempUsageDetail_20' ) start [2025-03-30 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795164', 'tblTempUsageDetail_20' ) end [2025-03-30 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:09:22] Production.INFO: ==11631== Releasing lock... [2025-03-30 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:10:06 [end_date_ymd] => 2025-03-30 09:10:06 [RateCDR] => 1 ) [2025-03-30 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:10:06' and `end` < '2025-03-30 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:10:19] Production.INFO: count ==209 [2025-03-30 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 06:10:06 - End Time 2025-03-30 09:10:06 [2025-03-30 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795170', 'tblTempUsageDetail_20' ) start [2025-03-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795170', 'tblTempUsageDetail_20' ) end [2025-03-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795170', 'tblTempVendorCDR_20' ) start [2025-03-30 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795170', 'tblTempVendorCDR_20' ) end [2025-03-30 09:10:19] Production.INFO: ProcessCDR(1,14795170,1,1,2) [2025-03-30 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795170', 'tblTempUsageDetail_20' ) start [2025-03-30 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795170', 'tblTempUsageDetail_20' ) end [2025-03-30 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:10:22] Production.INFO: ==11745== Releasing lock... [2025-03-30 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:11:05 [end_date_ymd] => 2025-03-30 09:11:05 [RateCDR] => 1 ) [2025-03-30 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:11:05' and `end` < '2025-03-30 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:11:18] Production.INFO: count ==211 [2025-03-30 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:11:05 - End Time 2025-03-30 09:11:05 [2025-03-30 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795175', 'tblTempUsageDetail_20' ) start [2025-03-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795175', 'tblTempUsageDetail_20' ) end [2025-03-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795175', 'tblTempVendorCDR_20' ) start [2025-03-30 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795175', 'tblTempVendorCDR_20' ) end [2025-03-30 09:11:18] Production.INFO: ProcessCDR(1,14795175,1,1,2) [2025-03-30 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795175', 'tblTempUsageDetail_20' ) start [2025-03-30 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795175', 'tblTempUsageDetail_20' ) end [2025-03-30 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:11:21] Production.INFO: ==11822== Releasing lock... [2025-03-30 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:11:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:12:05 [end_date_ymd] => 2025-03-30 09:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:12:05' and `end` < '2025-03-30 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-03-30 09:12:18] Production.INFO: count ==213 [2025-03-30 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:12:05 - End Time 2025-03-30 09:12:05 [2025-03-30 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795180', 'tblTempUsageDetail_20' ) start [2025-03-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795180', 'tblTempUsageDetail_20' ) end [2025-03-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795180', 'tblTempVendorCDR_20' ) start [2025-03-30 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795180', 'tblTempVendorCDR_20' ) end [2025-03-30 09:12:18] Production.INFO: ProcessCDR(1,14795180,1,1,2) [2025-03-30 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795180', 'tblTempUsageDetail_20' ) start [2025-03-30 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795180', 'tblTempUsageDetail_20' ) end [2025-03-30 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:12:22] Production.INFO: ==11897== Releasing lock... [2025-03-30 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:12:22] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:13:05 [end_date_ymd] => 2025-03-30 09:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:13:05' and `end` < '2025-03-30 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-03-30 09:13:18] Production.INFO: count ==216 [2025-03-30 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:13:05 - End Time 2025-03-30 09:13:05 [2025-03-30 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795185', 'tblTempUsageDetail_20' ) start [2025-03-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795185', 'tblTempUsageDetail_20' ) end [2025-03-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795185', 'tblTempVendorCDR_20' ) start [2025-03-30 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795185', 'tblTempVendorCDR_20' ) end [2025-03-30 09:13:18] Production.INFO: ProcessCDR(1,14795185,1,1,2) [2025-03-30 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795185', 'tblTempUsageDetail_20' ) start [2025-03-30 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795185', 'tblTempUsageDetail_20' ) end [2025-03-30 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:13:21] Production.INFO: ==11968== Releasing lock... [2025-03-30 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:14:05 [end_date_ymd] => 2025-03-30 09:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:14:05' and `end` < '2025-03-30 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-03-30 09:14:17] Production.INFO: count ==218 [2025-03-30 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:14:05 - End Time 2025-03-30 09:14:05 [2025-03-30 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795190', 'tblTempUsageDetail_20' ) start [2025-03-30 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795190', 'tblTempUsageDetail_20' ) end [2025-03-30 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795190', 'tblTempVendorCDR_20' ) start [2025-03-30 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795190', 'tblTempVendorCDR_20' ) end [2025-03-30 09:14:17] Production.INFO: ProcessCDR(1,14795190,1,1,2) [2025-03-30 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795190', 'tblTempUsageDetail_20' ) start [2025-03-30 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795190', 'tblTempUsageDetail_20' ) end [2025-03-30 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:14:21] Production.INFO: ==12039== Releasing lock... [2025-03-30 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:15:05 [end_date_ymd] => 2025-03-30 09:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:15:05' and `end` < '2025-03-30 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-03-30 09:15:17] Production.INFO: count ==218 [2025-03-30 09:15:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:15:05 - End Time 2025-03-30 09:15:05 [2025-03-30 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795195', 'tblTempUsageDetail_20' ) start [2025-03-30 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795195', 'tblTempUsageDetail_20' ) end [2025-03-30 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795195', 'tblTempVendorCDR_20' ) start [2025-03-30 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795195', 'tblTempVendorCDR_20' ) end [2025-03-30 09:15:17] Production.INFO: ProcessCDR(1,14795195,1,1,2) [2025-03-30 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795195', 'tblTempUsageDetail_20' ) start [2025-03-30 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795195', 'tblTempUsageDetail_20' ) end [2025-03-30 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:15:21] Production.INFO: ==12112== Releasing lock... [2025-03-30 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:16:05 [end_date_ymd] => 2025-03-30 09:16:05 [RateCDR] => 1 ) [2025-03-30 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:16:05' and `end` < '2025-03-30 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:16:18] Production.INFO: count ==218 [2025-03-30 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:16:05 - End Time 2025-03-30 09:16:05 [2025-03-30 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795200', 'tblTempUsageDetail_20' ) start [2025-03-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795200', 'tblTempUsageDetail_20' ) end [2025-03-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795200', 'tblTempVendorCDR_20' ) start [2025-03-30 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795200', 'tblTempVendorCDR_20' ) end [2025-03-30 09:16:18] Production.INFO: ProcessCDR(1,14795200,1,1,2) [2025-03-30 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795200', 'tblTempUsageDetail_20' ) start [2025-03-30 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795200', 'tblTempUsageDetail_20' ) end [2025-03-30 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:16:21] Production.INFO: ==12186== Releasing lock... [2025-03-30 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:17:05 [end_date_ymd] => 2025-03-30 09:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:17:05' and `end` < '2025-03-30 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-03-30 09:17:17] Production.INFO: count ==214 [2025-03-30 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:17:05 - End Time 2025-03-30 09:17:05 [2025-03-30 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795205', 'tblTempUsageDetail_20' ) start [2025-03-30 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795205', 'tblTempUsageDetail_20' ) end [2025-03-30 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795205', 'tblTempVendorCDR_20' ) start [2025-03-30 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795205', 'tblTempVendorCDR_20' ) end [2025-03-30 09:17:18] Production.INFO: ProcessCDR(1,14795205,1,1,2) [2025-03-30 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795205', 'tblTempUsageDetail_20' ) start [2025-03-30 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795205', 'tblTempUsageDetail_20' ) end [2025-03-30 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:17:21] Production.INFO: ==12263== Releasing lock... [2025-03-30 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:18:05 [end_date_ymd] => 2025-03-30 09:18:05 [RateCDR] => 1 ) [2025-03-30 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:18:05' and `end` < '2025-03-30 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:18:17] Production.INFO: count ==214 [2025-03-30 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:18:05 - End Time 2025-03-30 09:18:05 [2025-03-30 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795210', 'tblTempUsageDetail_20' ) start [2025-03-30 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795210', 'tblTempUsageDetail_20' ) end [2025-03-30 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795210', 'tblTempVendorCDR_20' ) start [2025-03-30 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795210', 'tblTempVendorCDR_20' ) end [2025-03-30 09:18:17] Production.INFO: ProcessCDR(1,14795210,1,1,2) [2025-03-30 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795210', 'tblTempUsageDetail_20' ) start [2025-03-30 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795210', 'tblTempUsageDetail_20' ) end [2025-03-30 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:18:21] Production.INFO: ==12345== Releasing lock... [2025-03-30 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:19:05 [end_date_ymd] => 2025-03-30 09:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:19:05' and `end` < '2025-03-30 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-03-30 09:19:18] Production.INFO: count ==215 [2025-03-30 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:19:05 - End Time 2025-03-30 09:19:05 [2025-03-30 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795215', 'tblTempUsageDetail_20' ) start [2025-03-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795215', 'tblTempUsageDetail_20' ) end [2025-03-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795215', 'tblTempVendorCDR_20' ) start [2025-03-30 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795215', 'tblTempVendorCDR_20' ) end [2025-03-30 09:19:18] Production.INFO: ProcessCDR(1,14795215,1,1,2) [2025-03-30 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795215', 'tblTempUsageDetail_20' ) start [2025-03-30 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795215', 'tblTempUsageDetail_20' ) end [2025-03-30 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:19:23] Production.INFO: ==12421== Releasing lock... [2025-03-30 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:19:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:20:06 [end_date_ymd] => 2025-03-30 09:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:20:06' and `end` < '2025-03-30 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-03-30 09:20:18] Production.INFO: count ==210 [2025-03-30 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:20:06 - End Time 2025-03-30 09:20:06 [2025-03-30 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795220', 'tblTempUsageDetail_20' ) start [2025-03-30 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795220', 'tblTempUsageDetail_20' ) end [2025-03-30 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795220', 'tblTempVendorCDR_20' ) start [2025-03-30 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795220', 'tblTempVendorCDR_20' ) end [2025-03-30 09:20:18] Production.INFO: ProcessCDR(1,14795220,1,1,2) [2025-03-30 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795220', 'tblTempUsageDetail_20' ) start [2025-03-30 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795220', 'tblTempUsageDetail_20' ) end [2025-03-30 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:20:23] Production.INFO: ==12501== Releasing lock... [2025-03-30 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:20:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:21:05 [end_date_ymd] => 2025-03-30 09:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:21:05' and `end` < '2025-03-30 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-03-30 09:21:18] Production.INFO: count ==210 [2025-03-30 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:21:05 - End Time 2025-03-30 09:21:05 [2025-03-30 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795226', 'tblTempUsageDetail_20' ) start [2025-03-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795226', 'tblTempUsageDetail_20' ) end [2025-03-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795226', 'tblTempVendorCDR_20' ) start [2025-03-30 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795226', 'tblTempVendorCDR_20' ) end [2025-03-30 09:21:18] Production.INFO: ProcessCDR(1,14795226,1,1,2) [2025-03-30 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795226', 'tblTempUsageDetail_20' ) start [2025-03-30 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795226', 'tblTempUsageDetail_20' ) end [2025-03-30 09:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:21:21] Production.INFO: ==12574== Releasing lock... [2025-03-30 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-30 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:22:06 [end_date_ymd] => 2025-03-30 09:22:06 [RateCDR] => 1 ) [2025-03-30 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:22:06' and `end` < '2025-03-30 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:22:18] Production.INFO: count ==206 [2025-03-30 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:22:06 - End Time 2025-03-30 09:22:06 [2025-03-30 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795231', 'tblTempUsageDetail_20' ) start [2025-03-30 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795231', 'tblTempUsageDetail_20' ) end [2025-03-30 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795231', 'tblTempVendorCDR_20' ) start [2025-03-30 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795231', 'tblTempVendorCDR_20' ) end [2025-03-30 09:22:18] Production.INFO: ProcessCDR(1,14795231,1,1,2) [2025-03-30 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795231', 'tblTempUsageDetail_20' ) start [2025-03-30 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795231', 'tblTempUsageDetail_20' ) end [2025-03-30 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:22:23] Production.INFO: ==12654== Releasing lock... [2025-03-30 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:22:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:23:05 [end_date_ymd] => 2025-03-30 09:23:05 [RateCDR] => 1 ) [2025-03-30 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:23:05' and `end` < '2025-03-30 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:23:17] Production.INFO: count ==208 [2025-03-30 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:23:05 - End Time 2025-03-30 09:23:05 [2025-03-30 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795236', 'tblTempUsageDetail_20' ) start [2025-03-30 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795236', 'tblTempUsageDetail_20' ) end [2025-03-30 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795236', 'tblTempVendorCDR_20' ) start [2025-03-30 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795236', 'tblTempVendorCDR_20' ) end [2025-03-30 09:23:17] Production.INFO: ProcessCDR(1,14795236,1,1,2) [2025-03-30 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795236', 'tblTempUsageDetail_20' ) start [2025-03-30 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795236', 'tblTempUsageDetail_20' ) end [2025-03-30 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:23:23] Production.INFO: ==12737== Releasing lock... [2025-03-30 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:24:06 [end_date_ymd] => 2025-03-30 09:24:06 [RateCDR] => 1 ) [2025-03-30 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:24:06' and `end` < '2025-03-30 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:24:19] Production.INFO: count ==203 [2025-03-30 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 06:24:06 - End Time 2025-03-30 09:24:06 [2025-03-30 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795241', 'tblTempUsageDetail_20' ) start [2025-03-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795241', 'tblTempUsageDetail_20' ) end [2025-03-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795241', 'tblTempVendorCDR_20' ) start [2025-03-30 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795241', 'tblTempVendorCDR_20' ) end [2025-03-30 09:24:19] Production.INFO: ProcessCDR(1,14795241,1,1,2) [2025-03-30 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795241', 'tblTempUsageDetail_20' ) start [2025-03-30 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795241', 'tblTempUsageDetail_20' ) end [2025-03-30 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:24:22] Production.INFO: ==12825== Releasing lock... [2025-03-30 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:24:22] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:25:04 [end_date_ymd] => 2025-03-30 09:25:04 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:25:04' and `end` < '2025-03-30 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-03-30 09:25:17] Production.INFO: count ==203 [2025-03-30 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:25:04 - End Time 2025-03-30 09:25:04 [2025-03-30 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795246', 'tblTempUsageDetail_20' ) start [2025-03-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795246', 'tblTempUsageDetail_20' ) end [2025-03-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795246', 'tblTempVendorCDR_20' ) start [2025-03-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795246', 'tblTempVendorCDR_20' ) end [2025-03-30 09:25:17] Production.INFO: ProcessCDR(1,14795246,1,1,2) [2025-03-30 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795246', 'tblTempUsageDetail_20' ) start [2025-03-30 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795246', 'tblTempUsageDetail_20' ) end [2025-03-30 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:25:20] Production.INFO: ==12945== Releasing lock... [2025-03-30 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:25:20] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:26:05 [end_date_ymd] => 2025-03-30 09:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:26:05' and `end` < '2025-03-30 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-03-30 09:26:18] Production.INFO: count ==204 [2025-03-30 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:26:05 - End Time 2025-03-30 09:26:05 [2025-03-30 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795251', 'tblTempUsageDetail_20' ) start [2025-03-30 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795251', 'tblTempUsageDetail_20' ) end [2025-03-30 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795251', 'tblTempVendorCDR_20' ) start [2025-03-30 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795251', 'tblTempVendorCDR_20' ) end [2025-03-30 09:26:18] Production.INFO: ProcessCDR(1,14795251,1,1,2) [2025-03-30 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795251', 'tblTempUsageDetail_20' ) start [2025-03-30 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795251', 'tblTempUsageDetail_20' ) end [2025-03-30 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:26:23] Production.INFO: ==13022== Releasing lock... [2025-03-30 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:26:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:27:05 [end_date_ymd] => 2025-03-30 09:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:27:05' and `end` < '2025-03-30 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-03-30 09:27:17] Production.INFO: count ==204 [2025-03-30 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:27:05 - End Time 2025-03-30 09:27:05 [2025-03-30 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795256', 'tblTempUsageDetail_20' ) start [2025-03-30 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795256', 'tblTempUsageDetail_20' ) end [2025-03-30 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795256', 'tblTempVendorCDR_20' ) start [2025-03-30 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795256', 'tblTempVendorCDR_20' ) end [2025-03-30 09:27:18] Production.INFO: ProcessCDR(1,14795256,1,1,2) [2025-03-30 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795256', 'tblTempUsageDetail_20' ) start [2025-03-30 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795256', 'tblTempUsageDetail_20' ) end [2025-03-30 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:27:21] Production.INFO: ==13103== Releasing lock... [2025-03-30 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:28:05 [end_date_ymd] => 2025-03-30 09:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:28:05' and `end` < '2025-03-30 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-03-30 09:28:18] Production.INFO: count ==205 [2025-03-30 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:28:05 - End Time 2025-03-30 09:28:05 [2025-03-30 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795261', 'tblTempUsageDetail_20' ) start [2025-03-30 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795261', 'tblTempUsageDetail_20' ) end [2025-03-30 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795261', 'tblTempVendorCDR_20' ) start [2025-03-30 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795261', 'tblTempVendorCDR_20' ) end [2025-03-30 09:28:18] Production.INFO: ProcessCDR(1,14795261,1,1,2) [2025-03-30 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795261', 'tblTempUsageDetail_20' ) start [2025-03-30 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795261', 'tblTempUsageDetail_20' ) end [2025-03-30 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:28:23] Production.INFO: ==13179== Releasing lock... [2025-03-30 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:28:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:29:05 [end_date_ymd] => 2025-03-30 09:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:29:05' and `end` < '2025-03-30 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-03-30 09:29:17] Production.INFO: count ==206 [2025-03-30 09:29:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:29:05 - End Time 2025-03-30 09:29:05 [2025-03-30 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795266', 'tblTempUsageDetail_20' ) start [2025-03-30 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795266', 'tblTempUsageDetail_20' ) end [2025-03-30 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795266', 'tblTempVendorCDR_20' ) start [2025-03-30 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795266', 'tblTempVendorCDR_20' ) end [2025-03-30 09:29:17] Production.INFO: ProcessCDR(1,14795266,1,1,2) [2025-03-30 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795266', 'tblTempUsageDetail_20' ) start [2025-03-30 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795266', 'tblTempUsageDetail_20' ) end [2025-03-30 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:29:22] Production.INFO: ==13264== Releasing lock... [2025-03-30 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:30:06 [end_date_ymd] => 2025-03-30 09:30:06 [RateCDR] => 1 ) [2025-03-30 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:30:06' and `end` < '2025-03-30 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:30:19] Production.INFO: count ==211 [2025-03-30 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 06:30:06 - End Time 2025-03-30 09:30:06 [2025-03-30 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795272', 'tblTempUsageDetail_20' ) start [2025-03-30 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795272', 'tblTempUsageDetail_20' ) end [2025-03-30 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795272', 'tblTempVendorCDR_20' ) start [2025-03-30 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795272', 'tblTempVendorCDR_20' ) end [2025-03-30 09:30:19] Production.INFO: ProcessCDR(1,14795272,1,1,2) [2025-03-30 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795272', 'tblTempUsageDetail_20' ) start [2025-03-30 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795272', 'tblTempUsageDetail_20' ) end [2025-03-30 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:30:24] Production.INFO: ==13343== Releasing lock... [2025-03-30 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:30:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:31:05 [end_date_ymd] => 2025-03-30 09:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:31:05' and `end` < '2025-03-30 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-03-30 09:31:17] Production.INFO: count ==212 [2025-03-30 09:31:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:31:05 - End Time 2025-03-30 09:31:05 [2025-03-30 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795277', 'tblTempUsageDetail_20' ) start [2025-03-30 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795277', 'tblTempUsageDetail_20' ) end [2025-03-30 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795277', 'tblTempVendorCDR_20' ) start [2025-03-30 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795277', 'tblTempVendorCDR_20' ) end [2025-03-30 09:31:17] Production.INFO: ProcessCDR(1,14795277,1,1,2) [2025-03-30 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795277', 'tblTempUsageDetail_20' ) start [2025-03-30 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795277', 'tblTempUsageDetail_20' ) end [2025-03-30 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:31:22] Production.INFO: ==13419== Releasing lock... [2025-03-30 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:32:05 [end_date_ymd] => 2025-03-30 09:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:32:05' and `end` < '2025-03-30 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-03-30 09:32:17] Production.INFO: count ==213 [2025-03-30 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:32:05 - End Time 2025-03-30 09:32:05 [2025-03-30 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795282', 'tblTempUsageDetail_20' ) start [2025-03-30 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795282', 'tblTempUsageDetail_20' ) end [2025-03-30 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795282', 'tblTempVendorCDR_20' ) start [2025-03-30 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795282', 'tblTempVendorCDR_20' ) end [2025-03-30 09:32:17] Production.INFO: ProcessCDR(1,14795282,1,1,2) [2025-03-30 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795282', 'tblTempUsageDetail_20' ) start [2025-03-30 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795282', 'tblTempUsageDetail_20' ) end [2025-03-30 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:32:22] Production.INFO: ==13498== Releasing lock... [2025-03-30 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:33:06 [end_date_ymd] => 2025-03-30 09:33:06 [RateCDR] => 1 ) [2025-03-30 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:33:06' and `end` < '2025-03-30 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:33:18] Production.INFO: count ==213 [2025-03-30 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:33:06 - End Time 2025-03-30 09:33:06 [2025-03-30 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795287', 'tblTempUsageDetail_20' ) start [2025-03-30 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795287', 'tblTempUsageDetail_20' ) end [2025-03-30 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795287', 'tblTempVendorCDR_20' ) start [2025-03-30 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795287', 'tblTempVendorCDR_20' ) end [2025-03-30 09:33:18] Production.INFO: ProcessCDR(1,14795287,1,1,2) [2025-03-30 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795287', 'tblTempUsageDetail_20' ) start [2025-03-30 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795287', 'tblTempUsageDetail_20' ) end [2025-03-30 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:33:22] Production.INFO: ==13573== Releasing lock... [2025-03-30 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:33:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:34:05 [end_date_ymd] => 2025-03-30 09:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:34:05' and `end` < '2025-03-30 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-03-30 09:34:18] Production.INFO: count ==216 [2025-03-30 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:34:05 - End Time 2025-03-30 09:34:05 [2025-03-30 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795292', 'tblTempUsageDetail_20' ) start [2025-03-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795292', 'tblTempUsageDetail_20' ) end [2025-03-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795292', 'tblTempVendorCDR_20' ) start [2025-03-30 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795292', 'tblTempVendorCDR_20' ) end [2025-03-30 09:34:18] Production.INFO: ProcessCDR(1,14795292,1,1,2) [2025-03-30 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795292', 'tblTempUsageDetail_20' ) start [2025-03-30 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795292', 'tblTempUsageDetail_20' ) end [2025-03-30 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:34:22] Production.INFO: ==13653== Releasing lock... [2025-03-30 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:35:05 [end_date_ymd] => 2025-03-30 09:35:05 [RateCDR] => 1 ) [2025-03-30 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:35:05' and `end` < '2025-03-30 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:35:18] Production.INFO: count ==216 [2025-03-30 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:35:05 - End Time 2025-03-30 09:35:05 [2025-03-30 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795297', 'tblTempUsageDetail_20' ) start [2025-03-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795297', 'tblTempUsageDetail_20' ) end [2025-03-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795297', 'tblTempVendorCDR_20' ) start [2025-03-30 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795297', 'tblTempVendorCDR_20' ) end [2025-03-30 09:35:18] Production.INFO: ProcessCDR(1,14795297,1,1,2) [2025-03-30 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795297', 'tblTempUsageDetail_20' ) start [2025-03-30 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795297', 'tblTempUsageDetail_20' ) end [2025-03-30 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:35:21] Production.INFO: ==13731== Releasing lock... [2025-03-30 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:36:05 [end_date_ymd] => 2025-03-30 09:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:36:05' and `end` < '2025-03-30 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-03-30 09:36:17] Production.INFO: count ==216 [2025-03-30 09:36:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:36:05 - End Time 2025-03-30 09:36:05 [2025-03-30 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795302', 'tblTempUsageDetail_20' ) start [2025-03-30 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795302', 'tblTempUsageDetail_20' ) end [2025-03-30 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795302', 'tblTempVendorCDR_20' ) start [2025-03-30 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795302', 'tblTempVendorCDR_20' ) end [2025-03-30 09:36:17] Production.INFO: ProcessCDR(1,14795302,1,1,2) [2025-03-30 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795302', 'tblTempUsageDetail_20' ) start [2025-03-30 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795302', 'tblTempUsageDetail_20' ) end [2025-03-30 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:36:21] Production.INFO: ==13811== Releasing lock... [2025-03-30 09:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:37:06 [end_date_ymd] => 2025-03-30 09:37:06 [RateCDR] => 1 ) [2025-03-30 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:37:06' and `end` < '2025-03-30 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:37:18] Production.INFO: count ==218 [2025-03-30 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:37:06 - End Time 2025-03-30 09:37:06 [2025-03-30 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795307', 'tblTempUsageDetail_20' ) start [2025-03-30 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795307', 'tblTempUsageDetail_20' ) end [2025-03-30 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795307', 'tblTempVendorCDR_20' ) start [2025-03-30 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795307', 'tblTempVendorCDR_20' ) end [2025-03-30 09:37:18] Production.INFO: ProcessCDR(1,14795307,1,1,2) [2025-03-30 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795307', 'tblTempUsageDetail_20' ) start [2025-03-30 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795307', 'tblTempUsageDetail_20' ) end [2025-03-30 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:37:22] Production.INFO: ==13891== Releasing lock... [2025-03-30 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:37:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:38:05 [end_date_ymd] => 2025-03-30 09:38:05 [RateCDR] => 1 ) [2025-03-30 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:38:05' and `end` < '2025-03-30 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:38:17] Production.INFO: count ==219 [2025-03-30 09:38:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:38:05 - End Time 2025-03-30 09:38:05 [2025-03-30 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795312', 'tblTempUsageDetail_20' ) start [2025-03-30 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795312', 'tblTempUsageDetail_20' ) end [2025-03-30 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795312', 'tblTempVendorCDR_20' ) start [2025-03-30 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795312', 'tblTempVendorCDR_20' ) end [2025-03-30 09:38:17] Production.INFO: ProcessCDR(1,14795312,1,1,2) [2025-03-30 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795312', 'tblTempUsageDetail_20' ) start [2025-03-30 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795312', 'tblTempUsageDetail_20' ) end [2025-03-30 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:38:21] Production.INFO: ==13972== Releasing lock... [2025-03-30 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:38:21] Production.INFO: 30 MB #Memory Used# [2025-03-30 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:39:05 [end_date_ymd] => 2025-03-30 09:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:39:05' and `end` < '2025-03-30 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-03-30 09:39:18] Production.INFO: count ==223 [2025-03-30 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:39:05 - End Time 2025-03-30 09:39:05 [2025-03-30 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795317', 'tblTempUsageDetail_20' ) start [2025-03-30 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795317', 'tblTempUsageDetail_20' ) end [2025-03-30 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795317', 'tblTempVendorCDR_20' ) start [2025-03-30 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795317', 'tblTempVendorCDR_20' ) end [2025-03-30 09:39:18] Production.INFO: ProcessCDR(1,14795317,1,1,2) [2025-03-30 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795317', 'tblTempUsageDetail_20' ) start [2025-03-30 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795317', 'tblTempUsageDetail_20' ) end [2025-03-30 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:39:21] Production.INFO: ==14053== Releasing lock... [2025-03-30 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:40:06 [end_date_ymd] => 2025-03-30 09:40:06 [RateCDR] => 1 ) [2025-03-30 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:40:06' and `end` < '2025-03-30 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:40:18] Production.INFO: count ==231 [2025-03-30 09:40:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:40:06 - End Time 2025-03-30 09:40:06 [2025-03-30 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795323', 'tblTempUsageDetail_20' ) start [2025-03-30 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795323', 'tblTempUsageDetail_20' ) end [2025-03-30 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795323', 'tblTempVendorCDR_20' ) start [2025-03-30 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795323', 'tblTempVendorCDR_20' ) end [2025-03-30 09:40:18] Production.INFO: ProcessCDR(1,14795323,1,1,2) [2025-03-30 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795323', 'tblTempUsageDetail_20' ) start [2025-03-30 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795323', 'tblTempUsageDetail_20' ) end [2025-03-30 09:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:40:22] Production.INFO: ==14126== Releasing lock... [2025-03-30 09:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:41:05 [end_date_ymd] => 2025-03-30 09:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:41:05' and `end` < '2025-03-30 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-03-30 09:41:18] Production.INFO: count ==231 [2025-03-30 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:41:05 - End Time 2025-03-30 09:41:05 [2025-03-30 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795328', 'tblTempUsageDetail_20' ) start [2025-03-30 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795328', 'tblTempUsageDetail_20' ) end [2025-03-30 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795328', 'tblTempVendorCDR_20' ) start [2025-03-30 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795328', 'tblTempVendorCDR_20' ) end [2025-03-30 09:41:18] Production.INFO: ProcessCDR(1,14795328,1,1,2) [2025-03-30 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795328', 'tblTempUsageDetail_20' ) start [2025-03-30 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795328', 'tblTempUsageDetail_20' ) end [2025-03-30 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:41:21] Production.INFO: ==14251== Releasing lock... [2025-03-30 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:42:06 [end_date_ymd] => 2025-03-30 09:42:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:42:06' and `end` < '2025-03-30 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-03-30 09:42:18] Production.INFO: count ==231 [2025-03-30 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:42:06 - End Time 2025-03-30 09:42:06 [2025-03-30 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795333', 'tblTempUsageDetail_20' ) start [2025-03-30 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795333', 'tblTempUsageDetail_20' ) end [2025-03-30 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795333', 'tblTempVendorCDR_20' ) start [2025-03-30 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795333', 'tblTempVendorCDR_20' ) end [2025-03-30 09:42:18] Production.INFO: ProcessCDR(1,14795333,1,1,2) [2025-03-30 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795333', 'tblTempUsageDetail_20' ) start [2025-03-30 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795333', 'tblTempUsageDetail_20' ) end [2025-03-30 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:42:22] Production.INFO: ==14328== Releasing lock... [2025-03-30 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:43:05 [end_date_ymd] => 2025-03-30 09:43:05 [RateCDR] => 1 ) [2025-03-30 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:43:05' and `end` < '2025-03-30 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:43:18] Production.INFO: count ==227 [2025-03-30 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:43:05 - End Time 2025-03-30 09:43:05 [2025-03-30 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795338', 'tblTempUsageDetail_20' ) start [2025-03-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795338', 'tblTempUsageDetail_20' ) end [2025-03-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795338', 'tblTempVendorCDR_20' ) start [2025-03-30 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795338', 'tblTempVendorCDR_20' ) end [2025-03-30 09:43:18] Production.INFO: ProcessCDR(1,14795338,1,1,2) [2025-03-30 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795338', 'tblTempUsageDetail_20' ) start [2025-03-30 09:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795338', 'tblTempUsageDetail_20' ) end [2025-03-30 09:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:43:21] Production.INFO: ==14418== Releasing lock... [2025-03-30 09:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:44:05 [end_date_ymd] => 2025-03-30 09:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:44:05' and `end` < '2025-03-30 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-03-30 09:44:17] Production.INFO: count ==228 [2025-03-30 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:44:05 - End Time 2025-03-30 09:44:05 [2025-03-30 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795343', 'tblTempUsageDetail_20' ) start [2025-03-30 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795343', 'tblTempUsageDetail_20' ) end [2025-03-30 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795343', 'tblTempVendorCDR_20' ) start [2025-03-30 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795343', 'tblTempVendorCDR_20' ) end [2025-03-30 09:44:18] Production.INFO: ProcessCDR(1,14795343,1,1,2) [2025-03-30 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795343', 'tblTempUsageDetail_20' ) start [2025-03-30 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795343', 'tblTempUsageDetail_20' ) end [2025-03-30 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:44:21] Production.INFO: ==14532== Releasing lock... [2025-03-30 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:45:05 [end_date_ymd] => 2025-03-30 09:45:05 [RateCDR] => 1 ) [2025-03-30 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:45:05' and `end` < '2025-03-30 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:45:17] Production.INFO: count ==227 [2025-03-30 09:45:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:45:05 - End Time 2025-03-30 09:45:05 [2025-03-30 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795348', 'tblTempUsageDetail_20' ) start [2025-03-30 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795348', 'tblTempUsageDetail_20' ) end [2025-03-30 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795348', 'tblTempVendorCDR_20' ) start [2025-03-30 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795348', 'tblTempVendorCDR_20' ) end [2025-03-30 09:45:17] Production.INFO: ProcessCDR(1,14795348,1,1,2) [2025-03-30 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795348', 'tblTempUsageDetail_20' ) start [2025-03-30 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795348', 'tblTempUsageDetail_20' ) end [2025-03-30 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:45:21] Production.INFO: ==14656== Releasing lock... [2025-03-30 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:46:05 [end_date_ymd] => 2025-03-30 09:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:46:05' and `end` < '2025-03-30 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-03-30 09:46:18] Production.INFO: count ==227 [2025-03-30 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:46:05 - End Time 2025-03-30 09:46:05 [2025-03-30 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795353', 'tblTempUsageDetail_20' ) start [2025-03-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795353', 'tblTempUsageDetail_20' ) end [2025-03-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795353', 'tblTempVendorCDR_20' ) start [2025-03-30 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795353', 'tblTempVendorCDR_20' ) end [2025-03-30 09:46:18] Production.INFO: ProcessCDR(1,14795353,1,1,2) [2025-03-30 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795353', 'tblTempUsageDetail_20' ) start [2025-03-30 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795353', 'tblTempUsageDetail_20' ) end [2025-03-30 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:46:21] Production.INFO: ==14772== Releasing lock... [2025-03-30 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:47:05 [end_date_ymd] => 2025-03-30 09:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:47:05' and `end` < '2025-03-30 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-03-30 09:47:17] Production.INFO: count ==227 [2025-03-30 09:47:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:47:05 - End Time 2025-03-30 09:47:05 [2025-03-30 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795358', 'tblTempUsageDetail_20' ) start [2025-03-30 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795358', 'tblTempUsageDetail_20' ) end [2025-03-30 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795358', 'tblTempVendorCDR_20' ) start [2025-03-30 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795358', 'tblTempVendorCDR_20' ) end [2025-03-30 09:47:17] Production.INFO: ProcessCDR(1,14795358,1,1,2) [2025-03-30 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795358', 'tblTempUsageDetail_20' ) start [2025-03-30 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795358', 'tblTempUsageDetail_20' ) end [2025-03-30 09:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:47:20] Production.INFO: ==14890== Releasing lock... [2025-03-30 09:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:48:05 [end_date_ymd] => 2025-03-30 09:48:05 [RateCDR] => 1 ) [2025-03-30 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:48:05' and `end` < '2025-03-30 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:48:18] Production.INFO: count ==228 [2025-03-30 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:48:05 - End Time 2025-03-30 09:48:05 [2025-03-30 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795363', 'tblTempUsageDetail_20' ) start [2025-03-30 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795363', 'tblTempUsageDetail_20' ) end [2025-03-30 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795363', 'tblTempVendorCDR_20' ) start [2025-03-30 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795363', 'tblTempVendorCDR_20' ) end [2025-03-30 09:48:18] Production.INFO: ProcessCDR(1,14795363,1,1,2) [2025-03-30 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795363', 'tblTempUsageDetail_20' ) start [2025-03-30 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795363', 'tblTempUsageDetail_20' ) end [2025-03-30 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:48:23] Production.INFO: ==15010== Releasing lock... [2025-03-30 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:49:05 [end_date_ymd] => 2025-03-30 09:49:05 [RateCDR] => 1 ) [2025-03-30 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:49:05' and `end` < '2025-03-30 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:49:17] Production.INFO: count ==231 [2025-03-30 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:49:05 - End Time 2025-03-30 09:49:05 [2025-03-30 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795368', 'tblTempUsageDetail_20' ) start [2025-03-30 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795368', 'tblTempUsageDetail_20' ) end [2025-03-30 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795368', 'tblTempVendorCDR_20' ) start [2025-03-30 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795368', 'tblTempVendorCDR_20' ) end [2025-03-30 09:49:17] Production.INFO: ProcessCDR(1,14795368,1,1,2) [2025-03-30 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795368', 'tblTempUsageDetail_20' ) start [2025-03-30 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795368', 'tblTempUsageDetail_20' ) end [2025-03-30 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:49:21] Production.INFO: ==15129== Releasing lock... [2025-03-30 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:50:06 [end_date_ymd] => 2025-03-30 09:50:06 [RateCDR] => 1 ) [2025-03-30 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:50:06' and `end` < '2025-03-30 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:50:18] Production.INFO: count ==244 [2025-03-30 09:50:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:50:06 - End Time 2025-03-30 09:50:06 [2025-03-30 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795373', 'tblTempUsageDetail_20' ) start [2025-03-30 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795373', 'tblTempUsageDetail_20' ) end [2025-03-30 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795373', 'tblTempVendorCDR_20' ) start [2025-03-30 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795373', 'tblTempVendorCDR_20' ) end [2025-03-30 09:50:18] Production.INFO: ProcessCDR(1,14795373,1,1,2) [2025-03-30 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795373', 'tblTempUsageDetail_20' ) start [2025-03-30 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795373', 'tblTempUsageDetail_20' ) end [2025-03-30 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:50:22] Production.INFO: ==15251== Releasing lock... [2025-03-30 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:51:05 [end_date_ymd] => 2025-03-30 09:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:51:05' and `end` < '2025-03-30 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-03-30 09:51:17] Production.INFO: count ==246 [2025-03-30 09:51:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:51:05 - End Time 2025-03-30 09:51:05 [2025-03-30 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795379', 'tblTempUsageDetail_20' ) start [2025-03-30 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795379', 'tblTempUsageDetail_20' ) end [2025-03-30 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795379', 'tblTempVendorCDR_20' ) start [2025-03-30 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795379', 'tblTempVendorCDR_20' ) end [2025-03-30 09:51:17] Production.INFO: ProcessCDR(1,14795379,1,1,2) [2025-03-30 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795379', 'tblTempUsageDetail_20' ) start [2025-03-30 09:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795379', 'tblTempUsageDetail_20' ) end [2025-03-30 09:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:51:21] Production.INFO: ==15367== Releasing lock... [2025-03-30 09:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:52:06 [end_date_ymd] => 2025-03-30 09:52:06 [RateCDR] => 1 ) [2025-03-30 09: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-03-30 06:52:06' and `end` < '2025-03-30 09: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-03-30 09:52:19] Production.INFO: count ==246 [2025-03-30 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 06:52:06 - End Time 2025-03-30 09:52:06 [2025-03-30 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795384', 'tblTempUsageDetail_20' ) start [2025-03-30 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795384', 'tblTempUsageDetail_20' ) end [2025-03-30 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795384', 'tblTempVendorCDR_20' ) start [2025-03-30 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795384', 'tblTempVendorCDR_20' ) end [2025-03-30 09:52:19] Production.INFO: ProcessCDR(1,14795384,1,1,2) [2025-03-30 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795384', 'tblTempUsageDetail_20' ) start [2025-03-30 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795384', 'tblTempUsageDetail_20' ) end [2025-03-30 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:52:22] Production.INFO: ==15487== Releasing lock... [2025-03-30 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:53:05 [end_date_ymd] => 2025-03-30 09:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:53:05' and `end` < '2025-03-30 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-03-30 09:53:18] Production.INFO: count ==248 [2025-03-30 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:53:05 - End Time 2025-03-30 09:53:05 [2025-03-30 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795389', 'tblTempUsageDetail_20' ) start [2025-03-30 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795389', 'tblTempUsageDetail_20' ) end [2025-03-30 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795389', 'tblTempVendorCDR_20' ) start [2025-03-30 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795389', 'tblTempVendorCDR_20' ) end [2025-03-30 09:53:18] Production.INFO: ProcessCDR(1,14795389,1,1,2) [2025-03-30 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795389', 'tblTempUsageDetail_20' ) start [2025-03-30 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795389', 'tblTempUsageDetail_20' ) end [2025-03-30 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:53:23] Production.INFO: ==15610== Releasing lock... [2025-03-30 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:54:05 [end_date_ymd] => 2025-03-30 09:54:05 [RateCDR] => 1 ) [2025-03-30 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:54:05' and `end` < '2025-03-30 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:54:18] Production.INFO: count ==250 [2025-03-30 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:54:05 - End Time 2025-03-30 09:54:05 [2025-03-30 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795394', 'tblTempUsageDetail_20' ) start [2025-03-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795394', 'tblTempUsageDetail_20' ) end [2025-03-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795394', 'tblTempVendorCDR_20' ) start [2025-03-30 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795394', 'tblTempVendorCDR_20' ) end [2025-03-30 09:54:18] Production.INFO: ProcessCDR(1,14795394,1,1,2) [2025-03-30 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795394', 'tblTempUsageDetail_20' ) start [2025-03-30 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795394', 'tblTempUsageDetail_20' ) end [2025-03-30 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:54:21] Production.INFO: ==15735== Releasing lock... [2025-03-30 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:55:05 [end_date_ymd] => 2025-03-30 09:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:55:05' and `end` < '2025-03-30 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-03-30 09:55:18] Production.INFO: count ==255 [2025-03-30 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:55:05 - End Time 2025-03-30 09:55:05 [2025-03-30 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795399', 'tblTempUsageDetail_20' ) start [2025-03-30 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795399', 'tblTempUsageDetail_20' ) end [2025-03-30 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795399', 'tblTempVendorCDR_20' ) start [2025-03-30 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795399', 'tblTempVendorCDR_20' ) end [2025-03-30 09:55:18] Production.INFO: ProcessCDR(1,14795399,1,1,2) [2025-03-30 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795399', 'tblTempUsageDetail_20' ) start [2025-03-30 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795399', 'tblTempUsageDetail_20' ) end [2025-03-30 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:55:21] Production.INFO: ==15857== Releasing lock... [2025-03-30 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:56:05 [end_date_ymd] => 2025-03-30 09:56:05 [RateCDR] => 1 ) [2025-03-30 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:56:05' and `end` < '2025-03-30 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:56:18] Production.INFO: count ==251 [2025-03-30 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:56:05 - End Time 2025-03-30 09:56:05 [2025-03-30 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795404', 'tblTempUsageDetail_20' ) start [2025-03-30 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795404', 'tblTempUsageDetail_20' ) end [2025-03-30 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795404', 'tblTempVendorCDR_20' ) start [2025-03-30 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795404', 'tblTempVendorCDR_20' ) end [2025-03-30 09:56:18] Production.INFO: ProcessCDR(1,14795404,1,1,2) [2025-03-30 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795404', 'tblTempUsageDetail_20' ) start [2025-03-30 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795404', 'tblTempUsageDetail_20' ) end [2025-03-30 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:56:21] Production.INFO: ==16013== Releasing lock... [2025-03-30 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:57:06 [end_date_ymd] => 2025-03-30 09:57:06 [RateCDR] => 1 ) [2025-03-30 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:57:06' and `end` < '2025-03-30 09: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-03-30 09:57:18] Production.INFO: count ==244 [2025-03-30 09:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 06:57:06 - End Time 2025-03-30 09:57:06 [2025-03-30 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795409', 'tblTempUsageDetail_20' ) start [2025-03-30 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795409', 'tblTempUsageDetail_20' ) end [2025-03-30 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795409', 'tblTempVendorCDR_20' ) start [2025-03-30 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795409', 'tblTempVendorCDR_20' ) end [2025-03-30 09:57:18] Production.INFO: ProcessCDR(1,14795409,1,1,2) [2025-03-30 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795409', 'tblTempUsageDetail_20' ) start [2025-03-30 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795409', 'tblTempUsageDetail_20' ) end [2025-03-30 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:57:21] Production.INFO: ==16095== Releasing lock... [2025-03-30 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:58:05 [end_date_ymd] => 2025-03-30 09:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 06:58:05' and `end` < '2025-03-30 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-03-30 09:58:17] Production.INFO: count ==244 [2025-03-30 09:58:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:58:05 - End Time 2025-03-30 09:58:05 [2025-03-30 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795414', 'tblTempUsageDetail_20' ) start [2025-03-30 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795414', 'tblTempUsageDetail_20' ) end [2025-03-30 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795414', 'tblTempVendorCDR_20' ) start [2025-03-30 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795414', 'tblTempVendorCDR_20' ) end [2025-03-30 09:58:17] Production.INFO: ProcessCDR(1,14795414,1,1,2) [2025-03-30 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795414', 'tblTempUsageDetail_20' ) start [2025-03-30 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795414', 'tblTempUsageDetail_20' ) end [2025-03-30 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:58:21] Production.INFO: ==16176== Releasing lock... [2025-03-30 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 06:59:05 [end_date_ymd] => 2025-03-30 09:59:05 [RateCDR] => 1 ) [2025-03-30 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 06:59:05' and `end` < '2025-03-30 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 09:59:17] Production.INFO: count ==244 [2025-03-30 09:59:17] Production.ERROR: pbx CDR StartTime 2025-03-30 06:59:05 - End Time 2025-03-30 09:59:05 [2025-03-30 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795419', 'tblTempUsageDetail_20' ) start [2025-03-30 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795419', 'tblTempUsageDetail_20' ) end [2025-03-30 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795419', 'tblTempVendorCDR_20' ) start [2025-03-30 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795419', 'tblTempVendorCDR_20' ) end [2025-03-30 09:59:17] Production.INFO: ProcessCDR(1,14795419,1,1,2) [2025-03-30 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795419', 'tblTempUsageDetail_20' ) start [2025-03-30 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795419', 'tblTempUsageDetail_20' ) end [2025-03-30 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 09:59:21] Production.INFO: ==16255== Releasing lock... [2025-03-30 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 09:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:00:06 [end_date_ymd] => 2025-03-30 10:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:00:06' and `end` < '2025-03-30 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-03-30 10:00:18] Production.INFO: count ==244 [2025-03-30 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:00:06 - End Time 2025-03-30 10:00:06 [2025-03-30 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795425', 'tblTempUsageDetail_20' ) start [2025-03-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795425', 'tblTempUsageDetail_20' ) end [2025-03-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795425', 'tblTempVendorCDR_20' ) start [2025-03-30 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795425', 'tblTempVendorCDR_20' ) end [2025-03-30 10:00:18] Production.INFO: ProcessCDR(1,14795425,1,1,2) [2025-03-30 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795425', 'tblTempUsageDetail_20' ) start [2025-03-30 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795425', 'tblTempUsageDetail_20' ) end [2025-03-30 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:00:22] Production.INFO: ==16341== Releasing lock... [2025-03-30 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:01:05 [end_date_ymd] => 2025-03-30 10:01:05 [RateCDR] => 1 ) [2025-03-30 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:01:05' and `end` < '2025-03-30 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:01:18] Production.INFO: count ==244 [2025-03-30 10:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:01:05 - End Time 2025-03-30 10:01:05 [2025-03-30 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795430', 'tblTempUsageDetail_20' ) start [2025-03-30 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795430', 'tblTempUsageDetail_20' ) end [2025-03-30 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795430', 'tblTempVendorCDR_20' ) start [2025-03-30 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795430', 'tblTempVendorCDR_20' ) end [2025-03-30 10:01:18] Production.INFO: ProcessCDR(1,14795430,1,1,2) [2025-03-30 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795430', 'tblTempUsageDetail_20' ) start [2025-03-30 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795430', 'tblTempUsageDetail_20' ) end [2025-03-30 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:01:22] Production.INFO: ==16436== Releasing lock... [2025-03-30 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:02:06 [end_date_ymd] => 2025-03-30 10:02:06 [RateCDR] => 1 ) [2025-03-30 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:02:06' and `end` < '2025-03-30 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:02:18] Production.INFO: count ==244 [2025-03-30 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:02:06 - End Time 2025-03-30 10:02:06 [2025-03-30 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795435', 'tblTempUsageDetail_20' ) start [2025-03-30 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795435', 'tblTempUsageDetail_20' ) end [2025-03-30 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795435', 'tblTempVendorCDR_20' ) start [2025-03-30 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795435', 'tblTempVendorCDR_20' ) end [2025-03-30 10:02:18] Production.INFO: ProcessCDR(1,14795435,1,1,2) [2025-03-30 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795435', 'tblTempUsageDetail_20' ) start [2025-03-30 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795435', 'tblTempUsageDetail_20' ) end [2025-03-30 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:02:22] Production.INFO: ==16510== Releasing lock... [2025-03-30 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:03:05 [end_date_ymd] => 2025-03-30 10:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:03:05' and `end` < '2025-03-30 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-03-30 10:03:17] Production.INFO: count ==245 [2025-03-30 10:03:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:03:05 - End Time 2025-03-30 10:03:05 [2025-03-30 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795440', 'tblTempUsageDetail_20' ) start [2025-03-30 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795440', 'tblTempUsageDetail_20' ) end [2025-03-30 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795440', 'tblTempVendorCDR_20' ) start [2025-03-30 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795440', 'tblTempVendorCDR_20' ) end [2025-03-30 10:03:17] Production.INFO: ProcessCDR(1,14795440,1,1,2) [2025-03-30 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795440', 'tblTempUsageDetail_20' ) start [2025-03-30 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795440', 'tblTempUsageDetail_20' ) end [2025-03-30 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:03:22] Production.INFO: ==16595== Releasing lock... [2025-03-30 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:04:05 [end_date_ymd] => 2025-03-30 10:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:04:05' and `end` < '2025-03-30 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-03-30 10:04:17] Production.INFO: count ==245 [2025-03-30 10:04:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:04:05 - End Time 2025-03-30 10:04:05 [2025-03-30 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795445', 'tblTempUsageDetail_20' ) start [2025-03-30 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795445', 'tblTempUsageDetail_20' ) end [2025-03-30 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795445', 'tblTempVendorCDR_20' ) start [2025-03-30 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795445', 'tblTempVendorCDR_20' ) end [2025-03-30 10:04:17] Production.INFO: ProcessCDR(1,14795445,1,1,2) [2025-03-30 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795445', 'tblTempUsageDetail_20' ) start [2025-03-30 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795445', 'tblTempUsageDetail_20' ) end [2025-03-30 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:04:21] Production.INFO: ==16678== Releasing lock... [2025-03-30 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:05:05 [end_date_ymd] => 2025-03-30 10:05:05 [RateCDR] => 1 ) [2025-03-30 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:05:05' and `end` < '2025-03-30 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:05:18] Production.INFO: count ==244 [2025-03-30 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:05:05 - End Time 2025-03-30 10:05:05 [2025-03-30 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795450', 'tblTempUsageDetail_20' ) start [2025-03-30 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795450', 'tblTempUsageDetail_20' ) end [2025-03-30 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795450', 'tblTempVendorCDR_20' ) start [2025-03-30 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795450', 'tblTempVendorCDR_20' ) end [2025-03-30 10:05:18] Production.INFO: ProcessCDR(1,14795450,1,1,2) [2025-03-30 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795450', 'tblTempUsageDetail_20' ) start [2025-03-30 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795450', 'tblTempUsageDetail_20' ) end [2025-03-30 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:05:21] Production.INFO: ==16756== Releasing lock... [2025-03-30 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:06:06 [end_date_ymd] => 2025-03-30 10:06:06 [RateCDR] => 1 ) [2025-03-30 10:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:06:06' and `end` < '2025-03-30 10:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:06:18] Production.INFO: count ==244 [2025-03-30 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:06:06 - End Time 2025-03-30 10:06:06 [2025-03-30 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795455', 'tblTempUsageDetail_20' ) start [2025-03-30 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795455', 'tblTempUsageDetail_20' ) end [2025-03-30 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795455', 'tblTempVendorCDR_20' ) start [2025-03-30 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795455', 'tblTempVendorCDR_20' ) end [2025-03-30 10:06:18] Production.INFO: ProcessCDR(1,14795455,1,1,2) [2025-03-30 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795455', 'tblTempUsageDetail_20' ) start [2025-03-30 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795455', 'tblTempUsageDetail_20' ) end [2025-03-30 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:06:22] Production.INFO: ==16836== Releasing lock... [2025-03-30 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:07:05 [end_date_ymd] => 2025-03-30 10:07:05 [RateCDR] => 1 ) [2025-03-30 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:07:05' and `end` < '2025-03-30 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:07:18] Production.INFO: count ==244 [2025-03-30 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:07:05 - End Time 2025-03-30 10:07:05 [2025-03-30 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795460', 'tblTempUsageDetail_20' ) start [2025-03-30 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795460', 'tblTempUsageDetail_20' ) end [2025-03-30 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795460', 'tblTempVendorCDR_20' ) start [2025-03-30 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795460', 'tblTempVendorCDR_20' ) end [2025-03-30 10:07:18] Production.INFO: ProcessCDR(1,14795460,1,1,2) [2025-03-30 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795460', 'tblTempUsageDetail_20' ) start [2025-03-30 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795460', 'tblTempUsageDetail_20' ) end [2025-03-30 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:07:21] Production.INFO: ==16912== Releasing lock... [2025-03-30 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:08:05 [end_date_ymd] => 2025-03-30 10:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:08:05' and `end` < '2025-03-30 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-03-30 10:08:18] Production.INFO: count ==244 [2025-03-30 10:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:08:05 - End Time 2025-03-30 10:08:05 [2025-03-30 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795465', 'tblTempUsageDetail_20' ) start [2025-03-30 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795465', 'tblTempUsageDetail_20' ) end [2025-03-30 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795465', 'tblTempVendorCDR_20' ) start [2025-03-30 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795465', 'tblTempVendorCDR_20' ) end [2025-03-30 10:08:18] Production.INFO: ProcessCDR(1,14795465,1,1,2) [2025-03-30 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795465', 'tblTempUsageDetail_20' ) start [2025-03-30 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795465', 'tblTempUsageDetail_20' ) end [2025-03-30 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:08:21] Production.INFO: ==16991== Releasing lock... [2025-03-30 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:09:05 [end_date_ymd] => 2025-03-30 10:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:09:05' and `end` < '2025-03-30 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-03-30 10:09:18] Production.INFO: count ==245 [2025-03-30 10:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:09:05 - End Time 2025-03-30 10:09:05 [2025-03-30 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795470', 'tblTempUsageDetail_20' ) start [2025-03-30 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795470', 'tblTempUsageDetail_20' ) end [2025-03-30 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795470', 'tblTempVendorCDR_20' ) start [2025-03-30 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795470', 'tblTempVendorCDR_20' ) end [2025-03-30 10:09:18] Production.INFO: ProcessCDR(1,14795470,1,1,2) [2025-03-30 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795470', 'tblTempUsageDetail_20' ) start [2025-03-30 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795470', 'tblTempUsageDetail_20' ) end [2025-03-30 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:09:23] Production.INFO: ==17078== Releasing lock... [2025-03-30 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:09:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:10:06 [end_date_ymd] => 2025-03-30 10:10:06 [RateCDR] => 1 ) [2025-03-30 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:10:06' and `end` < '2025-03-30 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:10:19] Production.INFO: count ==256 [2025-03-30 10:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 07:10:06 - End Time 2025-03-30 10:10:06 [2025-03-30 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795476', 'tblTempUsageDetail_20' ) start [2025-03-30 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795476', 'tblTempUsageDetail_20' ) end [2025-03-30 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795476', 'tblTempVendorCDR_20' ) start [2025-03-30 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795476', 'tblTempVendorCDR_20' ) end [2025-03-30 10:10:19] Production.INFO: ProcessCDR(1,14795476,1,1,2) [2025-03-30 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795476', 'tblTempUsageDetail_20' ) start [2025-03-30 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795476', 'tblTempUsageDetail_20' ) end [2025-03-30 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:10:24] Production.INFO: ==17167== Releasing lock... [2025-03-30 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:10:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:11:05 [end_date_ymd] => 2025-03-30 10:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:11:05' and `end` < '2025-03-30 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-03-30 10:11:17] Production.INFO: count ==280 [2025-03-30 10:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:11:05 - End Time 2025-03-30 10:11:05 [2025-03-30 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795481', 'tblTempUsageDetail_20' ) start [2025-03-30 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795481', 'tblTempUsageDetail_20' ) end [2025-03-30 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795481', 'tblTempVendorCDR_20' ) start [2025-03-30 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795481', 'tblTempVendorCDR_20' ) end [2025-03-30 10:11:18] Production.INFO: ProcessCDR(1,14795481,1,1,2) [2025-03-30 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795481', 'tblTempUsageDetail_20' ) start [2025-03-30 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795481', 'tblTempUsageDetail_20' ) end [2025-03-30 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:11:23] Production.INFO: ==17279== Releasing lock... [2025-03-30 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-30 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:12:05 [end_date_ymd] => 2025-03-30 10:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:12:05' and `end` < '2025-03-30 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-03-30 10:12:18] Production.INFO: count ==281 [2025-03-30 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:12:05 - End Time 2025-03-30 10:12:05 [2025-03-30 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795486', 'tblTempUsageDetail_20' ) start [2025-03-30 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795486', 'tblTempUsageDetail_20' ) end [2025-03-30 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795486', 'tblTempVendorCDR_20' ) start [2025-03-30 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795486', 'tblTempVendorCDR_20' ) end [2025-03-30 10:12:18] Production.INFO: ProcessCDR(1,14795486,1,1,2) [2025-03-30 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795486', 'tblTempUsageDetail_20' ) start [2025-03-30 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795486', 'tblTempUsageDetail_20' ) end [2025-03-30 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:12:23] Production.INFO: ==17367== Releasing lock... [2025-03-30 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:13:05 [end_date_ymd] => 2025-03-30 10:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:13:05' and `end` < '2025-03-30 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-03-30 10:13:17] Production.INFO: count ==297 [2025-03-30 10:13:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:13:05 - End Time 2025-03-30 10:13:05 [2025-03-30 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795491', 'tblTempUsageDetail_20' ) start [2025-03-30 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795491', 'tblTempUsageDetail_20' ) end [2025-03-30 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795491', 'tblTempVendorCDR_20' ) start [2025-03-30 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795491', 'tblTempVendorCDR_20' ) end [2025-03-30 10:13:17] Production.INFO: ProcessCDR(1,14795491,1,1,2) [2025-03-30 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795491', 'tblTempUsageDetail_20' ) start [2025-03-30 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795491', 'tblTempUsageDetail_20' ) end [2025-03-30 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:13:22] Production.INFO: ==17443== Releasing lock... [2025-03-30 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:14:05 [end_date_ymd] => 2025-03-30 10:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:14:05' and `end` < '2025-03-30 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-03-30 10:14:18] Production.INFO: count ==294 [2025-03-30 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:14:05 - End Time 2025-03-30 10:14:05 [2025-03-30 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795496', 'tblTempUsageDetail_20' ) start [2025-03-30 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795496', 'tblTempUsageDetail_20' ) end [2025-03-30 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795496', 'tblTempVendorCDR_20' ) start [2025-03-30 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795496', 'tblTempVendorCDR_20' ) end [2025-03-30 10:14:18] Production.INFO: ProcessCDR(1,14795496,1,1,2) [2025-03-30 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795496', 'tblTempUsageDetail_20' ) start [2025-03-30 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795496', 'tblTempUsageDetail_20' ) end [2025-03-30 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:14:22] Production.INFO: ==17522== Releasing lock... [2025-03-30 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:15:05 [end_date_ymd] => 2025-03-30 10:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:15:05' and `end` < '2025-03-30 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-03-30 10:15:18] Production.INFO: count ==295 [2025-03-30 10:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:15:05 - End Time 2025-03-30 10:15:05 [2025-03-30 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795501', 'tblTempUsageDetail_20' ) start [2025-03-30 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795501', 'tblTempUsageDetail_20' ) end [2025-03-30 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795501', 'tblTempVendorCDR_20' ) start [2025-03-30 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795501', 'tblTempVendorCDR_20' ) end [2025-03-30 10:15:18] Production.INFO: ProcessCDR(1,14795501,1,1,2) [2025-03-30 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795501', 'tblTempUsageDetail_20' ) start [2025-03-30 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795501', 'tblTempUsageDetail_20' ) end [2025-03-30 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:15:23] Production.INFO: ==17601== Releasing lock... [2025-03-30 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:15:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:16:06 [end_date_ymd] => 2025-03-30 10:16:06 [RateCDR] => 1 ) [2025-03-30 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:16:06' and `end` < '2025-03-30 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:16:18] Production.INFO: count ==301 [2025-03-30 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:16:06 - End Time 2025-03-30 10:16:06 [2025-03-30 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795506', 'tblTempUsageDetail_20' ) start [2025-03-30 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795506', 'tblTempUsageDetail_20' ) end [2025-03-30 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795506', 'tblTempVendorCDR_20' ) start [2025-03-30 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795506', 'tblTempVendorCDR_20' ) end [2025-03-30 10:16:18] Production.INFO: ProcessCDR(1,14795506,1,1,2) [2025-03-30 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795506', 'tblTempUsageDetail_20' ) start [2025-03-30 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795506', 'tblTempUsageDetail_20' ) end [2025-03-30 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:16:22] Production.INFO: ==17685== Releasing lock... [2025-03-30 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:17:06 [end_date_ymd] => 2025-03-30 10:17:06 [RateCDR] => 1 ) [2025-03-30 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:17:06' and `end` < '2025-03-30 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:17:18] Production.INFO: count ==301 [2025-03-30 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:17:06 - End Time 2025-03-30 10:17:06 [2025-03-30 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795511', 'tblTempUsageDetail_20' ) start [2025-03-30 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795511', 'tblTempUsageDetail_20' ) end [2025-03-30 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795511', 'tblTempVendorCDR_20' ) start [2025-03-30 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795511', 'tblTempVendorCDR_20' ) end [2025-03-30 10:17:18] Production.INFO: ProcessCDR(1,14795511,1,1,2) [2025-03-30 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795511', 'tblTempUsageDetail_20' ) start [2025-03-30 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795511', 'tblTempUsageDetail_20' ) end [2025-03-30 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:17:22] Production.INFO: ==17762== Releasing lock... [2025-03-30 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:18:05 [end_date_ymd] => 2025-03-30 10:18:05 [RateCDR] => 1 ) [2025-03-30 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:18:05' and `end` < '2025-03-30 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:18:18] Production.INFO: count ==301 [2025-03-30 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:18:05 - End Time 2025-03-30 10:18:05 [2025-03-30 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795516', 'tblTempUsageDetail_20' ) start [2025-03-30 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795516', 'tblTempUsageDetail_20' ) end [2025-03-30 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795516', 'tblTempVendorCDR_20' ) start [2025-03-30 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795516', 'tblTempVendorCDR_20' ) end [2025-03-30 10:18:18] Production.INFO: ProcessCDR(1,14795516,1,1,2) [2025-03-30 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795516', 'tblTempUsageDetail_20' ) start [2025-03-30 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795516', 'tblTempUsageDetail_20' ) end [2025-03-30 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:18:21] Production.INFO: ==17836== Releasing lock... [2025-03-30 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:19:05 [end_date_ymd] => 2025-03-30 10:19:05 [RateCDR] => 1 ) [2025-03-30 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:19:05' and `end` < '2025-03-30 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:19:18] Production.INFO: count ==305 [2025-03-30 10:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:19:05 - End Time 2025-03-30 10:19:05 [2025-03-30 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795521', 'tblTempUsageDetail_20' ) start [2025-03-30 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795521', 'tblTempUsageDetail_20' ) end [2025-03-30 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795521', 'tblTempVendorCDR_20' ) start [2025-03-30 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795521', 'tblTempVendorCDR_20' ) end [2025-03-30 10:19:18] Production.INFO: ProcessCDR(1,14795521,1,1,2) [2025-03-30 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795521', 'tblTempUsageDetail_20' ) start [2025-03-30 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795521', 'tblTempUsageDetail_20' ) end [2025-03-30 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:19:21] Production.INFO: ==17918== Releasing lock... [2025-03-30 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:20:05 [end_date_ymd] => 2025-03-30 10:20:05 [RateCDR] => 1 ) [2025-03-30 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:20:05' and `end` < '2025-03-30 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:20:18] Production.INFO: count ==314 [2025-03-30 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:20:05 - End Time 2025-03-30 10:20:05 [2025-03-30 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795526', 'tblTempUsageDetail_20' ) start [2025-03-30 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795526', 'tblTempUsageDetail_20' ) end [2025-03-30 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795526', 'tblTempVendorCDR_20' ) start [2025-03-30 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795526', 'tblTempVendorCDR_20' ) end [2025-03-30 10:20:18] Production.INFO: ProcessCDR(1,14795526,1,1,2) [2025-03-30 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795526', 'tblTempUsageDetail_20' ) start [2025-03-30 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795526', 'tblTempUsageDetail_20' ) end [2025-03-30 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:20:23] Production.INFO: ==18000== Releasing lock... [2025-03-30 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:20:23] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:21:05 [end_date_ymd] => 2025-03-30 10:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:21:05' and `end` < '2025-03-30 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-03-30 10:21:18] Production.INFO: count ==320 [2025-03-30 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:21:05 - End Time 2025-03-30 10:21:05 [2025-03-30 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795532', 'tblTempUsageDetail_20' ) start [2025-03-30 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795532', 'tblTempUsageDetail_20' ) end [2025-03-30 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795532', 'tblTempVendorCDR_20' ) start [2025-03-30 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795532', 'tblTempVendorCDR_20' ) end [2025-03-30 10:21:18] Production.INFO: ProcessCDR(1,14795532,1,1,2) [2025-03-30 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795532', 'tblTempUsageDetail_20' ) start [2025-03-30 10:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795532', 'tblTempUsageDetail_20' ) end [2025-03-30 10:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:21:23] Production.INFO: ==18078== Releasing lock... [2025-03-30 10:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:21:23] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:22:05 [end_date_ymd] => 2025-03-30 10:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:22:05' and `end` < '2025-03-30 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-03-30 10:22:18] Production.INFO: count ==320 [2025-03-30 10:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:22:05 - End Time 2025-03-30 10:22:05 [2025-03-30 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795537', 'tblTempUsageDetail_20' ) start [2025-03-30 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795537', 'tblTempUsageDetail_20' ) end [2025-03-30 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795537', 'tblTempVendorCDR_20' ) start [2025-03-30 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795537', 'tblTempVendorCDR_20' ) end [2025-03-30 10:22:18] Production.INFO: ProcessCDR(1,14795537,1,1,2) [2025-03-30 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795537', 'tblTempUsageDetail_20' ) start [2025-03-30 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795537', 'tblTempUsageDetail_20' ) end [2025-03-30 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:22:21] Production.INFO: ==18157== Releasing lock... [2025-03-30 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:23:05 [end_date_ymd] => 2025-03-30 10:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:23:05' and `end` < '2025-03-30 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-03-30 10:23:18] Production.INFO: count ==324 [2025-03-30 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:23:05 - End Time 2025-03-30 10:23:05 [2025-03-30 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795542', 'tblTempUsageDetail_20' ) start [2025-03-30 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795542', 'tblTempUsageDetail_20' ) end [2025-03-30 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795542', 'tblTempVendorCDR_20' ) start [2025-03-30 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795542', 'tblTempVendorCDR_20' ) end [2025-03-30 10:23:18] Production.INFO: ProcessCDR(1,14795542,1,1,2) [2025-03-30 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795542', 'tblTempUsageDetail_20' ) start [2025-03-30 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795542', 'tblTempUsageDetail_20' ) end [2025-03-30 10:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:23:21] Production.INFO: ==18233== Releasing lock... [2025-03-30 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:24:06 [end_date_ymd] => 2025-03-30 10:24:06 [RateCDR] => 1 ) [2025-03-30 10: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-03-30 07:24:06' and `end` < '2025-03-30 10: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-03-30 10:24:19] Production.INFO: count ==324 [2025-03-30 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 07:24:06 - End Time 2025-03-30 10:24:06 [2025-03-30 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795547', 'tblTempUsageDetail_20' ) start [2025-03-30 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795547', 'tblTempUsageDetail_20' ) end [2025-03-30 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795547', 'tblTempVendorCDR_20' ) start [2025-03-30 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795547', 'tblTempVendorCDR_20' ) end [2025-03-30 10:24:19] Production.INFO: ProcessCDR(1,14795547,1,1,2) [2025-03-30 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795547', 'tblTempUsageDetail_20' ) start [2025-03-30 10:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795547', 'tblTempUsageDetail_20' ) end [2025-03-30 10:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:24:22] Production.INFO: ==18314== Releasing lock... [2025-03-30 10:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:25:05 [end_date_ymd] => 2025-03-30 10:25:05 [RateCDR] => 1 ) [2025-03-30 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:25:05' and `end` < '2025-03-30 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:25:18] Production.INFO: count ==325 [2025-03-30 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:25:05 - End Time 2025-03-30 10:25:05 [2025-03-30 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795552', 'tblTempUsageDetail_20' ) start [2025-03-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795552', 'tblTempUsageDetail_20' ) end [2025-03-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795552', 'tblTempVendorCDR_20' ) start [2025-03-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795552', 'tblTempVendorCDR_20' ) end [2025-03-30 10:25:18] Production.INFO: ProcessCDR(1,14795552,1,1,2) [2025-03-30 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795552', 'tblTempUsageDetail_20' ) start [2025-03-30 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795552', 'tblTempUsageDetail_20' ) end [2025-03-30 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:25:21] Production.INFO: ==18396== Releasing lock... [2025-03-30 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:26:06 [end_date_ymd] => 2025-03-30 10:26:06 [RateCDR] => 1 ) [2025-03-30 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:26:06' and `end` < '2025-03-30 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:26:18] Production.INFO: count ==326 [2025-03-30 10:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:26:06 - End Time 2025-03-30 10:26:06 [2025-03-30 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795557', 'tblTempUsageDetail_20' ) start [2025-03-30 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795557', 'tblTempUsageDetail_20' ) end [2025-03-30 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795557', 'tblTempVendorCDR_20' ) start [2025-03-30 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795557', 'tblTempVendorCDR_20' ) end [2025-03-30 10:26:18] Production.INFO: ProcessCDR(1,14795557,1,1,2) [2025-03-30 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795557', 'tblTempUsageDetail_20' ) start [2025-03-30 10:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795557', 'tblTempUsageDetail_20' ) end [2025-03-30 10:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:26:23] Production.INFO: ==18473== Releasing lock... [2025-03-30 10:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:26:23] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:27:05 [end_date_ymd] => 2025-03-30 10:27:05 [RateCDR] => 1 ) [2025-03-30 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:27:05' and `end` < '2025-03-30 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:27:18] Production.INFO: count ==322 [2025-03-30 10:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:27:05 - End Time 2025-03-30 10:27:05 [2025-03-30 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795562', 'tblTempUsageDetail_20' ) start [2025-03-30 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795562', 'tblTempUsageDetail_20' ) end [2025-03-30 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795562', 'tblTempVendorCDR_20' ) start [2025-03-30 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795562', 'tblTempVendorCDR_20' ) end [2025-03-30 10:27:18] Production.INFO: ProcessCDR(1,14795562,1,1,2) [2025-03-30 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795562', 'tblTempUsageDetail_20' ) start [2025-03-30 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795562', 'tblTempUsageDetail_20' ) end [2025-03-30 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:27:21] Production.INFO: ==18585== Releasing lock... [2025-03-30 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-30 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:28:05 [end_date_ymd] => 2025-03-30 10:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:28:05' and `end` < '2025-03-30 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-03-30 10:28:18] Production.INFO: count ==325 [2025-03-30 10:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:28:05 - End Time 2025-03-30 10:28:05 [2025-03-30 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795567', 'tblTempUsageDetail_20' ) start [2025-03-30 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795567', 'tblTempUsageDetail_20' ) end [2025-03-30 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795567', 'tblTempVendorCDR_20' ) start [2025-03-30 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795567', 'tblTempVendorCDR_20' ) end [2025-03-30 10:28:18] Production.INFO: ProcessCDR(1,14795567,1,1,2) [2025-03-30 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795567', 'tblTempUsageDetail_20' ) start [2025-03-30 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795567', 'tblTempUsageDetail_20' ) end [2025-03-30 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:28:21] Production.INFO: ==18658== Releasing lock... [2025-03-30 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:29:05 [end_date_ymd] => 2025-03-30 10:29:05 [RateCDR] => 1 ) [2025-03-30 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:29:05' and `end` < '2025-03-30 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:29:18] Production.INFO: count ==322 [2025-03-30 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:29:05 - End Time 2025-03-30 10:29:05 [2025-03-30 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795572', 'tblTempUsageDetail_20' ) start [2025-03-30 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795572', 'tblTempUsageDetail_20' ) end [2025-03-30 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795572', 'tblTempVendorCDR_20' ) start [2025-03-30 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795572', 'tblTempVendorCDR_20' ) end [2025-03-30 10:29:18] Production.INFO: ProcessCDR(1,14795572,1,1,2) [2025-03-30 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795572', 'tblTempUsageDetail_20' ) start [2025-03-30 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795572', 'tblTempUsageDetail_20' ) end [2025-03-30 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:29:21] Production.INFO: ==18738== Releasing lock... [2025-03-30 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:30:06 [end_date_ymd] => 2025-03-30 10:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:30:06' and `end` < '2025-03-30 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-03-30 10:30:19] Production.INFO: count ==335 [2025-03-30 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 07:30:06 - End Time 2025-03-30 10:30:06 [2025-03-30 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795578', 'tblTempUsageDetail_20' ) start [2025-03-30 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795578', 'tblTempUsageDetail_20' ) end [2025-03-30 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795578', 'tblTempVendorCDR_20' ) start [2025-03-30 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795578', 'tblTempVendorCDR_20' ) end [2025-03-30 10:30:19] Production.INFO: ProcessCDR(1,14795578,1,1,2) [2025-03-30 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795578', 'tblTempUsageDetail_20' ) start [2025-03-30 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795578', 'tblTempUsageDetail_20' ) end [2025-03-30 10:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:30:22] Production.INFO: ==18813== Releasing lock... [2025-03-30 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-30 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:31:05 [end_date_ymd] => 2025-03-30 10:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:31:05' and `end` < '2025-03-30 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-03-30 10:31:18] Production.INFO: count ==347 [2025-03-30 10:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:31:05 - End Time 2025-03-30 10:31:05 [2025-03-30 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795583', 'tblTempUsageDetail_20' ) start [2025-03-30 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795583', 'tblTempUsageDetail_20' ) end [2025-03-30 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795583', 'tblTempVendorCDR_20' ) start [2025-03-30 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795583', 'tblTempVendorCDR_20' ) end [2025-03-30 10:31:18] Production.INFO: ProcessCDR(1,14795583,1,1,2) [2025-03-30 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795583', 'tblTempUsageDetail_20' ) start [2025-03-30 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795583', 'tblTempUsageDetail_20' ) end [2025-03-30 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:31:21] Production.INFO: ==18887== Releasing lock... [2025-03-30 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:32:05 [end_date_ymd] => 2025-03-30 10:32:05 [RateCDR] => 1 ) [2025-03-30 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:32:05' and `end` < '2025-03-30 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:32:18] Production.INFO: count ==350 [2025-03-30 10:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:32:05 - End Time 2025-03-30 10:32:05 [2025-03-30 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795588', 'tblTempUsageDetail_20' ) start [2025-03-30 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795588', 'tblTempUsageDetail_20' ) end [2025-03-30 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795588', 'tblTempVendorCDR_20' ) start [2025-03-30 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795588', 'tblTempVendorCDR_20' ) end [2025-03-30 10:32:18] Production.INFO: ProcessCDR(1,14795588,1,1,2) [2025-03-30 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795588', 'tblTempUsageDetail_20' ) start [2025-03-30 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795588', 'tblTempUsageDetail_20' ) end [2025-03-30 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:32:22] Production.INFO: ==18965== Releasing lock... [2025-03-30 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-30 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:33:05 [end_date_ymd] => 2025-03-30 10:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:33:05' and `end` < '2025-03-30 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-03-30 10:33:17] Production.INFO: count ==355 [2025-03-30 10:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:33:05 - End Time 2025-03-30 10:33:05 [2025-03-30 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795593', 'tblTempUsageDetail_20' ) start [2025-03-30 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795593', 'tblTempUsageDetail_20' ) end [2025-03-30 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795593', 'tblTempVendorCDR_20' ) start [2025-03-30 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795593', 'tblTempVendorCDR_20' ) end [2025-03-30 10:33:18] Production.INFO: ProcessCDR(1,14795593,1,1,2) [2025-03-30 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795593', 'tblTempUsageDetail_20' ) start [2025-03-30 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795593', 'tblTempUsageDetail_20' ) end [2025-03-30 10:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:33:21] Production.INFO: ==19038== Releasing lock... [2025-03-30 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:34:05 [end_date_ymd] => 2025-03-30 10:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:34:05' and `end` < '2025-03-30 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-03-30 10:34:17] Production.INFO: count ==355 [2025-03-30 10:34:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:34:05 - End Time 2025-03-30 10:34:05 [2025-03-30 10:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795598', 'tblTempUsageDetail_20' ) start [2025-03-30 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795598', 'tblTempUsageDetail_20' ) end [2025-03-30 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795598', 'tblTempVendorCDR_20' ) start [2025-03-30 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795598', 'tblTempVendorCDR_20' ) end [2025-03-30 10:34:18] Production.INFO: ProcessCDR(1,14795598,1,1,2) [2025-03-30 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795598', 'tblTempUsageDetail_20' ) start [2025-03-30 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795598', 'tblTempUsageDetail_20' ) end [2025-03-30 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:34:21] Production.INFO: ==19115== Releasing lock... [2025-03-30 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:35:05 [end_date_ymd] => 2025-03-30 10:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:35:05' and `end` < '2025-03-30 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-03-30 10:35:17] Production.INFO: count ==359 [2025-03-30 10:35:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:35:05 - End Time 2025-03-30 10:35:05 [2025-03-30 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795603', 'tblTempUsageDetail_20' ) start [2025-03-30 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795603', 'tblTempUsageDetail_20' ) end [2025-03-30 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795603', 'tblTempVendorCDR_20' ) start [2025-03-30 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795603', 'tblTempVendorCDR_20' ) end [2025-03-30 10:35:17] Production.INFO: ProcessCDR(1,14795603,1,1,2) [2025-03-30 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795603', 'tblTempUsageDetail_20' ) start [2025-03-30 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795603', 'tblTempUsageDetail_20' ) end [2025-03-30 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:35:21] Production.INFO: ==19193== Releasing lock... [2025-03-30 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:36:05 [end_date_ymd] => 2025-03-30 10:36:05 [RateCDR] => 1 ) [2025-03-30 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:36:05' and `end` < '2025-03-30 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:36:17] Production.INFO: count ==359 [2025-03-30 10:36:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:36:05 - End Time 2025-03-30 10:36:05 [2025-03-30 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795608', 'tblTempUsageDetail_20' ) start [2025-03-30 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795608', 'tblTempUsageDetail_20' ) end [2025-03-30 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795608', 'tblTempVendorCDR_20' ) start [2025-03-30 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795608', 'tblTempVendorCDR_20' ) end [2025-03-30 10:36:17] Production.INFO: ProcessCDR(1,14795608,1,1,2) [2025-03-30 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795608', 'tblTempUsageDetail_20' ) start [2025-03-30 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795608', 'tblTempUsageDetail_20' ) end [2025-03-30 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:36:21] Production.INFO: ==19266== Releasing lock... [2025-03-30 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:37:05 [end_date_ymd] => 2025-03-30 10:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:37:05' and `end` < '2025-03-30 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-03-30 10:37:17] Production.INFO: count ==359 [2025-03-30 10:37:17] Production.ERROR: pbx CDR StartTime 2025-03-30 07:37:05 - End Time 2025-03-30 10:37:05 [2025-03-30 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795613', 'tblTempUsageDetail_20' ) start [2025-03-30 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795613', 'tblTempUsageDetail_20' ) end [2025-03-30 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795613', 'tblTempVendorCDR_20' ) start [2025-03-30 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795613', 'tblTempVendorCDR_20' ) end [2025-03-30 10:37:17] Production.INFO: ProcessCDR(1,14795613,1,1,2) [2025-03-30 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795613', 'tblTempUsageDetail_20' ) start [2025-03-30 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795613', 'tblTempUsageDetail_20' ) end [2025-03-30 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:37:21] Production.INFO: ==19336== Releasing lock... [2025-03-30 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:38:05 [end_date_ymd] => 2025-03-30 10:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:38:05' and `end` < '2025-03-30 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-03-30 10:38:18] Production.INFO: count ==359 [2025-03-30 10:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:38:05 - End Time 2025-03-30 10:38:05 [2025-03-30 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795618', 'tblTempUsageDetail_20' ) start [2025-03-30 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795618', 'tblTempUsageDetail_20' ) end [2025-03-30 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795618', 'tblTempVendorCDR_20' ) start [2025-03-30 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795618', 'tblTempVendorCDR_20' ) end [2025-03-30 10:38:18] Production.INFO: ProcessCDR(1,14795618,1,1,2) [2025-03-30 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795618', 'tblTempUsageDetail_20' ) start [2025-03-30 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795618', 'tblTempUsageDetail_20' ) end [2025-03-30 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:38:21] Production.INFO: ==19411== Releasing lock... [2025-03-30 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:39:05 [end_date_ymd] => 2025-03-30 10:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:39:05' and `end` < '2025-03-30 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-03-30 10:39:18] Production.INFO: count ==359 [2025-03-30 10:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:39:05 - End Time 2025-03-30 10:39:05 [2025-03-30 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795623', 'tblTempUsageDetail_20' ) start [2025-03-30 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795623', 'tblTempUsageDetail_20' ) end [2025-03-30 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795623', 'tblTempVendorCDR_20' ) start [2025-03-30 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795623', 'tblTempVendorCDR_20' ) end [2025-03-30 10:39:18] Production.INFO: ProcessCDR(1,14795623,1,1,2) [2025-03-30 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795623', 'tblTempUsageDetail_20' ) start [2025-03-30 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795623', 'tblTempUsageDetail_20' ) end [2025-03-30 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:39:22] Production.INFO: ==19488== Releasing lock... [2025-03-30 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:39:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:40:05 [end_date_ymd] => 2025-03-30 10:40:05 [RateCDR] => 1 ) [2025-03-30 10: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-03-30 07:40:05' and `end` < '2025-03-30 10: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-03-30 10:40:18] Production.INFO: count ==361 [2025-03-30 10:40:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:40:05 - End Time 2025-03-30 10:40:05 [2025-03-30 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795628', 'tblTempUsageDetail_20' ) start [2025-03-30 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795628', 'tblTempUsageDetail_20' ) end [2025-03-30 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795628', 'tblTempVendorCDR_20' ) start [2025-03-30 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795628', 'tblTempVendorCDR_20' ) end [2025-03-30 10:40:18] Production.INFO: ProcessCDR(1,14795628,1,1,2) [2025-03-30 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795628', 'tblTempUsageDetail_20' ) start [2025-03-30 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795628', 'tblTempUsageDetail_20' ) end [2025-03-30 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:40:22] Production.INFO: ==19564== Releasing lock... [2025-03-30 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:41:05 [end_date_ymd] => 2025-03-30 10:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:41:05' and `end` < '2025-03-30 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-03-30 10:41:18] Production.INFO: count ==357 [2025-03-30 10:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:41:05 - End Time 2025-03-30 10:41:05 [2025-03-30 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795634', 'tblTempUsageDetail_20' ) start [2025-03-30 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795634', 'tblTempUsageDetail_20' ) end [2025-03-30 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795634', 'tblTempVendorCDR_20' ) start [2025-03-30 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795634', 'tblTempVendorCDR_20' ) end [2025-03-30 10:41:18] Production.INFO: ProcessCDR(1,14795634,1,1,2) [2025-03-30 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795634', 'tblTempUsageDetail_20' ) start [2025-03-30 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795634', 'tblTempUsageDetail_20' ) end [2025-03-30 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:41:21] Production.INFO: ==19645== Releasing lock... [2025-03-30 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:41:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:42:06 [end_date_ymd] => 2025-03-30 10:42:06 [RateCDR] => 1 ) [2025-03-30 10: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-03-30 07:42:06' and `end` < '2025-03-30 10: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-03-30 10:42:18] Production.INFO: count ==360 [2025-03-30 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:42:06 - End Time 2025-03-30 10:42:06 [2025-03-30 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795639', 'tblTempUsageDetail_20' ) start [2025-03-30 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795639', 'tblTempUsageDetail_20' ) end [2025-03-30 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795639', 'tblTempVendorCDR_20' ) start [2025-03-30 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795639', 'tblTempVendorCDR_20' ) end [2025-03-30 10:42:18] Production.INFO: ProcessCDR(1,14795639,1,1,2) [2025-03-30 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795639', 'tblTempUsageDetail_20' ) start [2025-03-30 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795639', 'tblTempUsageDetail_20' ) end [2025-03-30 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:42:22] Production.INFO: ==19760== Releasing lock... [2025-03-30 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:43:05 [end_date_ymd] => 2025-03-30 10:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:43:05' and `end` < '2025-03-30 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-03-30 10:43:18] Production.INFO: count ==363 [2025-03-30 10:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:43:05 - End Time 2025-03-30 10:43:05 [2025-03-30 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795644', 'tblTempUsageDetail_20' ) start [2025-03-30 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795644', 'tblTempUsageDetail_20' ) end [2025-03-30 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795644', 'tblTempVendorCDR_20' ) start [2025-03-30 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795644', 'tblTempVendorCDR_20' ) end [2025-03-30 10:43:18] Production.INFO: ProcessCDR(1,14795644,1,1,2) [2025-03-30 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795644', 'tblTempUsageDetail_20' ) start [2025-03-30 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795644', 'tblTempUsageDetail_20' ) end [2025-03-30 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:43:21] Production.INFO: ==19832== Releasing lock... [2025-03-30 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:43:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:44:05 [end_date_ymd] => 2025-03-30 10:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:44:05' and `end` < '2025-03-30 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-03-30 10:44:18] Production.INFO: count ==363 [2025-03-30 10:44:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:44:05 - End Time 2025-03-30 10:44:05 [2025-03-30 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795649', 'tblTempUsageDetail_20' ) start [2025-03-30 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795649', 'tblTempUsageDetail_20' ) end [2025-03-30 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795649', 'tblTempVendorCDR_20' ) start [2025-03-30 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795649', 'tblTempVendorCDR_20' ) end [2025-03-30 10:44:18] Production.INFO: ProcessCDR(1,14795649,1,1,2) [2025-03-30 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795649', 'tblTempUsageDetail_20' ) start [2025-03-30 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795649', 'tblTempUsageDetail_20' ) end [2025-03-30 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:44:22] Production.INFO: ==19904== Releasing lock... [2025-03-30 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:44:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:45:06 [end_date_ymd] => 2025-03-30 10:45:06 [RateCDR] => 1 ) [2025-03-30 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:45:06' and `end` < '2025-03-30 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:45:18] Production.INFO: count ==363 [2025-03-30 10:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 07:45:06 - End Time 2025-03-30 10:45:06 [2025-03-30 10:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795654', 'tblTempUsageDetail_20' ) start [2025-03-30 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795654', 'tblTempUsageDetail_20' ) end [2025-03-30 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795654', 'tblTempVendorCDR_20' ) start [2025-03-30 10:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795654', 'tblTempVendorCDR_20' ) end [2025-03-30 10:45:19] Production.INFO: ProcessCDR(1,14795654,1,1,2) [2025-03-30 10:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795654', 'tblTempUsageDetail_20' ) start [2025-03-30 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795654', 'tblTempUsageDetail_20' ) end [2025-03-30 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:45:22] Production.INFO: ==19978== Releasing lock... [2025-03-30 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:45:22] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:46:05 [end_date_ymd] => 2025-03-30 10:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:46:05' and `end` < '2025-03-30 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-03-30 10:46:18] Production.INFO: count ==363 [2025-03-30 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:46:05 - End Time 2025-03-30 10:46:05 [2025-03-30 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795659', 'tblTempUsageDetail_20' ) start [2025-03-30 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795659', 'tblTempUsageDetail_20' ) end [2025-03-30 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795659', 'tblTempVendorCDR_20' ) start [2025-03-30 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795659', 'tblTempVendorCDR_20' ) end [2025-03-30 10:46:18] Production.INFO: ProcessCDR(1,14795659,1,1,2) [2025-03-30 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795659', 'tblTempUsageDetail_20' ) start [2025-03-30 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795659', 'tblTempUsageDetail_20' ) end [2025-03-30 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:46:21] Production.INFO: ==20049== Releasing lock... [2025-03-30 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-30 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:47:05 [end_date_ymd] => 2025-03-30 10:47:05 [RateCDR] => 1 ) [2025-03-30 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:47:05' and `end` < '2025-03-30 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-03-30 10:47:18] Production.INFO: count ==372 [2025-03-30 10:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:47:05 - End Time 2025-03-30 10:47:05 [2025-03-30 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795664', 'tblTempUsageDetail_20' ) start [2025-03-30 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795664', 'tblTempUsageDetail_20' ) end [2025-03-30 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795664', 'tblTempVendorCDR_20' ) start [2025-03-30 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795664', 'tblTempVendorCDR_20' ) end [2025-03-30 10:47:18] Production.INFO: ProcessCDR(1,14795664,1,1,2) [2025-03-30 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795664', 'tblTempUsageDetail_20' ) start [2025-03-30 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795664', 'tblTempUsageDetail_20' ) end [2025-03-30 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:47:21] Production.INFO: ==20123== Releasing lock... [2025-03-30 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:48:05 [end_date_ymd] => 2025-03-30 10:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:48:05' and `end` < '2025-03-30 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-03-30 10:48:18] Production.INFO: count ==371 [2025-03-30 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:48:05 - End Time 2025-03-30 10:48:05 [2025-03-30 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795669', 'tblTempUsageDetail_20' ) start [2025-03-30 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795669', 'tblTempUsageDetail_20' ) end [2025-03-30 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795669', 'tblTempVendorCDR_20' ) start [2025-03-30 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795669', 'tblTempVendorCDR_20' ) end [2025-03-30 10:48:18] Production.INFO: ProcessCDR(1,14795669,1,1,2) [2025-03-30 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795669', 'tblTempUsageDetail_20' ) start [2025-03-30 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795669', 'tblTempUsageDetail_20' ) end [2025-03-30 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:48:21] Production.INFO: ==20199== Releasing lock... [2025-03-30 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:49:06 [end_date_ymd] => 2025-03-30 10:49:06 [RateCDR] => 1 ) [2025-03-30 10:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:49:06' and `end` < '2025-03-30 10: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-03-30 10:49:18] Production.INFO: count ==390 [2025-03-30 10:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:49:06 - End Time 2025-03-30 10:49:06 [2025-03-30 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795674', 'tblTempUsageDetail_20' ) start [2025-03-30 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795674', 'tblTempUsageDetail_20' ) end [2025-03-30 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795674', 'tblTempVendorCDR_20' ) start [2025-03-30 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795674', 'tblTempVendorCDR_20' ) end [2025-03-30 10:49:18] Production.INFO: ProcessCDR(1,14795674,1,1,2) [2025-03-30 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795674', 'tblTempUsageDetail_20' ) start [2025-03-30 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795674', 'tblTempUsageDetail_20' ) end [2025-03-30 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:49:22] Production.INFO: ==20273== Releasing lock... [2025-03-30 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:50:06 [end_date_ymd] => 2025-03-30 10:50:06 [RateCDR] => 1 ) [2025-03-30 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:50:06' and `end` < '2025-03-30 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:50:18] Production.INFO: count ==407 [2025-03-30 10:50:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:50:06 - End Time 2025-03-30 10:50:06 [2025-03-30 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795680', 'tblTempUsageDetail_20' ) start [2025-03-30 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795680', 'tblTempUsageDetail_20' ) end [2025-03-30 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795680', 'tblTempVendorCDR_20' ) start [2025-03-30 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795680', 'tblTempVendorCDR_20' ) end [2025-03-30 10:50:18] Production.INFO: ProcessCDR(1,14795680,1,1,2) [2025-03-30 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795680', 'tblTempUsageDetail_20' ) start [2025-03-30 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795680', 'tblTempUsageDetail_20' ) end [2025-03-30 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:50:22] Production.INFO: ==20347== Releasing lock... [2025-03-30 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-30 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:51:05 [end_date_ymd] => 2025-03-30 10:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:51:05' and `end` < '2025-03-30 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-03-30 10:51:18] Production.INFO: count ==411 [2025-03-30 10:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:51:05 - End Time 2025-03-30 10:51:05 [2025-03-30 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795685', 'tblTempUsageDetail_20' ) start [2025-03-30 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795685', 'tblTempUsageDetail_20' ) end [2025-03-30 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795685', 'tblTempVendorCDR_20' ) start [2025-03-30 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795685', 'tblTempVendorCDR_20' ) end [2025-03-30 10:51:18] Production.INFO: ProcessCDR(1,14795685,1,1,2) [2025-03-30 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795685', 'tblTempUsageDetail_20' ) start [2025-03-30 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795685', 'tblTempUsageDetail_20' ) end [2025-03-30 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:51:21] Production.INFO: ==20422== Releasing lock... [2025-03-30 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-30 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:52:05 [end_date_ymd] => 2025-03-30 10:52:05 [RateCDR] => 1 ) [2025-03-30 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:52:05' and `end` < '2025-03-30 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:52:18] Production.INFO: count ==440 [2025-03-30 10:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:52:05 - End Time 2025-03-30 10:52:05 [2025-03-30 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795690', 'tblTempUsageDetail_20' ) start [2025-03-30 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795690', 'tblTempUsageDetail_20' ) end [2025-03-30 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795690', 'tblTempVendorCDR_20' ) start [2025-03-30 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795690', 'tblTempVendorCDR_20' ) end [2025-03-30 10:52:18] Production.INFO: ProcessCDR(1,14795690,1,1,2) [2025-03-30 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795690', 'tblTempUsageDetail_20' ) start [2025-03-30 10:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795690', 'tblTempUsageDetail_20' ) end [2025-03-30 10:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:52:22] Production.INFO: ==20494== Releasing lock... [2025-03-30 10:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:52:22] Production.INFO: 32 MB #Memory Used# [2025-03-30 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:53:05 [end_date_ymd] => 2025-03-30 10:53:05 [RateCDR] => 1 ) [2025-03-30 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:53:05' and `end` < '2025-03-30 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-03-30 10:53:18] Production.INFO: count ==444 [2025-03-30 10:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:53:05 - End Time 2025-03-30 10:53:05 [2025-03-30 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795695', 'tblTempUsageDetail_20' ) start [2025-03-30 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795695', 'tblTempUsageDetail_20' ) end [2025-03-30 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795695', 'tblTempVendorCDR_20' ) start [2025-03-30 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795695', 'tblTempVendorCDR_20' ) end [2025-03-30 10:53:18] Production.INFO: ProcessCDR(1,14795695,1,1,2) [2025-03-30 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795695', 'tblTempUsageDetail_20' ) start [2025-03-30 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795695', 'tblTempUsageDetail_20' ) end [2025-03-30 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:53:22] Production.INFO: ==20568== Releasing lock... [2025-03-30 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:53:22] Production.INFO: 32 MB #Memory Used# [2025-03-30 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:54:05 [end_date_ymd] => 2025-03-30 10:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:54:05' and `end` < '2025-03-30 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-03-30 10:54:18] Production.INFO: count ==445 [2025-03-30 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:54:05 - End Time 2025-03-30 10:54:05 [2025-03-30 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795700', 'tblTempUsageDetail_20' ) start [2025-03-30 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795700', 'tblTempUsageDetail_20' ) end [2025-03-30 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795700', 'tblTempVendorCDR_20' ) start [2025-03-30 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795700', 'tblTempVendorCDR_20' ) end [2025-03-30 10:54:18] Production.INFO: ProcessCDR(1,14795700,1,1,2) [2025-03-30 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795700', 'tblTempUsageDetail_20' ) start [2025-03-30 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795700', 'tblTempUsageDetail_20' ) end [2025-03-30 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:54:21] Production.INFO: ==20651== Releasing lock... [2025-03-30 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:55:05 [end_date_ymd] => 2025-03-30 10:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:55:05' and `end` < '2025-03-30 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-03-30 10:55:18] Production.INFO: count ==445 [2025-03-30 10:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:55:05 - End Time 2025-03-30 10:55:05 [2025-03-30 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795705', 'tblTempUsageDetail_20' ) start [2025-03-30 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795705', 'tblTempUsageDetail_20' ) end [2025-03-30 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795705', 'tblTempVendorCDR_20' ) start [2025-03-30 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795705', 'tblTempVendorCDR_20' ) end [2025-03-30 10:55:18] Production.INFO: ProcessCDR(1,14795705,1,1,2) [2025-03-30 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795705', 'tblTempUsageDetail_20' ) start [2025-03-30 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795705', 'tblTempUsageDetail_20' ) end [2025-03-30 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:55:21] Production.INFO: ==20729== Releasing lock... [2025-03-30 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:56:05 [end_date_ymd] => 2025-03-30 10:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:56:05' and `end` < '2025-03-30 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-03-30 10:56:18] Production.INFO: count ==446 [2025-03-30 10:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:56:05 - End Time 2025-03-30 10:56:05 [2025-03-30 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795710', 'tblTempUsageDetail_20' ) start [2025-03-30 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795710', 'tblTempUsageDetail_20' ) end [2025-03-30 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795710', 'tblTempVendorCDR_20' ) start [2025-03-30 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795710', 'tblTempVendorCDR_20' ) end [2025-03-30 10:56:18] Production.INFO: ProcessCDR(1,14795710,1,1,2) [2025-03-30 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795710', 'tblTempUsageDetail_20' ) start [2025-03-30 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795710', 'tblTempUsageDetail_20' ) end [2025-03-30 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:56:22] Production.INFO: ==20807== Releasing lock... [2025-03-30 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:57:05 [end_date_ymd] => 2025-03-30 10:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 07:57:05' and `end` < '2025-03-30 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-03-30 10:57:18] Production.INFO: count ==446 [2025-03-30 10:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:57:05 - End Time 2025-03-30 10:57:05 [2025-03-30 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795715', 'tblTempUsageDetail_20' ) start [2025-03-30 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795715', 'tblTempUsageDetail_20' ) end [2025-03-30 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795715', 'tblTempVendorCDR_20' ) start [2025-03-30 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795715', 'tblTempVendorCDR_20' ) end [2025-03-30 10:57:18] Production.INFO: ProcessCDR(1,14795715,1,1,2) [2025-03-30 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795715', 'tblTempUsageDetail_20' ) start [2025-03-30 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795715', 'tblTempUsageDetail_20' ) end [2025-03-30 10:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:57:21] Production.INFO: ==20888== Releasing lock... [2025-03-30 10:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:58:06 [end_date_ymd] => 2025-03-30 10:58:06 [RateCDR] => 1 ) [2025-03-30 10: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-03-30 07:58:06' and `end` < '2025-03-30 10: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-03-30 10:58:19] Production.INFO: count ==454 [2025-03-30 10:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 07:58:06 - End Time 2025-03-30 10:58:06 [2025-03-30 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795720', 'tblTempUsageDetail_20' ) start [2025-03-30 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795720', 'tblTempUsageDetail_20' ) end [2025-03-30 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795720', 'tblTempVendorCDR_20' ) start [2025-03-30 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795720', 'tblTempVendorCDR_20' ) end [2025-03-30 10:58:19] Production.INFO: ProcessCDR(1,14795720,1,1,2) [2025-03-30 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795720', 'tblTempUsageDetail_20' ) start [2025-03-30 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795720', 'tblTempUsageDetail_20' ) end [2025-03-30 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:58:22] Production.INFO: ==21008== Releasing lock... [2025-03-30 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:58:22] Production.INFO: 32 MB #Memory Used# [2025-03-30 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 07:59:06 [end_date_ymd] => 2025-03-30 10:59:06 [RateCDR] => 1 ) [2025-03-30 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 07:59:06' and `end` < '2025-03-30 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 10:59:18] Production.INFO: count ==454 [2025-03-30 10:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 07:59:06 - End Time 2025-03-30 10:59:06 [2025-03-30 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795725', 'tblTempUsageDetail_20' ) start [2025-03-30 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795725', 'tblTempUsageDetail_20' ) end [2025-03-30 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795725', 'tblTempVendorCDR_20' ) start [2025-03-30 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795725', 'tblTempVendorCDR_20' ) end [2025-03-30 10:59:18] Production.INFO: ProcessCDR(1,14795725,1,1,2) [2025-03-30 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795725', 'tblTempUsageDetail_20' ) start [2025-03-30 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795725', 'tblTempUsageDetail_20' ) end [2025-03-30 10:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 10:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 10:59:22] Production.INFO: ==21084== Releasing lock... [2025-03-30 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 10:59:22] Production.INFO: 32 MB #Memory Used# [2025-03-30 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:00:07 [end_date_ymd] => 2025-03-30 11:00:07 [RateCDR] => 1 ) [2025-03-30 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:00:07' and `end` < '2025-03-30 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:00:19] Production.INFO: count ==477 [2025-03-30 11:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 08:00:07 - End Time 2025-03-30 11:00:07 [2025-03-30 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795731', 'tblTempUsageDetail_20' ) start [2025-03-30 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795731', 'tblTempUsageDetail_20' ) end [2025-03-30 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795731', 'tblTempVendorCDR_20' ) start [2025-03-30 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795731', 'tblTempVendorCDR_20' ) end [2025-03-30 11:00:20] Production.INFO: ProcessCDR(1,14795731,1,1,2) [2025-03-30 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795731', 'tblTempUsageDetail_20' ) start [2025-03-30 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795731', 'tblTempUsageDetail_20' ) end [2025-03-30 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:00:23] Production.INFO: ==21167== Releasing lock... [2025-03-30 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:00:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:01:05 [end_date_ymd] => 2025-03-30 11:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:01:05' and `end` < '2025-03-30 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-03-30 11:01:18] Production.INFO: count ==490 [2025-03-30 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:01:05 - End Time 2025-03-30 11:01:05 [2025-03-30 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795736', 'tblTempUsageDetail_20' ) start [2025-03-30 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795736', 'tblTempUsageDetail_20' ) end [2025-03-30 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795736', 'tblTempVendorCDR_20' ) start [2025-03-30 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795736', 'tblTempVendorCDR_20' ) end [2025-03-30 11:01:18] Production.INFO: ProcessCDR(1,14795736,1,1,2) [2025-03-30 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795736', 'tblTempUsageDetail_20' ) start [2025-03-30 11:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795736', 'tblTempUsageDetail_20' ) end [2025-03-30 11:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:01:21] Production.INFO: ==21262== Releasing lock... [2025-03-30 11:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:02:06 [end_date_ymd] => 2025-03-30 11:02:06 [RateCDR] => 1 ) [2025-03-30 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:02:06' and `end` < '2025-03-30 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:02:18] Production.INFO: count ==513 [2025-03-30 11:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:02:06 - End Time 2025-03-30 11:02:06 [2025-03-30 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795741', 'tblTempUsageDetail_20' ) start [2025-03-30 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795741', 'tblTempUsageDetail_20' ) end [2025-03-30 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795741', 'tblTempVendorCDR_20' ) start [2025-03-30 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795741', 'tblTempVendorCDR_20' ) end [2025-03-30 11:02:19] Production.INFO: ProcessCDR(1,14795741,1,1,2) [2025-03-30 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795741', 'tblTempUsageDetail_20' ) start [2025-03-30 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795741', 'tblTempUsageDetail_20' ) end [2025-03-30 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:02:22] Production.INFO: ==21419== Releasing lock... [2025-03-30 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-30 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:03:05 [end_date_ymd] => 2025-03-30 11:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:03:05' and `end` < '2025-03-30 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-03-30 11:03:18] Production.INFO: count ==514 [2025-03-30 11:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:03:05 - End Time 2025-03-30 11:03:05 [2025-03-30 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795746', 'tblTempUsageDetail_20' ) start [2025-03-30 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795746', 'tblTempUsageDetail_20' ) end [2025-03-30 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795746', 'tblTempVendorCDR_20' ) start [2025-03-30 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795746', 'tblTempVendorCDR_20' ) end [2025-03-30 11:03:18] Production.INFO: ProcessCDR(1,14795746,1,1,2) [2025-03-30 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795746', 'tblTempUsageDetail_20' ) start [2025-03-30 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795746', 'tblTempUsageDetail_20' ) end [2025-03-30 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:03:23] Production.INFO: ==21502== Releasing lock... [2025-03-30 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:03:23] Production.INFO: 32 MB #Memory Used# [2025-03-30 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:04:06 [end_date_ymd] => 2025-03-30 11:04:06 [RateCDR] => 1 ) [2025-03-30 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:04:06' and `end` < '2025-03-30 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:04:19] Production.INFO: count ==509 [2025-03-30 11:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:04:06 - End Time 2025-03-30 11:04:06 [2025-03-30 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795751', 'tblTempUsageDetail_20' ) start [2025-03-30 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795751', 'tblTempUsageDetail_20' ) end [2025-03-30 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795751', 'tblTempVendorCDR_20' ) start [2025-03-30 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795751', 'tblTempVendorCDR_20' ) end [2025-03-30 11:04:19] Production.INFO: ProcessCDR(1,14795751,1,1,2) [2025-03-30 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795751', 'tblTempUsageDetail_20' ) start [2025-03-30 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795751', 'tblTempUsageDetail_20' ) end [2025-03-30 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:04:23] Production.INFO: ==21593== Releasing lock... [2025-03-30 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:04:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-30 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:05:05 [end_date_ymd] => 2025-03-30 11:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:05:05' and `end` < '2025-03-30 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-03-30 11:05:18] Production.INFO: count ==560 [2025-03-30 11:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:05:05 - End Time 2025-03-30 11:05:05 [2025-03-30 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795756', 'tblTempUsageDetail_20' ) start [2025-03-30 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795756', 'tblTempUsageDetail_20' ) end [2025-03-30 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795756', 'tblTempVendorCDR_20' ) start [2025-03-30 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795756', 'tblTempVendorCDR_20' ) end [2025-03-30 11:05:18] Production.INFO: ProcessCDR(1,14795756,1,1,2) [2025-03-30 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795756', 'tblTempUsageDetail_20' ) start [2025-03-30 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795756', 'tblTempUsageDetail_20' ) end [2025-03-30 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:05:22] Production.INFO: ==21750== Releasing lock... [2025-03-30 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:06:05 [end_date_ymd] => 2025-03-30 11:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:06:05' and `end` < '2025-03-30 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-03-30 11:06:18] Production.INFO: count ==560 [2025-03-30 11:06:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:06:05 - End Time 2025-03-30 11:06:05 [2025-03-30 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795761', 'tblTempUsageDetail_20' ) start [2025-03-30 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795761', 'tblTempUsageDetail_20' ) end [2025-03-30 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795761', 'tblTempVendorCDR_20' ) start [2025-03-30 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795761', 'tblTempVendorCDR_20' ) end [2025-03-30 11:06:18] Production.INFO: ProcessCDR(1,14795761,1,1,2) [2025-03-30 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795761', 'tblTempUsageDetail_20' ) start [2025-03-30 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795761', 'tblTempUsageDetail_20' ) end [2025-03-30 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:06:21] Production.INFO: ==21828== Releasing lock... [2025-03-30 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:07:05 [end_date_ymd] => 2025-03-30 11:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:07:05' and `end` < '2025-03-30 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-03-30 11:07:17] Production.INFO: count ==566 [2025-03-30 11:07:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:07:05 - End Time 2025-03-30 11:07:05 [2025-03-30 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795766', 'tblTempUsageDetail_20' ) start [2025-03-30 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795766', 'tblTempUsageDetail_20' ) end [2025-03-30 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795766', 'tblTempVendorCDR_20' ) start [2025-03-30 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795766', 'tblTempVendorCDR_20' ) end [2025-03-30 11:07:18] Production.INFO: ProcessCDR(1,14795766,1,1,2) [2025-03-30 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795766', 'tblTempUsageDetail_20' ) start [2025-03-30 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795766', 'tblTempUsageDetail_20' ) end [2025-03-30 11:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:07:22] Production.INFO: ==21912== Releasing lock... [2025-03-30 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:07:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:08:05 [end_date_ymd] => 2025-03-30 11:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:08:05' and `end` < '2025-03-30 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-03-30 11:08:18] Production.INFO: count ==562 [2025-03-30 11:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:08:05 - End Time 2025-03-30 11:08:05 [2025-03-30 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795771', 'tblTempUsageDetail_20' ) start [2025-03-30 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795771', 'tblTempUsageDetail_20' ) end [2025-03-30 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795771', 'tblTempVendorCDR_20' ) start [2025-03-30 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795771', 'tblTempVendorCDR_20' ) end [2025-03-30 11:08:18] Production.INFO: ProcessCDR(1,14795771,1,1,2) [2025-03-30 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795771', 'tblTempUsageDetail_20' ) start [2025-03-30 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795771', 'tblTempUsageDetail_20' ) end [2025-03-30 11:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:08:21] Production.INFO: ==22038== Releasing lock... [2025-03-30 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:09:05 [end_date_ymd] => 2025-03-30 11:09:05 [RateCDR] => 1 ) [2025-03-30 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:09:05' and `end` < '2025-03-30 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:09:17] Production.INFO: count ==558 [2025-03-30 11:09:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:09:05 - End Time 2025-03-30 11:09:05 [2025-03-30 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795776', 'tblTempUsageDetail_20' ) start [2025-03-30 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795776', 'tblTempUsageDetail_20' ) end [2025-03-30 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795776', 'tblTempVendorCDR_20' ) start [2025-03-30 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795776', 'tblTempVendorCDR_20' ) end [2025-03-30 11:09:17] Production.INFO: ProcessCDR(1,14795776,1,1,2) [2025-03-30 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795776', 'tblTempUsageDetail_20' ) start [2025-03-30 11:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795776', 'tblTempUsageDetail_20' ) end [2025-03-30 11:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:09:21] Production.INFO: ==22160== Releasing lock... [2025-03-30 11:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:10:06 [end_date_ymd] => 2025-03-30 11:10:06 [RateCDR] => 1 ) [2025-03-30 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:10:06' and `end` < '2025-03-30 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:10:19] Production.INFO: count ==579 [2025-03-30 11:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:10:06 - End Time 2025-03-30 11:10:06 [2025-03-30 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795782', 'tblTempUsageDetail_20' ) start [2025-03-30 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795782', 'tblTempUsageDetail_20' ) end [2025-03-30 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795782', 'tblTempVendorCDR_20' ) start [2025-03-30 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795782', 'tblTempVendorCDR_20' ) end [2025-03-30 11:10:19] Production.INFO: ProcessCDR(1,14795782,1,1,2) [2025-03-30 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795782', 'tblTempUsageDetail_20' ) start [2025-03-30 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795782', 'tblTempUsageDetail_20' ) end [2025-03-30 11:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:10:23] Production.INFO: ==22252== Releasing lock... [2025-03-30 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:10:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:11:05 [end_date_ymd] => 2025-03-30 11:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:11:05' and `end` < '2025-03-30 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-03-30 11:11:17] Production.INFO: count ==592 [2025-03-30 11:11:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:11:05 - End Time 2025-03-30 11:11:05 [2025-03-30 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795787', 'tblTempUsageDetail_20' ) start [2025-03-30 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795787', 'tblTempUsageDetail_20' ) end [2025-03-30 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795787', 'tblTempVendorCDR_20' ) start [2025-03-30 11:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795787', 'tblTempVendorCDR_20' ) end [2025-03-30 11:11:18] Production.INFO: ProcessCDR(1,14795787,1,1,2) [2025-03-30 11:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795787', 'tblTempUsageDetail_20' ) start [2025-03-30 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795787', 'tblTempUsageDetail_20' ) end [2025-03-30 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:11:23] Production.INFO: ==22336== Releasing lock... [2025-03-30 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:12:05 [end_date_ymd] => 2025-03-30 11:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:12:05' and `end` < '2025-03-30 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-03-30 11:12:18] Production.INFO: count ==593 [2025-03-30 11:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:12:05 - End Time 2025-03-30 11:12:05 [2025-03-30 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795792', 'tblTempUsageDetail_20' ) start [2025-03-30 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795792', 'tblTempUsageDetail_20' ) end [2025-03-30 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795792', 'tblTempVendorCDR_20' ) start [2025-03-30 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795792', 'tblTempVendorCDR_20' ) end [2025-03-30 11:12:18] Production.INFO: ProcessCDR(1,14795792,1,1,2) [2025-03-30 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795792', 'tblTempUsageDetail_20' ) start [2025-03-30 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795792', 'tblTempUsageDetail_20' ) end [2025-03-30 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:12:23] Production.INFO: ==22515== Releasing lock... [2025-03-30 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:13:06 [end_date_ymd] => 2025-03-30 11:13:06 [RateCDR] => 1 ) [2025-03-30 11:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:13:06' and `end` < '2025-03-30 11:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:13:18] Production.INFO: count ==595 [2025-03-30 11:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:13:06 - End Time 2025-03-30 11:13:06 [2025-03-30 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795797', 'tblTempUsageDetail_20' ) start [2025-03-30 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795797', 'tblTempUsageDetail_20' ) end [2025-03-30 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795797', 'tblTempVendorCDR_20' ) start [2025-03-30 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795797', 'tblTempVendorCDR_20' ) end [2025-03-30 11:13:18] Production.INFO: ProcessCDR(1,14795797,1,1,2) [2025-03-30 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795797', 'tblTempUsageDetail_20' ) start [2025-03-30 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795797', 'tblTempUsageDetail_20' ) end [2025-03-30 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:13:23] Production.INFO: ==22634== Releasing lock... [2025-03-30 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:13:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:14:05 [end_date_ymd] => 2025-03-30 11:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:14:05' and `end` < '2025-03-30 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-03-30 11:14:17] Production.INFO: count ==596 [2025-03-30 11:14:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:14:05 - End Time 2025-03-30 11:14:05 [2025-03-30 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795802', 'tblTempUsageDetail_20' ) start [2025-03-30 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795802', 'tblTempUsageDetail_20' ) end [2025-03-30 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795802', 'tblTempVendorCDR_20' ) start [2025-03-30 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795802', 'tblTempVendorCDR_20' ) end [2025-03-30 11:14:17] Production.INFO: ProcessCDR(1,14795802,1,1,2) [2025-03-30 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795802', 'tblTempUsageDetail_20' ) start [2025-03-30 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795802', 'tblTempUsageDetail_20' ) end [2025-03-30 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:14:22] Production.INFO: ==22714== Releasing lock... [2025-03-30 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:15:05 [end_date_ymd] => 2025-03-30 11:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:15:05' and `end` < '2025-03-30 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-03-30 11:15:18] Production.INFO: count ==597 [2025-03-30 11:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:15:05 - End Time 2025-03-30 11:15:05 [2025-03-30 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795807', 'tblTempUsageDetail_20' ) start [2025-03-30 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795807', 'tblTempUsageDetail_20' ) end [2025-03-30 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795807', 'tblTempVendorCDR_20' ) start [2025-03-30 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795807', 'tblTempVendorCDR_20' ) end [2025-03-30 11:15:18] Production.INFO: ProcessCDR(1,14795807,1,1,2) [2025-03-30 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795807', 'tblTempUsageDetail_20' ) start [2025-03-30 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795807', 'tblTempUsageDetail_20' ) end [2025-03-30 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:15:23] Production.INFO: ==22873== Releasing lock... [2025-03-30 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:15:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-30 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:16:05 [end_date_ymd] => 2025-03-30 11:16:05 [RateCDR] => 1 ) [2025-03-30 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:16:05' and `end` < '2025-03-30 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:16:18] Production.INFO: count ==602 [2025-03-30 11:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:16:05 - End Time 2025-03-30 11:16:05 [2025-03-30 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795812', 'tblTempUsageDetail_20' ) start [2025-03-30 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795812', 'tblTempUsageDetail_20' ) end [2025-03-30 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795812', 'tblTempVendorCDR_20' ) start [2025-03-30 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795812', 'tblTempVendorCDR_20' ) end [2025-03-30 11:16:18] Production.INFO: ProcessCDR(1,14795812,1,1,2) [2025-03-30 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795812', 'tblTempUsageDetail_20' ) start [2025-03-30 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795812', 'tblTempUsageDetail_20' ) end [2025-03-30 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:16:22] Production.INFO: ==22956== Releasing lock... [2025-03-30 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:17:06 [end_date_ymd] => 2025-03-30 11:17:06 [RateCDR] => 1 ) [2025-03-30 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:17:06' and `end` < '2025-03-30 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:17:18] Production.INFO: count ==604 [2025-03-30 11:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:17:06 - End Time 2025-03-30 11:17:06 [2025-03-30 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795817', 'tblTempUsageDetail_20' ) start [2025-03-30 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795817', 'tblTempUsageDetail_20' ) end [2025-03-30 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795817', 'tblTempVendorCDR_20' ) start [2025-03-30 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795817', 'tblTempVendorCDR_20' ) end [2025-03-30 11:17:18] Production.INFO: ProcessCDR(1,14795817,1,1,2) [2025-03-30 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795817', 'tblTempUsageDetail_20' ) start [2025-03-30 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795817', 'tblTempUsageDetail_20' ) end [2025-03-30 11:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:17:23] Production.INFO: ==23035== Releasing lock... [2025-03-30 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:17:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:18:05 [end_date_ymd] => 2025-03-30 11:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:18:05' and `end` < '2025-03-30 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-03-30 11:18:18] Production.INFO: count ==604 [2025-03-30 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:18:05 - End Time 2025-03-30 11:18:05 [2025-03-30 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795822', 'tblTempUsageDetail_20' ) start [2025-03-30 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795822', 'tblTempUsageDetail_20' ) end [2025-03-30 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795822', 'tblTempVendorCDR_20' ) start [2025-03-30 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795822', 'tblTempVendorCDR_20' ) end [2025-03-30 11:18:18] Production.INFO: ProcessCDR(1,14795822,1,1,2) [2025-03-30 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795822', 'tblTempUsageDetail_20' ) start [2025-03-30 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795822', 'tblTempUsageDetail_20' ) end [2025-03-30 11:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:18:21] Production.INFO: ==23121== Releasing lock... [2025-03-30 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:18:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:19:05 [end_date_ymd] => 2025-03-30 11:19:05 [RateCDR] => 1 ) [2025-03-30 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:19:05' and `end` < '2025-03-30 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:19:18] Production.INFO: count ==610 [2025-03-30 11:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:19:05 - End Time 2025-03-30 11:19:05 [2025-03-30 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795827', 'tblTempUsageDetail_20' ) start [2025-03-30 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795827', 'tblTempUsageDetail_20' ) end [2025-03-30 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795827', 'tblTempVendorCDR_20' ) start [2025-03-30 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795827', 'tblTempVendorCDR_20' ) end [2025-03-30 11:19:18] Production.INFO: ProcessCDR(1,14795827,1,1,2) [2025-03-30 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795827', 'tblTempUsageDetail_20' ) start [2025-03-30 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795827', 'tblTempUsageDetail_20' ) end [2025-03-30 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:19:23] Production.INFO: ==23205== Releasing lock... [2025-03-30 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:19:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:20:05 [end_date_ymd] => 2025-03-30 11:20:05 [RateCDR] => 1 ) [2025-03-30 11: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-03-30 08:20:05' and `end` < '2025-03-30 11: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-03-30 11:20:18] Production.INFO: count ==622 [2025-03-30 11:20:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:20:05 - End Time 2025-03-30 11:20:05 [2025-03-30 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795833', 'tblTempUsageDetail_20' ) start [2025-03-30 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795833', 'tblTempUsageDetail_20' ) end [2025-03-30 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795833', 'tblTempVendorCDR_20' ) start [2025-03-30 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795833', 'tblTempVendorCDR_20' ) end [2025-03-30 11:20:18] Production.INFO: ProcessCDR(1,14795833,1,1,2) [2025-03-30 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795833', 'tblTempUsageDetail_20' ) start [2025-03-30 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795833', 'tblTempUsageDetail_20' ) end [2025-03-30 11:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:20:22] Production.INFO: ==23289== Releasing lock... [2025-03-30 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:21:06 [end_date_ymd] => 2025-03-30 11:21:06 [RateCDR] => 1 ) [2025-03-30 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:21:06' and `end` < '2025-03-30 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:21:18] Production.INFO: count ==634 [2025-03-30 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:21:06 - End Time 2025-03-30 11:21:06 [2025-03-30 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795838', 'tblTempUsageDetail_20' ) start [2025-03-30 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795838', 'tblTempUsageDetail_20' ) end [2025-03-30 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795838', 'tblTempVendorCDR_20' ) start [2025-03-30 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795838', 'tblTempVendorCDR_20' ) end [2025-03-30 11:21:18] Production.INFO: ProcessCDR(1,14795838,1,1,2) [2025-03-30 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795838', 'tblTempUsageDetail_20' ) start [2025-03-30 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795838', 'tblTempUsageDetail_20' ) end [2025-03-30 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:21:22] Production.INFO: ==23375== Releasing lock... [2025-03-30 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:21:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:22:05 [end_date_ymd] => 2025-03-30 11:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:22:05' and `end` < '2025-03-30 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-03-30 11:22:18] Production.INFO: count ==634 [2025-03-30 11:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:22:05 - End Time 2025-03-30 11:22:05 [2025-03-30 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795843', 'tblTempUsageDetail_20' ) start [2025-03-30 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795843', 'tblTempUsageDetail_20' ) end [2025-03-30 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795843', 'tblTempVendorCDR_20' ) start [2025-03-30 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795843', 'tblTempVendorCDR_20' ) end [2025-03-30 11:22:18] Production.INFO: ProcessCDR(1,14795843,1,1,2) [2025-03-30 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795843', 'tblTempUsageDetail_20' ) start [2025-03-30 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795843', 'tblTempUsageDetail_20' ) end [2025-03-30 11:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:22:21] Production.INFO: ==23453== Releasing lock... [2025-03-30 11:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:22:21] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:23:05 [end_date_ymd] => 2025-03-30 11:23:05 [RateCDR] => 1 ) [2025-03-30 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:23:05' and `end` < '2025-03-30 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:23:18] Production.INFO: count ==635 [2025-03-30 11:23:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:23:05 - End Time 2025-03-30 11:23:05 [2025-03-30 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795848', 'tblTempUsageDetail_20' ) start [2025-03-30 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795848', 'tblTempUsageDetail_20' ) end [2025-03-30 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795848', 'tblTempVendorCDR_20' ) start [2025-03-30 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795848', 'tblTempVendorCDR_20' ) end [2025-03-30 11:23:18] Production.INFO: ProcessCDR(1,14795848,1,1,2) [2025-03-30 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795848', 'tblTempUsageDetail_20' ) start [2025-03-30 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795848', 'tblTempUsageDetail_20' ) end [2025-03-30 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:23:23] Production.INFO: ==23540== Releasing lock... [2025-03-30 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:23:23] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:24:06 [end_date_ymd] => 2025-03-30 11:24:06 [RateCDR] => 1 ) [2025-03-30 11: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-03-30 08:24:06' and `end` < '2025-03-30 11: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-03-30 11:24:18] Production.INFO: count ==636 [2025-03-30 11:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:24:06 - End Time 2025-03-30 11:24:06 [2025-03-30 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795853', 'tblTempUsageDetail_20' ) start [2025-03-30 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795853', 'tblTempUsageDetail_20' ) end [2025-03-30 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795853', 'tblTempVendorCDR_20' ) start [2025-03-30 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795853', 'tblTempVendorCDR_20' ) end [2025-03-30 11:24:19] Production.INFO: ProcessCDR(1,14795853,1,1,2) [2025-03-30 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795853', 'tblTempUsageDetail_20' ) start [2025-03-30 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795853', 'tblTempUsageDetail_20' ) end [2025-03-30 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:24:23] Production.INFO: ==23627== Releasing lock... [2025-03-30 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:24:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:25:05 [end_date_ymd] => 2025-03-30 11:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:25:05' and `end` < '2025-03-30 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-03-30 11:25:18] Production.INFO: count ==636 [2025-03-30 11:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:25:05 - End Time 2025-03-30 11:25:05 [2025-03-30 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795858', 'tblTempUsageDetail_20' ) start [2025-03-30 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795858', 'tblTempUsageDetail_20' ) end [2025-03-30 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795858', 'tblTempVendorCDR_20' ) start [2025-03-30 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795858', 'tblTempVendorCDR_20' ) end [2025-03-30 11:25:18] Production.INFO: ProcessCDR(1,14795858,1,1,2) [2025-03-30 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795858', 'tblTempUsageDetail_20' ) start [2025-03-30 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795858', 'tblTempUsageDetail_20' ) end [2025-03-30 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:25:21] Production.INFO: ==23714== Releasing lock... [2025-03-30 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:26:05 [end_date_ymd] => 2025-03-30 11:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:26:05' and `end` < '2025-03-30 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-03-30 11:26:18] Production.INFO: count ==637 [2025-03-30 11:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:26:05 - End Time 2025-03-30 11:26:05 [2025-03-30 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795863', 'tblTempUsageDetail_20' ) start [2025-03-30 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795863', 'tblTempUsageDetail_20' ) end [2025-03-30 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795863', 'tblTempVendorCDR_20' ) start [2025-03-30 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795863', 'tblTempVendorCDR_20' ) end [2025-03-30 11:26:18] Production.INFO: ProcessCDR(1,14795863,1,1,2) [2025-03-30 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795863', 'tblTempUsageDetail_20' ) start [2025-03-30 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795863', 'tblTempUsageDetail_20' ) end [2025-03-30 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:26:23] Production.INFO: ==23804== Releasing lock... [2025-03-30 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:26:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:27:05 [end_date_ymd] => 2025-03-30 11:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:27:05' and `end` < '2025-03-30 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-03-30 11:27:17] Production.INFO: count ==637 [2025-03-30 11:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:27:05 - End Time 2025-03-30 11:27:05 [2025-03-30 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795868', 'tblTempUsageDetail_20' ) start [2025-03-30 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795868', 'tblTempUsageDetail_20' ) end [2025-03-30 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795868', 'tblTempVendorCDR_20' ) start [2025-03-30 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795868', 'tblTempVendorCDR_20' ) end [2025-03-30 11:27:18] Production.INFO: ProcessCDR(1,14795868,1,1,2) [2025-03-30 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795868', 'tblTempUsageDetail_20' ) start [2025-03-30 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795868', 'tblTempUsageDetail_20' ) end [2025-03-30 11:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:27:21] Production.INFO: ==23909== Releasing lock... [2025-03-30 11:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:28:05 [end_date_ymd] => 2025-03-30 11:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:28:05' and `end` < '2025-03-30 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-03-30 11:28:18] Production.INFO: count ==633 [2025-03-30 11:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:28:05 - End Time 2025-03-30 11:28:05 [2025-03-30 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795873', 'tblTempUsageDetail_20' ) start [2025-03-30 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795873', 'tblTempUsageDetail_20' ) end [2025-03-30 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795873', 'tblTempVendorCDR_20' ) start [2025-03-30 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795873', 'tblTempVendorCDR_20' ) end [2025-03-30 11:28:18] Production.INFO: ProcessCDR(1,14795873,1,1,2) [2025-03-30 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795873', 'tblTempUsageDetail_20' ) start [2025-03-30 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795873', 'tblTempUsageDetail_20' ) end [2025-03-30 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:28:22] Production.INFO: ==24002== Releasing lock... [2025-03-30 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:28:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:29:04 [end_date_ymd] => 2025-03-30 11:29:04 [RateCDR] => 1 ) [2025-03-30 11: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-03-30 08:29:04' and `end` < '2025-03-30 11: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-03-30 11:29:17] Production.INFO: count ==634 [2025-03-30 11:29:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:29:04 - End Time 2025-03-30 11:29:04 [2025-03-30 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795878', 'tblTempUsageDetail_20' ) start [2025-03-30 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795878', 'tblTempUsageDetail_20' ) end [2025-03-30 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795878', 'tblTempVendorCDR_20' ) start [2025-03-30 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795878', 'tblTempVendorCDR_20' ) end [2025-03-30 11:29:17] Production.INFO: ProcessCDR(1,14795878,1,1,2) [2025-03-30 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795878', 'tblTempUsageDetail_20' ) start [2025-03-30 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795878', 'tblTempUsageDetail_20' ) end [2025-03-30 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:29:22] Production.INFO: ==24138== Releasing lock... [2025-03-30 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:29:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:30:06 [end_date_ymd] => 2025-03-30 11:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:30:06' and `end` < '2025-03-30 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-03-30 11:30:18] Production.INFO: count ==631 [2025-03-30 11:30:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:30:06 - End Time 2025-03-30 11:30:06 [2025-03-30 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795881', 'tblTempUsageDetail_20' ) start [2025-03-30 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795881', 'tblTempUsageDetail_20' ) end [2025-03-30 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795881', 'tblTempVendorCDR_20' ) start [2025-03-30 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795881', 'tblTempVendorCDR_20' ) end [2025-03-30 11:30:18] Production.INFO: ProcessCDR(1,14795881,1,1,2) [2025-03-30 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795881', 'tblTempUsageDetail_20' ) start [2025-03-30 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795881', 'tblTempUsageDetail_20' ) end [2025-03-30 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:30:22] Production.INFO: ==24227== Releasing lock... [2025-03-30 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:30:22] Production.INFO: 33 MB #Memory Used# [2025-03-30 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:31:04 [end_date_ymd] => 2025-03-30 11:31:04 [RateCDR] => 1 ) [2025-03-30 11: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-03-30 08:31:04' and `end` < '2025-03-30 11: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-03-30 11:31:17] Production.INFO: count ==666 [2025-03-30 11:31:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:31:04 - End Time 2025-03-30 11:31:04 [2025-03-30 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795889', 'tblTempUsageDetail_20' ) start [2025-03-30 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795889', 'tblTempUsageDetail_20' ) end [2025-03-30 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795889', 'tblTempVendorCDR_20' ) start [2025-03-30 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795889', 'tblTempVendorCDR_20' ) end [2025-03-30 11:31:17] Production.INFO: ProcessCDR(1,14795889,1,1,2) [2025-03-30 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795889', 'tblTempUsageDetail_20' ) start [2025-03-30 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795889', 'tblTempUsageDetail_20' ) end [2025-03-30 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:31:21] Production.INFO: ==24327== Releasing lock... [2025-03-30 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:31:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:32:06 [end_date_ymd] => 2025-03-30 11:32:06 [RateCDR] => 1 ) [2025-03-30 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:32:06' and `end` < '2025-03-30 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:32:18] Production.INFO: count ==675 [2025-03-30 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:32:06 - End Time 2025-03-30 11:32:06 [2025-03-30 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795894', 'tblTempUsageDetail_20' ) start [2025-03-30 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795894', 'tblTempUsageDetail_20' ) end [2025-03-30 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795894', 'tblTempVendorCDR_20' ) start [2025-03-30 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795894', 'tblTempVendorCDR_20' ) end [2025-03-30 11:32:18] Production.INFO: ProcessCDR(1,14795894,1,1,2) [2025-03-30 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795894', 'tblTempUsageDetail_20' ) start [2025-03-30 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795894', 'tblTempUsageDetail_20' ) end [2025-03-30 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:32:23] Production.INFO: ==24419== Releasing lock... [2025-03-30 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:32:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:33:06 [end_date_ymd] => 2025-03-30 11:33:06 [RateCDR] => 1 ) [2025-03-30 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:33:06' and `end` < '2025-03-30 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:33:18] Production.INFO: count ==676 [2025-03-30 11:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:33:06 - End Time 2025-03-30 11:33:06 [2025-03-30 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795899', 'tblTempUsageDetail_20' ) start [2025-03-30 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795899', 'tblTempUsageDetail_20' ) end [2025-03-30 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795899', 'tblTempVendorCDR_20' ) start [2025-03-30 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795899', 'tblTempVendorCDR_20' ) end [2025-03-30 11:33:19] Production.INFO: ProcessCDR(1,14795899,1,1,2) [2025-03-30 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795899', 'tblTempUsageDetail_20' ) start [2025-03-30 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795899', 'tblTempUsageDetail_20' ) end [2025-03-30 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:33:22] Production.INFO: ==24513== Releasing lock... [2025-03-30 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:34:05 [end_date_ymd] => 2025-03-30 11:34:05 [RateCDR] => 1 ) [2025-03-30 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:34:05' and `end` < '2025-03-30 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:34:18] Production.INFO: count ==677 [2025-03-30 11:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:34:05 - End Time 2025-03-30 11:34:05 [2025-03-30 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795904', 'tblTempUsageDetail_20' ) start [2025-03-30 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795904', 'tblTempUsageDetail_20' ) end [2025-03-30 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795904', 'tblTempVendorCDR_20' ) start [2025-03-30 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795904', 'tblTempVendorCDR_20' ) end [2025-03-30 11:34:18] Production.INFO: ProcessCDR(1,14795904,1,1,2) [2025-03-30 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795904', 'tblTempUsageDetail_20' ) start [2025-03-30 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795904', 'tblTempUsageDetail_20' ) end [2025-03-30 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:34:23] Production.INFO: ==24610== Releasing lock... [2025-03-30 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:35:05 [end_date_ymd] => 2025-03-30 11:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:35:05' and `end` < '2025-03-30 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-03-30 11:35:18] Production.INFO: count ==679 [2025-03-30 11:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:35:05 - End Time 2025-03-30 11:35:05 [2025-03-30 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795909', 'tblTempUsageDetail_20' ) start [2025-03-30 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795909', 'tblTempUsageDetail_20' ) end [2025-03-30 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795909', 'tblTempVendorCDR_20' ) start [2025-03-30 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795909', 'tblTempVendorCDR_20' ) end [2025-03-30 11:35:18] Production.INFO: ProcessCDR(1,14795909,1,1,2) [2025-03-30 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795909', 'tblTempUsageDetail_20' ) start [2025-03-30 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795909', 'tblTempUsageDetail_20' ) end [2025-03-30 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:35:23] Production.INFO: ==24705== Releasing lock... [2025-03-30 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:35:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:36:05 [end_date_ymd] => 2025-03-30 11:36:05 [RateCDR] => 1 ) [2025-03-30 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:36:05' and `end` < '2025-03-30 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:36:18] Production.INFO: count ==686 [2025-03-30 11:36:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:36:05 - End Time 2025-03-30 11:36:05 [2025-03-30 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795914', 'tblTempUsageDetail_20' ) start [2025-03-30 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795914', 'tblTempUsageDetail_20' ) end [2025-03-30 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795914', 'tblTempVendorCDR_20' ) start [2025-03-30 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795914', 'tblTempVendorCDR_20' ) end [2025-03-30 11:36:18] Production.INFO: ProcessCDR(1,14795914,1,1,2) [2025-03-30 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795914', 'tblTempUsageDetail_20' ) start [2025-03-30 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795914', 'tblTempUsageDetail_20' ) end [2025-03-30 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:36:23] Production.INFO: ==24792== Releasing lock... [2025-03-30 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:37:05 [end_date_ymd] => 2025-03-30 11:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:37:05' and `end` < '2025-03-30 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-03-30 11:37:18] Production.INFO: count ==685 [2025-03-30 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:37:05 - End Time 2025-03-30 11:37:05 [2025-03-30 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795919', 'tblTempUsageDetail_20' ) start [2025-03-30 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795919', 'tblTempUsageDetail_20' ) end [2025-03-30 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795919', 'tblTempVendorCDR_20' ) start [2025-03-30 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795919', 'tblTempVendorCDR_20' ) end [2025-03-30 11:37:18] Production.INFO: ProcessCDR(1,14795919,1,1,2) [2025-03-30 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795919', 'tblTempUsageDetail_20' ) start [2025-03-30 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795919', 'tblTempUsageDetail_20' ) end [2025-03-30 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:37:22] Production.INFO: ==24879== Releasing lock... [2025-03-30 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:38:05 [end_date_ymd] => 2025-03-30 11:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:38:05' and `end` < '2025-03-30 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-03-30 11:38:18] Production.INFO: count ==686 [2025-03-30 11:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:38:05 - End Time 2025-03-30 11:38:05 [2025-03-30 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795924', 'tblTempUsageDetail_20' ) start [2025-03-30 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795924', 'tblTempUsageDetail_20' ) end [2025-03-30 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795924', 'tblTempVendorCDR_20' ) start [2025-03-30 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795924', 'tblTempVendorCDR_20' ) end [2025-03-30 11:38:18] Production.INFO: ProcessCDR(1,14795924,1,1,2) [2025-03-30 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795924', 'tblTempUsageDetail_20' ) start [2025-03-30 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795924', 'tblTempUsageDetail_20' ) end [2025-03-30 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:38:22] Production.INFO: ==24965== Releasing lock... [2025-03-30 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:39:06 [end_date_ymd] => 2025-03-30 11:39:06 [RateCDR] => 1 ) [2025-03-30 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:39:06' and `end` < '2025-03-30 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:39:18] Production.INFO: count ==690 [2025-03-30 11:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:39:06 - End Time 2025-03-30 11:39:06 [2025-03-30 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795929', 'tblTempUsageDetail_20' ) start [2025-03-30 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795929', 'tblTempUsageDetail_20' ) end [2025-03-30 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795929', 'tblTempVendorCDR_20' ) start [2025-03-30 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795929', 'tblTempVendorCDR_20' ) end [2025-03-30 11:39:18] Production.INFO: ProcessCDR(1,14795929,1,1,2) [2025-03-30 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795929', 'tblTempUsageDetail_20' ) start [2025-03-30 11:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795929', 'tblTempUsageDetail_20' ) end [2025-03-30 11:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:39:24] Production.INFO: ==25055== Releasing lock... [2025-03-30 11:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:39:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:40:06 [end_date_ymd] => 2025-03-30 11:40:06 [RateCDR] => 1 ) [2025-03-30 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:40:06' and `end` < '2025-03-30 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:40:18] Production.INFO: count ==700 [2025-03-30 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:40:06 - End Time 2025-03-30 11:40:06 [2025-03-30 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795935', 'tblTempUsageDetail_20' ) start [2025-03-30 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795935', 'tblTempUsageDetail_20' ) end [2025-03-30 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795935', 'tblTempVendorCDR_20' ) start [2025-03-30 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795935', 'tblTempVendorCDR_20' ) end [2025-03-30 11:40:18] Production.INFO: ProcessCDR(1,14795935,1,1,2) [2025-03-30 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795935', 'tblTempUsageDetail_20' ) start [2025-03-30 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795935', 'tblTempUsageDetail_20' ) end [2025-03-30 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:40:23] Production.INFO: ==25149== Releasing lock... [2025-03-30 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:41:05 [end_date_ymd] => 2025-03-30 11:41:05 [RateCDR] => 1 ) [2025-03-30 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:41:05' and `end` < '2025-03-30 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:41:18] Production.INFO: count ==704 [2025-03-30 11:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:41:05 - End Time 2025-03-30 11:41:05 [2025-03-30 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795940', 'tblTempUsageDetail_20' ) start [2025-03-30 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795940', 'tblTempUsageDetail_20' ) end [2025-03-30 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795940', 'tblTempVendorCDR_20' ) start [2025-03-30 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795940', 'tblTempVendorCDR_20' ) end [2025-03-30 11:41:18] Production.INFO: ProcessCDR(1,14795940,1,1,2) [2025-03-30 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795940', 'tblTempUsageDetail_20' ) start [2025-03-30 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795940', 'tblTempUsageDetail_20' ) end [2025-03-30 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:41:21] Production.INFO: ==25239== Releasing lock... [2025-03-30 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:41:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:42:05 [end_date_ymd] => 2025-03-30 11:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:42:05' and `end` < '2025-03-30 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-03-30 11:42:17] Production.INFO: count ==712 [2025-03-30 11:42:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:42:05 - End Time 2025-03-30 11:42:05 [2025-03-30 11:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795945', 'tblTempUsageDetail_20' ) start [2025-03-30 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795945', 'tblTempUsageDetail_20' ) end [2025-03-30 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795945', 'tblTempVendorCDR_20' ) start [2025-03-30 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795945', 'tblTempVendorCDR_20' ) end [2025-03-30 11:42:18] Production.INFO: ProcessCDR(1,14795945,1,1,2) [2025-03-30 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795945', 'tblTempUsageDetail_20' ) start [2025-03-30 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795945', 'tblTempUsageDetail_20' ) end [2025-03-30 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:42:21] Production.INFO: ==25331== Releasing lock... [2025-03-30 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:43:05 [end_date_ymd] => 2025-03-30 11:43:05 [RateCDR] => 1 ) [2025-03-30 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:43:05' and `end` < '2025-03-30 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-03-30 11:43:18] Production.INFO: count ==713 [2025-03-30 11:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:43:05 - End Time 2025-03-30 11:43:05 [2025-03-30 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795950', 'tblTempUsageDetail_20' ) start [2025-03-30 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795950', 'tblTempUsageDetail_20' ) end [2025-03-30 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795950', 'tblTempVendorCDR_20' ) start [2025-03-30 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795950', 'tblTempVendorCDR_20' ) end [2025-03-30 11:43:18] Production.INFO: ProcessCDR(1,14795950,1,1,2) [2025-03-30 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795950', 'tblTempUsageDetail_20' ) start [2025-03-30 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795950', 'tblTempUsageDetail_20' ) end [2025-03-30 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:43:23] Production.INFO: ==25420== Releasing lock... [2025-03-30 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-30 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:44:06 [end_date_ymd] => 2025-03-30 11:44:06 [RateCDR] => 1 ) [2025-03-30 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:44:06' and `end` < '2025-03-30 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:44:19] Production.INFO: count ==715 [2025-03-30 11:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:44:06 - End Time 2025-03-30 11:44:06 [2025-03-30 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795955', 'tblTempUsageDetail_20' ) start [2025-03-30 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795955', 'tblTempUsageDetail_20' ) end [2025-03-30 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795955', 'tblTempVendorCDR_20' ) start [2025-03-30 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795955', 'tblTempVendorCDR_20' ) end [2025-03-30 11:44:19] Production.INFO: ProcessCDR(1,14795955,1,1,2) [2025-03-30 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795955', 'tblTempUsageDetail_20' ) start [2025-03-30 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795955', 'tblTempUsageDetail_20' ) end [2025-03-30 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:44:24] Production.INFO: ==25545== Releasing lock... [2025-03-30 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:44:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:45:05 [end_date_ymd] => 2025-03-30 11:45:05 [RateCDR] => 1 ) [2025-03-30 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:45:05' and `end` < '2025-03-30 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:45:18] Production.INFO: count ==716 [2025-03-30 11:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:45:05 - End Time 2025-03-30 11:45:05 [2025-03-30 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795960', 'tblTempUsageDetail_20' ) start [2025-03-30 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795960', 'tblTempUsageDetail_20' ) end [2025-03-30 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795960', 'tblTempVendorCDR_20' ) start [2025-03-30 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795960', 'tblTempVendorCDR_20' ) end [2025-03-30 11:45:18] Production.INFO: ProcessCDR(1,14795960,1,1,2) [2025-03-30 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795960', 'tblTempUsageDetail_20' ) start [2025-03-30 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795960', 'tblTempUsageDetail_20' ) end [2025-03-30 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:45:23] Production.INFO: ==25637== Releasing lock... [2025-03-30 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:46:06 [end_date_ymd] => 2025-03-30 11:46:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:46:06' and `end` < '2025-03-30 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-03-30 11:46:18] Production.INFO: count ==717 [2025-03-30 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:46:06 - End Time 2025-03-30 11:46:06 [2025-03-30 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795965', 'tblTempUsageDetail_20' ) start [2025-03-30 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795965', 'tblTempUsageDetail_20' ) end [2025-03-30 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795965', 'tblTempVendorCDR_20' ) start [2025-03-30 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795965', 'tblTempVendorCDR_20' ) end [2025-03-30 11:46:18] Production.INFO: ProcessCDR(1,14795965,1,1,2) [2025-03-30 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795965', 'tblTempUsageDetail_20' ) start [2025-03-30 11:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795965', 'tblTempUsageDetail_20' ) end [2025-03-30 11:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:46:23] Production.INFO: ==25721== Releasing lock... [2025-03-30 11:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:46:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:47:05 [end_date_ymd] => 2025-03-30 11:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:47:05' and `end` < '2025-03-30 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-03-30 11:47:18] Production.INFO: count ==723 [2025-03-30 11:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:47:05 - End Time 2025-03-30 11:47:05 [2025-03-30 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795970', 'tblTempUsageDetail_20' ) start [2025-03-30 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795970', 'tblTempUsageDetail_20' ) end [2025-03-30 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795970', 'tblTempVendorCDR_20' ) start [2025-03-30 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795970', 'tblTempVendorCDR_20' ) end [2025-03-30 11:47:18] Production.INFO: ProcessCDR(1,14795970,1,1,2) [2025-03-30 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795970', 'tblTempUsageDetail_20' ) start [2025-03-30 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795970', 'tblTempUsageDetail_20' ) end [2025-03-30 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:47:23] Production.INFO: ==25814== Releasing lock... [2025-03-30 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:47:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:48:06 [end_date_ymd] => 2025-03-30 11:48:06 [RateCDR] => 1 ) [2025-03-30 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:48:06' and `end` < '2025-03-30 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:48:18] Production.INFO: count ==725 [2025-03-30 11:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:48:06 - End Time 2025-03-30 11:48:06 [2025-03-30 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795975', 'tblTempUsageDetail_20' ) start [2025-03-30 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795975', 'tblTempUsageDetail_20' ) end [2025-03-30 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795975', 'tblTempVendorCDR_20' ) start [2025-03-30 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795975', 'tblTempVendorCDR_20' ) end [2025-03-30 11:48:18] Production.INFO: ProcessCDR(1,14795975,1,1,2) [2025-03-30 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795975', 'tblTempUsageDetail_20' ) start [2025-03-30 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795975', 'tblTempUsageDetail_20' ) end [2025-03-30 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:48:24] Production.INFO: ==25908== Releasing lock... [2025-03-30 11:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:48:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:49:05 [end_date_ymd] => 2025-03-30 11:49:05 [RateCDR] => 1 ) [2025-03-30 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:49:05' and `end` < '2025-03-30 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:49:18] Production.INFO: count ==734 [2025-03-30 11:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:49:05 - End Time 2025-03-30 11:49:05 [2025-03-30 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795980', 'tblTempUsageDetail_20' ) start [2025-03-30 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795980', 'tblTempUsageDetail_20' ) end [2025-03-30 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795980', 'tblTempVendorCDR_20' ) start [2025-03-30 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795980', 'tblTempVendorCDR_20' ) end [2025-03-30 11:49:18] Production.INFO: ProcessCDR(1,14795980,1,1,2) [2025-03-30 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795980', 'tblTempUsageDetail_20' ) start [2025-03-30 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795980', 'tblTempUsageDetail_20' ) end [2025-03-30 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:49:23] Production.INFO: ==25992== Releasing lock... [2025-03-30 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:49:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:50:06 [end_date_ymd] => 2025-03-30 11:50:06 [RateCDR] => 1 ) [2025-03-30 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:50:06' and `end` < '2025-03-30 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:50:19] Production.INFO: count ==743 [2025-03-30 11:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:50:06 - End Time 2025-03-30 11:50:06 [2025-03-30 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795986', 'tblTempUsageDetail_20' ) start [2025-03-30 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795986', 'tblTempUsageDetail_20' ) end [2025-03-30 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795986', 'tblTempVendorCDR_20' ) start [2025-03-30 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795986', 'tblTempVendorCDR_20' ) end [2025-03-30 11:50:19] Production.INFO: ProcessCDR(1,14795986,1,1,2) [2025-03-30 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795986', 'tblTempUsageDetail_20' ) start [2025-03-30 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795986', 'tblTempUsageDetail_20' ) end [2025-03-30 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:50:24] Production.INFO: ==26085== Releasing lock... [2025-03-30 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:50:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-30 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:51:05 [end_date_ymd] => 2025-03-30 11:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:51:05' and `end` < '2025-03-30 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-03-30 11:51:18] Production.INFO: count ==764 [2025-03-30 11:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:51:05 - End Time 2025-03-30 11:51:05 [2025-03-30 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795991', 'tblTempUsageDetail_20' ) start [2025-03-30 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795991', 'tblTempUsageDetail_20' ) end [2025-03-30 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795991', 'tblTempVendorCDR_20' ) start [2025-03-30 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795991', 'tblTempVendorCDR_20' ) end [2025-03-30 11:51:18] Production.INFO: ProcessCDR(1,14795991,1,1,2) [2025-03-30 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795991', 'tblTempUsageDetail_20' ) start [2025-03-30 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795991', 'tblTempUsageDetail_20' ) end [2025-03-30 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:51:22] Production.INFO: ==26179== Releasing lock... [2025-03-30 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:51:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-30 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:52:05 [end_date_ymd] => 2025-03-30 11:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:52:05' and `end` < '2025-03-30 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-03-30 11:52:18] Production.INFO: count ==762 [2025-03-30 11:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:52:05 - End Time 2025-03-30 11:52:05 [2025-03-30 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795996', 'tblTempUsageDetail_20' ) start [2025-03-30 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14795996', 'tblTempUsageDetail_20' ) end [2025-03-30 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795996', 'tblTempVendorCDR_20' ) start [2025-03-30 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14795996', 'tblTempVendorCDR_20' ) end [2025-03-30 11:52:18] Production.INFO: ProcessCDR(1,14795996,1,1,2) [2025-03-30 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14795996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14795996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14795996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14795996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795996', 'tblTempUsageDetail_20' ) start [2025-03-30 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14795996', 'tblTempUsageDetail_20' ) end [2025-03-30 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:52:23] Production.INFO: ==26267== Releasing lock... [2025-03-30 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:52:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:53:05 [end_date_ymd] => 2025-03-30 11:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:53:05' and `end` < '2025-03-30 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-03-30 11:53:17] Production.INFO: count ==765 [2025-03-30 11:53:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:53:05 - End Time 2025-03-30 11:53:05 [2025-03-30 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796001', 'tblTempUsageDetail_20' ) start [2025-03-30 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796001', 'tblTempUsageDetail_20' ) end [2025-03-30 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796001', 'tblTempVendorCDR_20' ) start [2025-03-30 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796001', 'tblTempVendorCDR_20' ) end [2025-03-30 11:53:18] Production.INFO: ProcessCDR(1,14796001,1,1,2) [2025-03-30 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796001', 'tblTempUsageDetail_20' ) start [2025-03-30 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796001', 'tblTempUsageDetail_20' ) end [2025-03-30 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:53:23] Production.INFO: ==26360== Releasing lock... [2025-03-30 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:53:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-30 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:54:05 [end_date_ymd] => 2025-03-30 11:54:05 [RateCDR] => 1 ) [2025-03-30 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:54:05' and `end` < '2025-03-30 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:54:18] Production.INFO: count ==763 [2025-03-30 11:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:54:05 - End Time 2025-03-30 11:54:05 [2025-03-30 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796006', 'tblTempUsageDetail_20' ) start [2025-03-30 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796006', 'tblTempUsageDetail_20' ) end [2025-03-30 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796006', 'tblTempVendorCDR_20' ) start [2025-03-30 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796006', 'tblTempVendorCDR_20' ) end [2025-03-30 11:54:18] Production.INFO: ProcessCDR(1,14796006,1,1,2) [2025-03-30 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796006', 'tblTempUsageDetail_20' ) start [2025-03-30 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796006', 'tblTempUsageDetail_20' ) end [2025-03-30 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:54:23] Production.INFO: ==26446== Releasing lock... [2025-03-30 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:54:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:55:06 [end_date_ymd] => 2025-03-30 11:55:06 [RateCDR] => 1 ) [2025-03-30 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 08:55:06' and `end` < '2025-03-30 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 11:55:19] Production.INFO: count ==764 [2025-03-30 11:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 08:55:06 - End Time 2025-03-30 11:55:06 [2025-03-30 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796011', 'tblTempUsageDetail_20' ) start [2025-03-30 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796011', 'tblTempUsageDetail_20' ) end [2025-03-30 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796011', 'tblTempVendorCDR_20' ) start [2025-03-30 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796011', 'tblTempVendorCDR_20' ) end [2025-03-30 11:55:19] Production.INFO: ProcessCDR(1,14796011,1,1,2) [2025-03-30 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796011', 'tblTempUsageDetail_20' ) start [2025-03-30 11:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796011', 'tblTempUsageDetail_20' ) end [2025-03-30 11:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:55:24] Production.INFO: ==26534== Releasing lock... [2025-03-30 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:55:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:56:05 [end_date_ymd] => 2025-03-30 11:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:56:05' and `end` < '2025-03-30 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-03-30 11:56:18] Production.INFO: count ==765 [2025-03-30 11:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:56:05 - End Time 2025-03-30 11:56:05 [2025-03-30 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796016', 'tblTempUsageDetail_20' ) start [2025-03-30 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796016', 'tblTempUsageDetail_20' ) end [2025-03-30 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796016', 'tblTempVendorCDR_20' ) start [2025-03-30 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796016', 'tblTempVendorCDR_20' ) end [2025-03-30 11:56:18] Production.INFO: ProcessCDR(1,14796016,1,1,2) [2025-03-30 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796016', 'tblTempUsageDetail_20' ) start [2025-03-30 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796016', 'tblTempUsageDetail_20' ) end [2025-03-30 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:56:23] Production.INFO: ==26625== Releasing lock... [2025-03-30 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:56:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:57:05 [end_date_ymd] => 2025-03-30 11:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:57:05' and `end` < '2025-03-30 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-03-30 11:57:18] Production.INFO: count ==770 [2025-03-30 11:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:57:05 - End Time 2025-03-30 11:57:05 [2025-03-30 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796021', 'tblTempUsageDetail_20' ) start [2025-03-30 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796021', 'tblTempUsageDetail_20' ) end [2025-03-30 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796021', 'tblTempVendorCDR_20' ) start [2025-03-30 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796021', 'tblTempVendorCDR_20' ) end [2025-03-30 11:57:18] Production.INFO: ProcessCDR(1,14796021,1,1,2) [2025-03-30 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796021', 'tblTempUsageDetail_20' ) start [2025-03-30 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796021', 'tblTempUsageDetail_20' ) end [2025-03-30 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:57:23] Production.INFO: ==26711== Releasing lock... [2025-03-30 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:57:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:58:04 [end_date_ymd] => 2025-03-30 11:58:04 [RateCDR] => 1 ) [2025-03-30 11: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-03-30 08:58:04' and `end` < '2025-03-30 11: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-03-30 11:58:17] Production.INFO: count ==767 [2025-03-30 11:58:17] Production.ERROR: pbx CDR StartTime 2025-03-30 08:58:04 - End Time 2025-03-30 11:58:04 [2025-03-30 11:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796026', 'tblTempUsageDetail_20' ) start [2025-03-30 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796026', 'tblTempUsageDetail_20' ) end [2025-03-30 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796026', 'tblTempVendorCDR_20' ) start [2025-03-30 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796026', 'tblTempVendorCDR_20' ) end [2025-03-30 11:58:17] Production.INFO: ProcessCDR(1,14796026,1,1,2) [2025-03-30 11:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796026', 'tblTempUsageDetail_20' ) start [2025-03-30 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796026', 'tblTempUsageDetail_20' ) end [2025-03-30 11:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:58:22] Production.INFO: ==26799== Releasing lock... [2025-03-30 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-30 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 08:59:05 [end_date_ymd] => 2025-03-30 11:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 08:59:05' and `end` < '2025-03-30 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-03-30 11:59:18] Production.INFO: count ==768 [2025-03-30 11:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 08:59:05 - End Time 2025-03-30 11:59:05 [2025-03-30 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796031', 'tblTempUsageDetail_20' ) start [2025-03-30 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796031', 'tblTempUsageDetail_20' ) end [2025-03-30 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796031', 'tblTempVendorCDR_20' ) start [2025-03-30 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796031', 'tblTempVendorCDR_20' ) end [2025-03-30 11:59:18] Production.INFO: ProcessCDR(1,14796031,1,1,2) [2025-03-30 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796031', 'tblTempUsageDetail_20' ) start [2025-03-30 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796031', 'tblTempUsageDetail_20' ) end [2025-03-30 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 11:59:23] Production.INFO: ==26891== Releasing lock... [2025-03-30 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 11:59:23] Production.INFO: 34 MB #Memory Used# [2025-03-30 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:00:06 [end_date_ymd] => 2025-03-30 12:00:06 [RateCDR] => 1 ) [2025-03-30 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:00:06' and `end` < '2025-03-30 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:00:18] Production.INFO: count ==1193 [2025-03-30 12:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:00:06 - End Time 2025-03-30 12:00:06 [2025-03-30 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796037', 'tblTempUsageDetail_20' ) start [2025-03-30 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796037', 'tblTempUsageDetail_20' ) end [2025-03-30 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796037', 'tblTempVendorCDR_20' ) start [2025-03-30 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796037', 'tblTempVendorCDR_20' ) end [2025-03-30 12:00:19] Production.INFO: ProcessCDR(1,14796037,1,1,2) [2025-03-30 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796037', 'tblTempUsageDetail_20' ) start [2025-03-30 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796037', 'tblTempUsageDetail_20' ) end [2025-03-30 12:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:00:25] Production.INFO: ==27020== Releasing lock... [2025-03-30 12:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:00:25] Production.INFO: 37 MB #Memory Used# [2025-03-30 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:01:06 [end_date_ymd] => 2025-03-30 12:01:06 [RateCDR] => 1 ) [2025-03-30 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:01:06' and `end` < '2025-03-30 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:01:18] Production.INFO: count ==1198 [2025-03-30 12:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:01:06 - End Time 2025-03-30 12:01:06 [2025-03-30 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796042', 'tblTempUsageDetail_20' ) start [2025-03-30 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796042', 'tblTempUsageDetail_20' ) end [2025-03-30 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796042', 'tblTempVendorCDR_20' ) start [2025-03-30 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796042', 'tblTempVendorCDR_20' ) end [2025-03-30 12:01:19] Production.INFO: ProcessCDR(1,14796042,1,1,2) [2025-03-30 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796042', 'tblTempUsageDetail_20' ) start [2025-03-30 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796042', 'tblTempUsageDetail_20' ) end [2025-03-30 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:01:24] Production.INFO: ==27116== Releasing lock... [2025-03-30 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:01:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:02:05 [end_date_ymd] => 2025-03-30 12:02:05 [RateCDR] => 1 ) [2025-03-30 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:02:05' and `end` < '2025-03-30 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:02:18] Production.INFO: count ==1203 [2025-03-30 12:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:02:05 - End Time 2025-03-30 12:02:05 [2025-03-30 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796047', 'tblTempUsageDetail_20' ) start [2025-03-30 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796047', 'tblTempUsageDetail_20' ) end [2025-03-30 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796047', 'tblTempVendorCDR_20' ) start [2025-03-30 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796047', 'tblTempVendorCDR_20' ) end [2025-03-30 12:02:18] Production.INFO: ProcessCDR(1,14796047,1,1,2) [2025-03-30 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796047', 'tblTempUsageDetail_20' ) start [2025-03-30 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796047', 'tblTempUsageDetail_20' ) end [2025-03-30 12:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:02:24] Production.INFO: ==27192== Releasing lock... [2025-03-30 12:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:02:24] Production.INFO: 37 MB #Memory Used# [2025-03-30 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:03:06 [end_date_ymd] => 2025-03-30 12:03:06 [RateCDR] => 1 ) [2025-03-30 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:03:06' and `end` < '2025-03-30 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:03:18] Production.INFO: count ==1215 [2025-03-30 12:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:03:06 - End Time 2025-03-30 12:03:06 [2025-03-30 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796052', 'tblTempUsageDetail_20' ) start [2025-03-30 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796052', 'tblTempUsageDetail_20' ) end [2025-03-30 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796052', 'tblTempVendorCDR_20' ) start [2025-03-30 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796052', 'tblTempVendorCDR_20' ) end [2025-03-30 12:03:19] Production.INFO: ProcessCDR(1,14796052,1,1,2) [2025-03-30 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796052', 'tblTempUsageDetail_20' ) start [2025-03-30 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796052', 'tblTempUsageDetail_20' ) end [2025-03-30 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:03:25] Production.INFO: ==27269== Releasing lock... [2025-03-30 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:03:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:04:06 [end_date_ymd] => 2025-03-30 12:04:06 [RateCDR] => 1 ) [2025-03-30 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:04:06' and `end` < '2025-03-30 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:04:18] Production.INFO: count ==1218 [2025-03-30 12:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:04:06 - End Time 2025-03-30 12:04:06 [2025-03-30 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796057', 'tblTempUsageDetail_20' ) start [2025-03-30 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796057', 'tblTempUsageDetail_20' ) end [2025-03-30 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796057', 'tblTempVendorCDR_20' ) start [2025-03-30 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796057', 'tblTempVendorCDR_20' ) end [2025-03-30 12:04:19] Production.INFO: ProcessCDR(1,14796057,1,1,2) [2025-03-30 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796057', 'tblTempUsageDetail_20' ) start [2025-03-30 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796057', 'tblTempUsageDetail_20' ) end [2025-03-30 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:04:25] Production.INFO: ==27344== Releasing lock... [2025-03-30 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:04:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 12:05:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:05:07 [end_date_ymd] => 2025-03-30 12:05:07 [RateCDR] => 1 ) [2025-03-30 12:05: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-03-30 09:05:07' and `end` < '2025-03-30 12:05: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-03-30 12:05:19] Production.INFO: count ==1222 [2025-03-30 12:05:20] Production.ERROR: pbx CDR StartTime 2025-03-30 09:05:07 - End Time 2025-03-30 12:05:07 [2025-03-30 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796062', 'tblTempUsageDetail_20' ) start [2025-03-30 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796062', 'tblTempUsageDetail_20' ) end [2025-03-30 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796062', 'tblTempVendorCDR_20' ) start [2025-03-30 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796062', 'tblTempVendorCDR_20' ) end [2025-03-30 12:05:20] Production.INFO: ProcessCDR(1,14796062,1,1,2) [2025-03-30 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796062', 'tblTempUsageDetail_20' ) start [2025-03-30 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796062', 'tblTempUsageDetail_20' ) end [2025-03-30 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:05:26] Production.INFO: ==27421== Releasing lock... [2025-03-30 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:05:26] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:06:06 [end_date_ymd] => 2025-03-30 12:06:06 [RateCDR] => 1 ) [2025-03-30 12: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-03-30 09:06:06' and `end` < '2025-03-30 12: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-03-30 12:06:19] Production.INFO: count ==1225 [2025-03-30 12:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:06:06 - End Time 2025-03-30 12:06:06 [2025-03-30 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796067', 'tblTempUsageDetail_20' ) start [2025-03-30 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796067', 'tblTempUsageDetail_20' ) end [2025-03-30 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796067', 'tblTempVendorCDR_20' ) start [2025-03-30 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796067', 'tblTempVendorCDR_20' ) end [2025-03-30 12:06:19] Production.INFO: ProcessCDR(1,14796067,1,1,2) [2025-03-30 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796067', 'tblTempUsageDetail_20' ) start [2025-03-30 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796067', 'tblTempUsageDetail_20' ) end [2025-03-30 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:06:25] Production.INFO: ==27497== Releasing lock... [2025-03-30 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:06:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:07:06 [end_date_ymd] => 2025-03-30 12:07:06 [RateCDR] => 1 ) [2025-03-30 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:07:06' and `end` < '2025-03-30 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:07:19] Production.INFO: count ==1227 [2025-03-30 12:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 09:07:06 - End Time 2025-03-30 12:07:06 [2025-03-30 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796072', 'tblTempUsageDetail_20' ) start [2025-03-30 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796072', 'tblTempUsageDetail_20' ) end [2025-03-30 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796072', 'tblTempVendorCDR_20' ) start [2025-03-30 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796072', 'tblTempVendorCDR_20' ) end [2025-03-30 12:07:20] Production.INFO: ProcessCDR(1,14796072,1,1,2) [2025-03-30 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796072', 'tblTempUsageDetail_20' ) start [2025-03-30 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796072', 'tblTempUsageDetail_20' ) end [2025-03-30 12:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:07:25] Production.INFO: ==27576== Releasing lock... [2025-03-30 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:07:25] Production.INFO: 37.25 MB #Memory Used# [2025-03-30 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:08:05 [end_date_ymd] => 2025-03-30 12:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:08:05' and `end` < '2025-03-30 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-03-30 12:08:18] Production.INFO: count ==1228 [2025-03-30 12:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:08:05 - End Time 2025-03-30 12:08:05 [2025-03-30 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796077', 'tblTempUsageDetail_20' ) start [2025-03-30 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796077', 'tblTempUsageDetail_20' ) end [2025-03-30 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796077', 'tblTempVendorCDR_20' ) start [2025-03-30 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796077', 'tblTempVendorCDR_20' ) end [2025-03-30 12:08:19] Production.INFO: ProcessCDR(1,14796077,1,1,2) [2025-03-30 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796077', 'tblTempUsageDetail_20' ) start [2025-03-30 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796077', 'tblTempUsageDetail_20' ) end [2025-03-30 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:08:24] Production.INFO: ==27647== Releasing lock... [2025-03-30 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:08:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:09:06 [end_date_ymd] => 2025-03-30 12:09:06 [RateCDR] => 1 ) [2025-03-30 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:09:06' and `end` < '2025-03-30 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:09:19] Production.INFO: count ==1223 [2025-03-30 12:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:09:06 - End Time 2025-03-30 12:09:06 [2025-03-30 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796082', 'tblTempUsageDetail_20' ) start [2025-03-30 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796082', 'tblTempUsageDetail_20' ) end [2025-03-30 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796082', 'tblTempVendorCDR_20' ) start [2025-03-30 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796082', 'tblTempVendorCDR_20' ) end [2025-03-30 12:09:19] Production.INFO: ProcessCDR(1,14796082,1,1,2) [2025-03-30 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796082', 'tblTempUsageDetail_20' ) start [2025-03-30 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796082', 'tblTempUsageDetail_20' ) end [2025-03-30 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:09:25] Production.INFO: ==27724== Releasing lock... [2025-03-30 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:09:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:10:06 [end_date_ymd] => 2025-03-30 12:10:06 [RateCDR] => 1 ) [2025-03-30 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:10:06' and `end` < '2025-03-30 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:10:19] Production.INFO: count ==1229 [2025-03-30 12:10:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:10:06 - End Time 2025-03-30 12:10:06 [2025-03-30 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796087', 'tblTempUsageDetail_20' ) start [2025-03-30 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796087', 'tblTempUsageDetail_20' ) end [2025-03-30 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796087', 'tblTempVendorCDR_20' ) start [2025-03-30 12:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796087', 'tblTempVendorCDR_20' ) end [2025-03-30 12:10:20] Production.INFO: ProcessCDR(1,14796087,1,1,2) [2025-03-30 12:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796087', 'tblTempUsageDetail_20' ) start [2025-03-30 12:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796087', 'tblTempUsageDetail_20' ) end [2025-03-30 12:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:10:25] Production.INFO: ==27799== Releasing lock... [2025-03-30 12:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:10:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:11:06 [end_date_ymd] => 2025-03-30 12:11:06 [RateCDR] => 1 ) [2025-03-30 12: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-03-30 09:11:06' and `end` < '2025-03-30 12: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-03-30 12:11:19] Production.INFO: count ==1268 [2025-03-30 12:11:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:11:06 - End Time 2025-03-30 12:11:06 [2025-03-30 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796093', 'tblTempUsageDetail_20' ) start [2025-03-30 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796093', 'tblTempUsageDetail_20' ) end [2025-03-30 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796093', 'tblTempVendorCDR_20' ) start [2025-03-30 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796093', 'tblTempVendorCDR_20' ) end [2025-03-30 12:11:19] Production.INFO: ProcessCDR(1,14796093,1,1,2) [2025-03-30 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796093', 'tblTempUsageDetail_20' ) start [2025-03-30 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796093', 'tblTempUsageDetail_20' ) end [2025-03-30 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:11:25] Production.INFO: ==27882== Releasing lock... [2025-03-30 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:11:25] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:12:05 [end_date_ymd] => 2025-03-30 12:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:12:05' and `end` < '2025-03-30 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-03-30 12:12:18] Production.INFO: count ==1273 [2025-03-30 12:12:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:12:05 - End Time 2025-03-30 12:12:05 [2025-03-30 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796098', 'tblTempUsageDetail_20' ) start [2025-03-30 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796098', 'tblTempUsageDetail_20' ) end [2025-03-30 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796098', 'tblTempVendorCDR_20' ) start [2025-03-30 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796098', 'tblTempVendorCDR_20' ) end [2025-03-30 12:12:18] Production.INFO: ProcessCDR(1,14796098,1,1,2) [2025-03-30 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796098', 'tblTempUsageDetail_20' ) start [2025-03-30 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796098', 'tblTempUsageDetail_20' ) end [2025-03-30 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:12:24] Production.INFO: ==27960== Releasing lock... [2025-03-30 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:12:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:13:06 [end_date_ymd] => 2025-03-30 12:13:06 [RateCDR] => 1 ) [2025-03-30 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:13:06' and `end` < '2025-03-30 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:13:18] Production.INFO: count ==1274 [2025-03-30 12:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:13:06 - End Time 2025-03-30 12:13:06 [2025-03-30 12:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796103', 'tblTempUsageDetail_20' ) start [2025-03-30 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796103', 'tblTempUsageDetail_20' ) end [2025-03-30 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796103', 'tblTempVendorCDR_20' ) start [2025-03-30 12:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796103', 'tblTempVendorCDR_20' ) end [2025-03-30 12:13:19] Production.INFO: ProcessCDR(1,14796103,1,1,2) [2025-03-30 12:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796103', 'tblTempUsageDetail_20' ) start [2025-03-30 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796103', 'tblTempUsageDetail_20' ) end [2025-03-30 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:13:25] Production.INFO: ==28034== Releasing lock... [2025-03-30 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:13:25] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:14:05 [end_date_ymd] => 2025-03-30 12:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:14:05' and `end` < '2025-03-30 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-03-30 12:14:18] Production.INFO: count ==1276 [2025-03-30 12:14:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:14:05 - End Time 2025-03-30 12:14:05 [2025-03-30 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796108', 'tblTempUsageDetail_20' ) start [2025-03-30 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796108', 'tblTempUsageDetail_20' ) end [2025-03-30 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796108', 'tblTempVendorCDR_20' ) start [2025-03-30 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796108', 'tblTempVendorCDR_20' ) end [2025-03-30 12:14:19] Production.INFO: ProcessCDR(1,14796108,1,1,2) [2025-03-30 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796108', 'tblTempUsageDetail_20' ) start [2025-03-30 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796108', 'tblTempUsageDetail_20' ) end [2025-03-30 12:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:14:24] Production.INFO: ==28112== Releasing lock... [2025-03-30 12:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:14:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-30 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:15:06 [end_date_ymd] => 2025-03-30 12:15:06 [RateCDR] => 1 ) [2025-03-30 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:15:06' and `end` < '2025-03-30 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:15:18] Production.INFO: count ==1277 [2025-03-30 12:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:15:06 - End Time 2025-03-30 12:15:06 [2025-03-30 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796113', 'tblTempUsageDetail_20' ) start [2025-03-30 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796113', 'tblTempUsageDetail_20' ) end [2025-03-30 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796113', 'tblTempVendorCDR_20' ) start [2025-03-30 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796113', 'tblTempVendorCDR_20' ) end [2025-03-30 12:15:19] Production.INFO: ProcessCDR(1,14796113,1,1,2) [2025-03-30 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796113', 'tblTempUsageDetail_20' ) start [2025-03-30 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796113', 'tblTempUsageDetail_20' ) end [2025-03-30 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:15:25] Production.INFO: ==28229== Releasing lock... [2025-03-30 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:15:25] Production.INFO: 38.5 MB #Memory Used# [2025-03-30 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:16:05 [end_date_ymd] => 2025-03-30 12:16:05 [RateCDR] => 1 ) [2025-03-30 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:16:05' and `end` < '2025-03-30 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:16:18] Production.INFO: count ==1280 [2025-03-30 12:16:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:16:05 - End Time 2025-03-30 12:16:05 [2025-03-30 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796118', 'tblTempUsageDetail_20' ) start [2025-03-30 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796118', 'tblTempUsageDetail_20' ) end [2025-03-30 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796118', 'tblTempVendorCDR_20' ) start [2025-03-30 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796118', 'tblTempVendorCDR_20' ) end [2025-03-30 12:16:19] Production.INFO: ProcessCDR(1,14796118,1,1,2) [2025-03-30 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796118', 'tblTempUsageDetail_20' ) start [2025-03-30 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796118', 'tblTempUsageDetail_20' ) end [2025-03-30 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:16:24] Production.INFO: ==28311== Releasing lock... [2025-03-30 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:16:24] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:17:06 [end_date_ymd] => 2025-03-30 12:17:06 [RateCDR] => 1 ) [2025-03-30 12: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-03-30 09:17:06' and `end` < '2025-03-30 12: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-03-30 12:17:18] Production.INFO: count ==1287 [2025-03-30 12:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:17:06 - End Time 2025-03-30 12:17:06 [2025-03-30 12:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796123', 'tblTempUsageDetail_20' ) start [2025-03-30 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796123', 'tblTempUsageDetail_20' ) end [2025-03-30 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796123', 'tblTempVendorCDR_20' ) start [2025-03-30 12:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796123', 'tblTempVendorCDR_20' ) end [2025-03-30 12:17:19] Production.INFO: ProcessCDR(1,14796123,1,1,2) [2025-03-30 12:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796123', 'tblTempUsageDetail_20' ) start [2025-03-30 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796123', 'tblTempUsageDetail_20' ) end [2025-03-30 12:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:17:25] Production.INFO: ==28386== Releasing lock... [2025-03-30 12:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:17:25] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:18:06 [end_date_ymd] => 2025-03-30 12:18:06 [RateCDR] => 1 ) [2025-03-30 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:18:06' and `end` < '2025-03-30 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:18:18] Production.INFO: count ==1291 [2025-03-30 12:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:18:06 - End Time 2025-03-30 12:18:06 [2025-03-30 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796128', 'tblTempUsageDetail_20' ) start [2025-03-30 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796128', 'tblTempUsageDetail_20' ) end [2025-03-30 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796128', 'tblTempVendorCDR_20' ) start [2025-03-30 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796128', 'tblTempVendorCDR_20' ) end [2025-03-30 12:18:19] Production.INFO: ProcessCDR(1,14796128,1,1,2) [2025-03-30 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796128', 'tblTempUsageDetail_20' ) start [2025-03-30 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796128', 'tblTempUsageDetail_20' ) end [2025-03-30 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:18:24] Production.INFO: ==28460== Releasing lock... [2025-03-30 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:19:06 [end_date_ymd] => 2025-03-30 12:19:06 [RateCDR] => 1 ) [2025-03-30 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:19:06' and `end` < '2025-03-30 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:19:18] Production.INFO: count ==1290 [2025-03-30 12:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:19:06 - End Time 2025-03-30 12:19:06 [2025-03-30 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796133', 'tblTempUsageDetail_20' ) start [2025-03-30 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796133', 'tblTempUsageDetail_20' ) end [2025-03-30 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796133', 'tblTempVendorCDR_20' ) start [2025-03-30 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796133', 'tblTempVendorCDR_20' ) end [2025-03-30 12:19:19] Production.INFO: ProcessCDR(1,14796133,1,1,2) [2025-03-30 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796133', 'tblTempUsageDetail_20' ) start [2025-03-30 12:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796133', 'tblTempUsageDetail_20' ) end [2025-03-30 12:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:19:24] Production.INFO: ==28534== Releasing lock... [2025-03-30 12:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:19:24] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:20:06 [end_date_ymd] => 2025-03-30 12:20:06 [RateCDR] => 1 ) [2025-03-30 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:20:06' and `end` < '2025-03-30 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:20:18] Production.INFO: count ==1292 [2025-03-30 12:20:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:20:06 - End Time 2025-03-30 12:20:06 [2025-03-30 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796139', 'tblTempUsageDetail_20' ) start [2025-03-30 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796139', 'tblTempUsageDetail_20' ) end [2025-03-30 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796139', 'tblTempVendorCDR_20' ) start [2025-03-30 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796139', 'tblTempVendorCDR_20' ) end [2025-03-30 12:20:19] Production.INFO: ProcessCDR(1,14796139,1,1,2) [2025-03-30 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796139', 'tblTempUsageDetail_20' ) start [2025-03-30 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796139', 'tblTempUsageDetail_20' ) end [2025-03-30 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:20:24] Production.INFO: ==28608== Releasing lock... [2025-03-30 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-30 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:21:05 [end_date_ymd] => 2025-03-30 12:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:21:05' and `end` < '2025-03-30 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-03-30 12:21:18] Production.INFO: count ==1304 [2025-03-30 12:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:21:05 - End Time 2025-03-30 12:21:05 [2025-03-30 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796144', 'tblTempUsageDetail_20' ) start [2025-03-30 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796144', 'tblTempUsageDetail_20' ) end [2025-03-30 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796144', 'tblTempVendorCDR_20' ) start [2025-03-30 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796144', 'tblTempVendorCDR_20' ) end [2025-03-30 12:21:18] Production.INFO: ProcessCDR(1,14796144,1,1,2) [2025-03-30 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796144', 'tblTempUsageDetail_20' ) start [2025-03-30 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796144', 'tblTempUsageDetail_20' ) end [2025-03-30 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:21:24] Production.INFO: ==28681== Releasing lock... [2025-03-30 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:21:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:22:05 [end_date_ymd] => 2025-03-30 12:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:22:05' and `end` < '2025-03-30 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-03-30 12:22:17] Production.INFO: count ==1304 [2025-03-30 12:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:22:05 - End Time 2025-03-30 12:22:05 [2025-03-30 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796149', 'tblTempUsageDetail_20' ) start [2025-03-30 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796149', 'tblTempUsageDetail_20' ) end [2025-03-30 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796149', 'tblTempVendorCDR_20' ) start [2025-03-30 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796149', 'tblTempVendorCDR_20' ) end [2025-03-30 12:22:18] Production.INFO: ProcessCDR(1,14796149,1,1,2) [2025-03-30 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796149', 'tblTempUsageDetail_20' ) start [2025-03-30 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796149', 'tblTempUsageDetail_20' ) end [2025-03-30 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:22:23] Production.INFO: ==28753== Releasing lock... [2025-03-30 12:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:22:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:23:05 [end_date_ymd] => 2025-03-30 12:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:23:05' and `end` < '2025-03-30 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-03-30 12:23:18] Production.INFO: count ==1301 [2025-03-30 12:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:23:05 - End Time 2025-03-30 12:23:05 [2025-03-30 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796154', 'tblTempUsageDetail_20' ) start [2025-03-30 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796154', 'tblTempUsageDetail_20' ) end [2025-03-30 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796154', 'tblTempVendorCDR_20' ) start [2025-03-30 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796154', 'tblTempVendorCDR_20' ) end [2025-03-30 12:23:19] Production.INFO: ProcessCDR(1,14796154,1,1,2) [2025-03-30 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796154', 'tblTempUsageDetail_20' ) start [2025-03-30 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796154', 'tblTempUsageDetail_20' ) end [2025-03-30 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:23:22] Production.INFO: ==28827== Releasing lock... [2025-03-30 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:24:05 [end_date_ymd] => 2025-03-30 12:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:24:05' and `end` < '2025-03-30 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-03-30 12:24:17] Production.INFO: count ==1302 [2025-03-30 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:24:05 - End Time 2025-03-30 12:24:05 [2025-03-30 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796159', 'tblTempUsageDetail_20' ) start [2025-03-30 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796159', 'tblTempUsageDetail_20' ) end [2025-03-30 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796159', 'tblTempVendorCDR_20' ) start [2025-03-30 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796159', 'tblTempVendorCDR_20' ) end [2025-03-30 12:24:18] Production.INFO: ProcessCDR(1,14796159,1,1,2) [2025-03-30 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796159', 'tblTempUsageDetail_20' ) start [2025-03-30 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796159', 'tblTempUsageDetail_20' ) end [2025-03-30 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:24:23] Production.INFO: ==28901== Releasing lock... [2025-03-30 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:24:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:25:05 [end_date_ymd] => 2025-03-30 12:25:05 [RateCDR] => 1 ) [2025-03-30 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:25:05' and `end` < '2025-03-30 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:25:18] Production.INFO: count ==1303 [2025-03-30 12:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:25:05 - End Time 2025-03-30 12:25:05 [2025-03-30 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796164', 'tblTempUsageDetail_20' ) start [2025-03-30 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796164', 'tblTempUsageDetail_20' ) end [2025-03-30 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796164', 'tblTempVendorCDR_20' ) start [2025-03-30 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796164', 'tblTempVendorCDR_20' ) end [2025-03-30 12:25:18] Production.INFO: ProcessCDR(1,14796164,1,1,2) [2025-03-30 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796164', 'tblTempUsageDetail_20' ) start [2025-03-30 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796164', 'tblTempUsageDetail_20' ) end [2025-03-30 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:25:23] Production.INFO: ==28978== Releasing lock... [2025-03-30 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:26:05 [end_date_ymd] => 2025-03-30 12:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:26:05' and `end` < '2025-03-30 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-03-30 12:26:18] Production.INFO: count ==1302 [2025-03-30 12:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:26:05 - End Time 2025-03-30 12:26:05 [2025-03-30 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796169', 'tblTempUsageDetail_20' ) start [2025-03-30 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796169', 'tblTempUsageDetail_20' ) end [2025-03-30 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796169', 'tblTempVendorCDR_20' ) start [2025-03-30 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796169', 'tblTempVendorCDR_20' ) end [2025-03-30 12:26:18] Production.INFO: ProcessCDR(1,14796169,1,1,2) [2025-03-30 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796169', 'tblTempUsageDetail_20' ) start [2025-03-30 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796169', 'tblTempUsageDetail_20' ) end [2025-03-30 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:26:22] Production.INFO: ==29051== Releasing lock... [2025-03-30 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:26:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:27:05 [end_date_ymd] => 2025-03-30 12:27:05 [RateCDR] => 1 ) [2025-03-30 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:27:05' and `end` < '2025-03-30 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:27:18] Production.INFO: count ==1302 [2025-03-30 12:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:27:05 - End Time 2025-03-30 12:27:05 [2025-03-30 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796174', 'tblTempUsageDetail_20' ) start [2025-03-30 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796174', 'tblTempUsageDetail_20' ) end [2025-03-30 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796174', 'tblTempVendorCDR_20' ) start [2025-03-30 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796174', 'tblTempVendorCDR_20' ) end [2025-03-30 12:27:18] Production.INFO: ProcessCDR(1,14796174,1,1,2) [2025-03-30 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796174', 'tblTempUsageDetail_20' ) start [2025-03-30 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796174', 'tblTempUsageDetail_20' ) end [2025-03-30 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:27:22] Production.INFO: ==29124== Releasing lock... [2025-03-30 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:27:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:28:05 [end_date_ymd] => 2025-03-30 12:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:28:05' and `end` < '2025-03-30 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-03-30 12:28:18] Production.INFO: count ==1301 [2025-03-30 12:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:28:05 - End Time 2025-03-30 12:28:05 [2025-03-30 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796179', 'tblTempUsageDetail_20' ) start [2025-03-30 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796179', 'tblTempUsageDetail_20' ) end [2025-03-30 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796179', 'tblTempVendorCDR_20' ) start [2025-03-30 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796179', 'tblTempVendorCDR_20' ) end [2025-03-30 12:28:18] Production.INFO: ProcessCDR(1,14796179,1,1,2) [2025-03-30 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796179', 'tblTempUsageDetail_20' ) start [2025-03-30 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796179', 'tblTempUsageDetail_20' ) end [2025-03-30 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:28:22] Production.INFO: ==29198== Releasing lock... [2025-03-30 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:29:05 [end_date_ymd] => 2025-03-30 12:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:29:05' and `end` < '2025-03-30 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-03-30 12:29:18] Production.INFO: count ==1301 [2025-03-30 12:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:29:05 - End Time 2025-03-30 12:29:05 [2025-03-30 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796184', 'tblTempUsageDetail_20' ) start [2025-03-30 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796184', 'tblTempUsageDetail_20' ) end [2025-03-30 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796184', 'tblTempVendorCDR_20' ) start [2025-03-30 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796184', 'tblTempVendorCDR_20' ) end [2025-03-30 12:29:19] Production.INFO: ProcessCDR(1,14796184,1,1,2) [2025-03-30 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796184', 'tblTempUsageDetail_20' ) start [2025-03-30 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796184', 'tblTempUsageDetail_20' ) end [2025-03-30 12:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:29:24] Production.INFO: ==29271== Releasing lock... [2025-03-30 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-30 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:30:06 [end_date_ymd] => 2025-03-30 12:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:30:06' and `end` < '2025-03-30 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-03-30 12:30:19] Production.INFO: count ==1303 [2025-03-30 12:30:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:30:06 - End Time 2025-03-30 12:30:06 [2025-03-30 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796189', 'tblTempUsageDetail_20' ) start [2025-03-30 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796189', 'tblTempUsageDetail_20' ) end [2025-03-30 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796189', 'tblTempVendorCDR_20' ) start [2025-03-30 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796189', 'tblTempVendorCDR_20' ) end [2025-03-30 12:30:19] Production.INFO: ProcessCDR(1,14796189,1,1,2) [2025-03-30 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796189', 'tblTempUsageDetail_20' ) start [2025-03-30 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796189', 'tblTempUsageDetail_20' ) end [2025-03-30 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:30:25] Production.INFO: ==29388== Releasing lock... [2025-03-30 12:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:30:25] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:31:06 [end_date_ymd] => 2025-03-30 12:31:06 [RateCDR] => 1 ) [2025-03-30 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:31:06' and `end` < '2025-03-30 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:31:18] Production.INFO: count ==1331 [2025-03-30 12:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:31:06 - End Time 2025-03-30 12:31:06 [2025-03-30 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796195', 'tblTempUsageDetail_20' ) start [2025-03-30 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796195', 'tblTempUsageDetail_20' ) end [2025-03-30 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796195', 'tblTempVendorCDR_20' ) start [2025-03-30 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796195', 'tblTempVendorCDR_20' ) end [2025-03-30 12:31:19] Production.INFO: ProcessCDR(1,14796195,1,1,2) [2025-03-30 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796195', 'tblTempUsageDetail_20' ) start [2025-03-30 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796195', 'tblTempUsageDetail_20' ) end [2025-03-30 12:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:31:24] Production.INFO: ==29469== Releasing lock... [2025-03-30 12:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:31:24] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:32:05 [end_date_ymd] => 2025-03-30 12:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:32:05' and `end` < '2025-03-30 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-03-30 12:32:18] Production.INFO: count ==1330 [2025-03-30 12:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:32:05 - End Time 2025-03-30 12:32:05 [2025-03-30 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796200', 'tblTempUsageDetail_20' ) start [2025-03-30 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796200', 'tblTempUsageDetail_20' ) end [2025-03-30 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796200', 'tblTempVendorCDR_20' ) start [2025-03-30 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796200', 'tblTempVendorCDR_20' ) end [2025-03-30 12:32:19] Production.INFO: ProcessCDR(1,14796200,1,1,2) [2025-03-30 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796200', 'tblTempUsageDetail_20' ) start [2025-03-30 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796200', 'tblTempUsageDetail_20' ) end [2025-03-30 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:32:22] Production.INFO: ==29566== Releasing lock... [2025-03-30 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:32:22] Production.INFO: 38 MB #Memory Used# [2025-03-30 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:33:05 [end_date_ymd] => 2025-03-30 12:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:33:05' and `end` < '2025-03-30 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-03-30 12:33:18] Production.INFO: count ==1332 [2025-03-30 12:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:33:05 - End Time 2025-03-30 12:33:05 [2025-03-30 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796205', 'tblTempUsageDetail_20' ) start [2025-03-30 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796205', 'tblTempUsageDetail_20' ) end [2025-03-30 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796205', 'tblTempVendorCDR_20' ) start [2025-03-30 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796205', 'tblTempVendorCDR_20' ) end [2025-03-30 12:33:19] Production.INFO: ProcessCDR(1,14796205,1,1,2) [2025-03-30 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796205', 'tblTempUsageDetail_20' ) start [2025-03-30 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796205', 'tblTempUsageDetail_20' ) end [2025-03-30 12:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:33:24] Production.INFO: ==29641== Releasing lock... [2025-03-30 12:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:33:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-30 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:34:05 [end_date_ymd] => 2025-03-30 12:34:05 [RateCDR] => 1 ) [2025-03-30 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:34:05' and `end` < '2025-03-30 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:34:18] Production.INFO: count ==1339 [2025-03-30 12:34:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:34:05 - End Time 2025-03-30 12:34:05 [2025-03-30 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796210', 'tblTempUsageDetail_20' ) start [2025-03-30 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796210', 'tblTempUsageDetail_20' ) end [2025-03-30 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796210', 'tblTempVendorCDR_20' ) start [2025-03-30 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796210', 'tblTempVendorCDR_20' ) end [2025-03-30 12:34:18] Production.INFO: ProcessCDR(1,14796210,1,1,2) [2025-03-30 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796210', 'tblTempUsageDetail_20' ) start [2025-03-30 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796210', 'tblTempUsageDetail_20' ) end [2025-03-30 12:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:34:22] Production.INFO: ==29713== Releasing lock... [2025-03-30 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:34:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-30 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:35:05 [end_date_ymd] => 2025-03-30 12:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:35:05' and `end` < '2025-03-30 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-03-30 12:35:18] Production.INFO: count ==1339 [2025-03-30 12:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:35:05 - End Time 2025-03-30 12:35:05 [2025-03-30 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796215', 'tblTempUsageDetail_20' ) start [2025-03-30 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796215', 'tblTempUsageDetail_20' ) end [2025-03-30 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796215', 'tblTempVendorCDR_20' ) start [2025-03-30 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796215', 'tblTempVendorCDR_20' ) end [2025-03-30 12:35:19] Production.INFO: ProcessCDR(1,14796215,1,1,2) [2025-03-30 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796215', 'tblTempUsageDetail_20' ) start [2025-03-30 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796215', 'tblTempUsageDetail_20' ) end [2025-03-30 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:35:22] Production.INFO: ==29792== Releasing lock... [2025-03-30 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:35:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-30 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:36:05 [end_date_ymd] => 2025-03-30 12:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:36:05' and `end` < '2025-03-30 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-03-30 12:36:17] Production.INFO: count ==1341 [2025-03-30 12:36:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:36:05 - End Time 2025-03-30 12:36:05 [2025-03-30 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796220', 'tblTempUsageDetail_20' ) start [2025-03-30 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796220', 'tblTempUsageDetail_20' ) end [2025-03-30 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796220', 'tblTempVendorCDR_20' ) start [2025-03-30 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796220', 'tblTempVendorCDR_20' ) end [2025-03-30 12:36:18] Production.INFO: ProcessCDR(1,14796220,1,1,2) [2025-03-30 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796220', 'tblTempUsageDetail_20' ) start [2025-03-30 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796220', 'tblTempUsageDetail_20' ) end [2025-03-30 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:36:22] Production.INFO: ==29867== Releasing lock... [2025-03-30 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:36:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-30 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:37:05 [end_date_ymd] => 2025-03-30 12:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:37:05' and `end` < '2025-03-30 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-03-30 12:37:18] Production.INFO: count ==1523 [2025-03-30 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:37:05 - End Time 2025-03-30 12:37:05 [2025-03-30 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796225', 'tblTempUsageDetail_20' ) start [2025-03-30 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796225', 'tblTempUsageDetail_20' ) end [2025-03-30 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796225', 'tblTempVendorCDR_20' ) start [2025-03-30 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796225', 'tblTempVendorCDR_20' ) end [2025-03-30 12:37:18] Production.INFO: ProcessCDR(1,14796225,1,1,2) [2025-03-30 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796225', 'tblTempUsageDetail_20' ) start [2025-03-30 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796225', 'tblTempUsageDetail_20' ) end [2025-03-30 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:37:22] Production.INFO: ==29939== Releasing lock... [2025-03-30 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:37:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-30 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:38:06 [end_date_ymd] => 2025-03-30 12:38:06 [RateCDR] => 1 ) [2025-03-30 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:38:06' and `end` < '2025-03-30 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:38:19] Production.INFO: count ==1524 [2025-03-30 12:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:38:06 - End Time 2025-03-30 12:38:06 [2025-03-30 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796230', 'tblTempUsageDetail_20' ) start [2025-03-30 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796230', 'tblTempUsageDetail_20' ) end [2025-03-30 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796230', 'tblTempVendorCDR_20' ) start [2025-03-30 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796230', 'tblTempVendorCDR_20' ) end [2025-03-30 12:38:19] Production.INFO: ProcessCDR(1,14796230,1,1,2) [2025-03-30 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796230', 'tblTempUsageDetail_20' ) start [2025-03-30 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796230', 'tblTempUsageDetail_20' ) end [2025-03-30 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:38:23] Production.INFO: ==30015== Releasing lock... [2025-03-30 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:38:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-30 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:39:05 [end_date_ymd] => 2025-03-30 12:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:39:05' and `end` < '2025-03-30 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-03-30 12:39:18] Production.INFO: count ==1531 [2025-03-30 12:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:39:05 - End Time 2025-03-30 12:39:05 [2025-03-30 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796235', 'tblTempUsageDetail_20' ) start [2025-03-30 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796235', 'tblTempUsageDetail_20' ) end [2025-03-30 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796235', 'tblTempVendorCDR_20' ) start [2025-03-30 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796235', 'tblTempVendorCDR_20' ) end [2025-03-30 12:39:19] Production.INFO: ProcessCDR(1,14796235,1,1,2) [2025-03-30 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796235', 'tblTempUsageDetail_20' ) start [2025-03-30 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796235', 'tblTempUsageDetail_20' ) end [2025-03-30 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:39:22] Production.INFO: ==30093== Releasing lock... [2025-03-30 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:39:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-30 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:40:06 [end_date_ymd] => 2025-03-30 12:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:40:06' and `end` < '2025-03-30 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-03-30 12:40:19] Production.INFO: count ==1536 [2025-03-30 12:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 09:40:06 - End Time 2025-03-30 12:40:06 [2025-03-30 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796241', 'tblTempUsageDetail_20' ) start [2025-03-30 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796241', 'tblTempUsageDetail_20' ) end [2025-03-30 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796241', 'tblTempVendorCDR_20' ) start [2025-03-30 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796241', 'tblTempVendorCDR_20' ) end [2025-03-30 12:40:20] Production.INFO: ProcessCDR(1,14796241,1,1,2) [2025-03-30 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796241', 'tblTempUsageDetail_20' ) start [2025-03-30 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796241', 'tblTempUsageDetail_20' ) end [2025-03-30 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:40:23] Production.INFO: ==30169== Releasing lock... [2025-03-30 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-30 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:41:05 [end_date_ymd] => 2025-03-30 12:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:41:05' and `end` < '2025-03-30 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-03-30 12:41:18] Production.INFO: count ==1590 [2025-03-30 12:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:41:05 - End Time 2025-03-30 12:41:05 [2025-03-30 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796246', 'tblTempUsageDetail_20' ) start [2025-03-30 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796246', 'tblTempUsageDetail_20' ) end [2025-03-30 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796246', 'tblTempVendorCDR_20' ) start [2025-03-30 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796246', 'tblTempVendorCDR_20' ) end [2025-03-30 12:41:18] Production.INFO: ProcessCDR(1,14796246,1,1,2) [2025-03-30 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796246', 'tblTempUsageDetail_20' ) start [2025-03-30 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796246', 'tblTempUsageDetail_20' ) end [2025-03-30 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:41:22] Production.INFO: ==30248== Releasing lock... [2025-03-30 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:41:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-30 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:42:06 [end_date_ymd] => 2025-03-30 12:42:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:42:06' and `end` < '2025-03-30 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-03-30 12:42:19] Production.INFO: count ==1592 [2025-03-30 12:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:42:06 - End Time 2025-03-30 12:42:06 [2025-03-30 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796251', 'tblTempUsageDetail_20' ) start [2025-03-30 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796251', 'tblTempUsageDetail_20' ) end [2025-03-30 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796251', 'tblTempVendorCDR_20' ) start [2025-03-30 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796251', 'tblTempVendorCDR_20' ) end [2025-03-30 12:42:19] Production.INFO: ProcessCDR(1,14796251,1,1,2) [2025-03-30 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796251', 'tblTempUsageDetail_20' ) start [2025-03-30 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796251', 'tblTempUsageDetail_20' ) end [2025-03-30 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:42:24] Production.INFO: ==30318== Releasing lock... [2025-03-30 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:42:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:43:05 [end_date_ymd] => 2025-03-30 12:43:05 [RateCDR] => 1 ) [2025-03-30 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:43:05' and `end` < '2025-03-30 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:43:18] Production.INFO: count ==1599 [2025-03-30 12:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:43:05 - End Time 2025-03-30 12:43:05 [2025-03-30 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796256', 'tblTempUsageDetail_20' ) start [2025-03-30 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796256', 'tblTempUsageDetail_20' ) end [2025-03-30 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796256', 'tblTempVendorCDR_20' ) start [2025-03-30 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796256', 'tblTempVendorCDR_20' ) end [2025-03-30 12:43:19] Production.INFO: ProcessCDR(1,14796256,1,1,2) [2025-03-30 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796256', 'tblTempUsageDetail_20' ) start [2025-03-30 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796256', 'tblTempUsageDetail_20' ) end [2025-03-30 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:43:24] Production.INFO: ==30392== Releasing lock... [2025-03-30 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:43:24] Production.INFO: 40 MB #Memory Used# [2025-03-30 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:44:05 [end_date_ymd] => 2025-03-30 12:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:44:05' and `end` < '2025-03-30 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-03-30 12:44:18] Production.INFO: count ==1602 [2025-03-30 12:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:44:05 - End Time 2025-03-30 12:44:05 [2025-03-30 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796261', 'tblTempUsageDetail_20' ) start [2025-03-30 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796261', 'tblTempUsageDetail_20' ) end [2025-03-30 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796261', 'tblTempVendorCDR_20' ) start [2025-03-30 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796261', 'tblTempVendorCDR_20' ) end [2025-03-30 12:44:19] Production.INFO: ProcessCDR(1,14796261,1,1,2) [2025-03-30 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796261', 'tblTempUsageDetail_20' ) start [2025-03-30 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796261', 'tblTempUsageDetail_20' ) end [2025-03-30 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:44:24] Production.INFO: ==30468== Releasing lock... [2025-03-30 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:45:05 [end_date_ymd] => 2025-03-30 12:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:45:05' and `end` < '2025-03-30 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-03-30 12:45:18] Production.INFO: count ==1622 [2025-03-30 12:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:45:05 - End Time 2025-03-30 12:45:05 [2025-03-30 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796266', 'tblTempUsageDetail_20' ) start [2025-03-30 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796266', 'tblTempUsageDetail_20' ) end [2025-03-30 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796266', 'tblTempVendorCDR_20' ) start [2025-03-30 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796266', 'tblTempVendorCDR_20' ) end [2025-03-30 12:45:19] Production.INFO: ProcessCDR(1,14796266,1,1,2) [2025-03-30 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796266', 'tblTempUsageDetail_20' ) start [2025-03-30 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796266', 'tblTempUsageDetail_20' ) end [2025-03-30 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:45:23] Production.INFO: ==30545== Releasing lock... [2025-03-30 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:46:06 [end_date_ymd] => 2025-03-30 12:46:06 [RateCDR] => 1 ) [2025-03-30 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:46:06' and `end` < '2025-03-30 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:46:18] Production.INFO: count ==1622 [2025-03-30 12:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:46:06 - End Time 2025-03-30 12:46:06 [2025-03-30 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796271', 'tblTempUsageDetail_20' ) start [2025-03-30 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796271', 'tblTempUsageDetail_20' ) end [2025-03-30 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796271', 'tblTempVendorCDR_20' ) start [2025-03-30 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796271', 'tblTempVendorCDR_20' ) end [2025-03-30 12:46:19] Production.INFO: ProcessCDR(1,14796271,1,1,2) [2025-03-30 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796271', 'tblTempUsageDetail_20' ) start [2025-03-30 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796271', 'tblTempUsageDetail_20' ) end [2025-03-30 12:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:46:22] Production.INFO: ==30659== Releasing lock... [2025-03-30 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:46:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:47:06 [end_date_ymd] => 2025-03-30 12:47:06 [RateCDR] => 1 ) [2025-03-30 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:47:06' and `end` < '2025-03-30 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:47:18] Production.INFO: count ==1626 [2025-03-30 12:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:47:06 - End Time 2025-03-30 12:47:06 [2025-03-30 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796276', 'tblTempUsageDetail_20' ) start [2025-03-30 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796276', 'tblTempUsageDetail_20' ) end [2025-03-30 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796276', 'tblTempVendorCDR_20' ) start [2025-03-30 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796276', 'tblTempVendorCDR_20' ) end [2025-03-30 12:47:19] Production.INFO: ProcessCDR(1,14796276,1,1,2) [2025-03-30 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796276', 'tblTempUsageDetail_20' ) start [2025-03-30 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796276', 'tblTempUsageDetail_20' ) end [2025-03-30 12:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:47:22] Production.INFO: ==30732== Releasing lock... [2025-03-30 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:47:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:48:06 [end_date_ymd] => 2025-03-30 12:48:06 [RateCDR] => 1 ) [2025-03-30 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:48:06' and `end` < '2025-03-30 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:48:19] Production.INFO: count ==1625 [2025-03-30 12:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:48:06 - End Time 2025-03-30 12:48:06 [2025-03-30 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796281', 'tblTempUsageDetail_20' ) start [2025-03-30 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796281', 'tblTempUsageDetail_20' ) end [2025-03-30 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796281', 'tblTempVendorCDR_20' ) start [2025-03-30 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796281', 'tblTempVendorCDR_20' ) end [2025-03-30 12:48:19] Production.INFO: ProcessCDR(1,14796281,1,1,2) [2025-03-30 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796281', 'tblTempUsageDetail_20' ) start [2025-03-30 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796281', 'tblTempUsageDetail_20' ) end [2025-03-30 12:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:48:23] Production.INFO: ==30809== Releasing lock... [2025-03-30 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:48:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-30 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:49:05 [end_date_ymd] => 2025-03-30 12:49:05 [RateCDR] => 1 ) [2025-03-30 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:49:05' and `end` < '2025-03-30 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:49:18] Production.INFO: count ==1627 [2025-03-30 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:49:05 - End Time 2025-03-30 12:49:05 [2025-03-30 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796286', 'tblTempUsageDetail_20' ) start [2025-03-30 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796286', 'tblTempUsageDetail_20' ) end [2025-03-30 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796286', 'tblTempVendorCDR_20' ) start [2025-03-30 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796286', 'tblTempVendorCDR_20' ) end [2025-03-30 12:49:18] Production.INFO: ProcessCDR(1,14796286,1,1,2) [2025-03-30 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796286', 'tblTempUsageDetail_20' ) start [2025-03-30 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796286', 'tblTempUsageDetail_20' ) end [2025-03-30 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:49:22] Production.INFO: ==30886== Releasing lock... [2025-03-30 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:49:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-30 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:50:06 [end_date_ymd] => 2025-03-30 12:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:50:06' and `end` < '2025-03-30 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-03-30 12:50:19] Production.INFO: count ==1808 [2025-03-30 12:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 09:50:06 - End Time 2025-03-30 12:50:06 [2025-03-30 12:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796292', 'tblTempUsageDetail_20' ) start [2025-03-30 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796292', 'tblTempUsageDetail_20' ) end [2025-03-30 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796292', 'tblTempVendorCDR_20' ) start [2025-03-30 12:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796292', 'tblTempVendorCDR_20' ) end [2025-03-30 12:50:20] Production.INFO: ProcessCDR(1,14796292,1,1,2) [2025-03-30 12:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796292', 'tblTempUsageDetail_20' ) start [2025-03-30 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796292', 'tblTempUsageDetail_20' ) end [2025-03-30 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:50:24] Production.INFO: ==30967== Releasing lock... [2025-03-30 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:50:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-30 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:51:05 [end_date_ymd] => 2025-03-30 12:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:51:05' and `end` < '2025-03-30 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-03-30 12:51:18] Production.INFO: count ==1832 [2025-03-30 12:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:51:05 - End Time 2025-03-30 12:51:05 [2025-03-30 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796297', 'tblTempUsageDetail_20' ) start [2025-03-30 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796297', 'tblTempUsageDetail_20' ) end [2025-03-30 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796297', 'tblTempVendorCDR_20' ) start [2025-03-30 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796297', 'tblTempVendorCDR_20' ) end [2025-03-30 12:51:18] Production.INFO: ProcessCDR(1,14796297,1,1,2) [2025-03-30 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796297', 'tblTempUsageDetail_20' ) start [2025-03-30 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796297', 'tblTempUsageDetail_20' ) end [2025-03-30 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:51:22] Production.INFO: ==31040== Releasing lock... [2025-03-30 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:51:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:52:05 [end_date_ymd] => 2025-03-30 12:52:05 [RateCDR] => 1 ) [2025-03-30 12: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-03-30 09:52:05' and `end` < '2025-03-30 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:52:18] Production.INFO: count ==1832 [2025-03-30 12:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:52:05 - End Time 2025-03-30 12:52:05 [2025-03-30 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796302', 'tblTempUsageDetail_20' ) start [2025-03-30 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796302', 'tblTempUsageDetail_20' ) end [2025-03-30 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796302', 'tblTempVendorCDR_20' ) start [2025-03-30 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796302', 'tblTempVendorCDR_20' ) end [2025-03-30 12:52:19] Production.INFO: ProcessCDR(1,14796302,1,1,2) [2025-03-30 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796302', 'tblTempUsageDetail_20' ) start [2025-03-30 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796302', 'tblTempUsageDetail_20' ) end [2025-03-30 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:52:22] Production.INFO: ==31111== Releasing lock... [2025-03-30 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:52:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:53:05 [end_date_ymd] => 2025-03-30 12:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:53:05' and `end` < '2025-03-30 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-03-30 12:53:18] Production.INFO: count ==1828 [2025-03-30 12:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:53:05 - End Time 2025-03-30 12:53:05 [2025-03-30 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796307', 'tblTempUsageDetail_20' ) start [2025-03-30 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796307', 'tblTempUsageDetail_20' ) end [2025-03-30 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796307', 'tblTempVendorCDR_20' ) start [2025-03-30 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796307', 'tblTempVendorCDR_20' ) end [2025-03-30 12:53:19] Production.INFO: ProcessCDR(1,14796307,1,1,2) [2025-03-30 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796307', 'tblTempUsageDetail_20' ) start [2025-03-30 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796307', 'tblTempUsageDetail_20' ) end [2025-03-30 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:53:22] Production.INFO: ==31184== Releasing lock... [2025-03-30 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:54:06 [end_date_ymd] => 2025-03-30 12:54:06 [RateCDR] => 1 ) [2025-03-30 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:54:06' and `end` < '2025-03-30 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:54:18] Production.INFO: count ==1824 [2025-03-30 12:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:54:06 - End Time 2025-03-30 12:54:06 [2025-03-30 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796312', 'tblTempUsageDetail_20' ) start [2025-03-30 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796312', 'tblTempUsageDetail_20' ) end [2025-03-30 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796312', 'tblTempVendorCDR_20' ) start [2025-03-30 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796312', 'tblTempVendorCDR_20' ) end [2025-03-30 12:54:19] Production.INFO: ProcessCDR(1,14796312,1,1,2) [2025-03-30 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796312', 'tblTempUsageDetail_20' ) start [2025-03-30 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796312', 'tblTempUsageDetail_20' ) end [2025-03-30 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:54:22] Production.INFO: ==31260== Releasing lock... [2025-03-30 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:54:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:55:05 [end_date_ymd] => 2025-03-30 12:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:55:05' and `end` < '2025-03-30 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-03-30 12:55:18] Production.INFO: count ==1824 [2025-03-30 12:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:55:05 - End Time 2025-03-30 12:55:05 [2025-03-30 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796317', 'tblTempUsageDetail_20' ) start [2025-03-30 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796317', 'tblTempUsageDetail_20' ) end [2025-03-30 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796317', 'tblTempVendorCDR_20' ) start [2025-03-30 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796317', 'tblTempVendorCDR_20' ) end [2025-03-30 12:55:19] Production.INFO: ProcessCDR(1,14796317,1,1,2) [2025-03-30 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796317', 'tblTempUsageDetail_20' ) start [2025-03-30 12:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796317', 'tblTempUsageDetail_20' ) end [2025-03-30 12:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:55:24] Production.INFO: ==31330== Releasing lock... [2025-03-30 12:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:55:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:56:05 [end_date_ymd] => 2025-03-30 12:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:56:05' and `end` < '2025-03-30 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-03-30 12:56:18] Production.INFO: count ==1824 [2025-03-30 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:56:05 - End Time 2025-03-30 12:56:05 [2025-03-30 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796322', 'tblTempUsageDetail_20' ) start [2025-03-30 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796322', 'tblTempUsageDetail_20' ) end [2025-03-30 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796322', 'tblTempVendorCDR_20' ) start [2025-03-30 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796322', 'tblTempVendorCDR_20' ) end [2025-03-30 12:56:18] Production.INFO: ProcessCDR(1,14796322,1,1,2) [2025-03-30 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796322', 'tblTempUsageDetail_20' ) start [2025-03-30 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796322', 'tblTempUsageDetail_20' ) end [2025-03-30 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:56:22] Production.INFO: ==31404== Releasing lock... [2025-03-30 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:56:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:57:05 [end_date_ymd] => 2025-03-30 12:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 09:57:05' and `end` < '2025-03-30 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-03-30 12:57:18] Production.INFO: count ==1824 [2025-03-30 12:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:57:05 - End Time 2025-03-30 12:57:05 [2025-03-30 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796327', 'tblTempUsageDetail_20' ) start [2025-03-30 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796327', 'tblTempUsageDetail_20' ) end [2025-03-30 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796327', 'tblTempVendorCDR_20' ) start [2025-03-30 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796327', 'tblTempVendorCDR_20' ) end [2025-03-30 12:57:19] Production.INFO: ProcessCDR(1,14796327,1,1,2) [2025-03-30 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796327', 'tblTempUsageDetail_20' ) start [2025-03-30 12:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796327', 'tblTempUsageDetail_20' ) end [2025-03-30 12:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:57:24] Production.INFO: ==31477== Releasing lock... [2025-03-30 12:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:57:24] Production.INFO: 42 MB #Memory Used# [2025-03-30 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:58:05 [end_date_ymd] => 2025-03-30 12:58:05 [RateCDR] => 1 ) [2025-03-30 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:58:05' and `end` < '2025-03-30 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:58:18] Production.INFO: count ==1825 [2025-03-30 12:58:18] Production.ERROR: pbx CDR StartTime 2025-03-30 09:58:05 - End Time 2025-03-30 12:58:05 [2025-03-30 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796332', 'tblTempUsageDetail_20' ) start [2025-03-30 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796332', 'tblTempUsageDetail_20' ) end [2025-03-30 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796332', 'tblTempVendorCDR_20' ) start [2025-03-30 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796332', 'tblTempVendorCDR_20' ) end [2025-03-30 12:58:18] Production.INFO: ProcessCDR(1,14796332,1,1,2) [2025-03-30 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796332', 'tblTempUsageDetail_20' ) start [2025-03-30 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796332', 'tblTempUsageDetail_20' ) end [2025-03-30 12:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:58:24] Production.INFO: ==31551== Releasing lock... [2025-03-30 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:58:24] Production.INFO: 42 MB #Memory Used# [2025-03-30 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 09:59:05 [end_date_ymd] => 2025-03-30 12:59:05 [RateCDR] => 1 ) [2025-03-30 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 09:59:05' and `end` < '2025-03-30 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 12:59:18] Production.INFO: count ==1825 [2025-03-30 12:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 09:59:05 - End Time 2025-03-30 12:59:05 [2025-03-30 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796337', 'tblTempUsageDetail_20' ) start [2025-03-30 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796337', 'tblTempUsageDetail_20' ) end [2025-03-30 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796337', 'tblTempVendorCDR_20' ) start [2025-03-30 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796337', 'tblTempVendorCDR_20' ) end [2025-03-30 12:59:19] Production.INFO: ProcessCDR(1,14796337,1,1,2) [2025-03-30 12:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796337', 'tblTempUsageDetail_20' ) start [2025-03-30 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796337', 'tblTempUsageDetail_20' ) end [2025-03-30 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 12:59:22] Production.INFO: ==31626== Releasing lock... [2025-03-30 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 12:59:22] Production.INFO: 42 MB #Memory Used# [2025-03-30 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:00:06 [end_date_ymd] => 2025-03-30 13:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:00:06' and `end` < '2025-03-30 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-03-30 13:00:19] Production.INFO: count ==1833 [2025-03-30 13:00:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:00:06 - End Time 2025-03-30 13:00:06 [2025-03-30 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796343', 'tblTempUsageDetail_20' ) start [2025-03-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796343', 'tblTempUsageDetail_20' ) end [2025-03-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796343', 'tblTempVendorCDR_20' ) start [2025-03-30 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796343', 'tblTempVendorCDR_20' ) end [2025-03-30 13:00:20] Production.INFO: ProcessCDR(1,14796343,1,1,2) [2025-03-30 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796343', 'tblTempUsageDetail_20' ) start [2025-03-30 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796343', 'tblTempUsageDetail_20' ) end [2025-03-30 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:00:23] Production.INFO: ==31703== Releasing lock... [2025-03-30 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:00:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-30 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:01:05 [end_date_ymd] => 2025-03-30 13:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:01:05' and `end` < '2025-03-30 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-03-30 13:01:18] Production.INFO: count ==1874 [2025-03-30 13:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:01:05 - End Time 2025-03-30 13:01:05 [2025-03-30 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796348', 'tblTempUsageDetail_20' ) start [2025-03-30 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796348', 'tblTempUsageDetail_20' ) end [2025-03-30 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796348', 'tblTempVendorCDR_20' ) start [2025-03-30 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796348', 'tblTempVendorCDR_20' ) end [2025-03-30 13:01:19] Production.INFO: ProcessCDR(1,14796348,1,1,2) [2025-03-30 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796348', 'tblTempUsageDetail_20' ) start [2025-03-30 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796348', 'tblTempUsageDetail_20' ) end [2025-03-30 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:01:23] Production.INFO: ==31834== Releasing lock... [2025-03-30 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:01:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:02:05 [end_date_ymd] => 2025-03-30 13:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:02:05' and `end` < '2025-03-30 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-03-30 13:02:17] Production.INFO: count ==1880 [2025-03-30 13:02:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:02:05 - End Time 2025-03-30 13:02:05 [2025-03-30 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796353', 'tblTempUsageDetail_20' ) start [2025-03-30 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796353', 'tblTempUsageDetail_20' ) end [2025-03-30 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796353', 'tblTempVendorCDR_20' ) start [2025-03-30 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796353', 'tblTempVendorCDR_20' ) end [2025-03-30 13:02:19] Production.INFO: ProcessCDR(1,14796353,1,1,2) [2025-03-30 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796353', 'tblTempUsageDetail_20' ) start [2025-03-30 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796353', 'tblTempUsageDetail_20' ) end [2025-03-30 13:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:02:24] Production.INFO: ==31906== Releasing lock... [2025-03-30 13:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:02:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:03:06 [end_date_ymd] => 2025-03-30 13:03:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:03:06' and `end` < '2025-03-30 13: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-03-30 13:03:18] Production.INFO: count ==1884 [2025-03-30 13:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:03:06 - End Time 2025-03-30 13:03:06 [2025-03-30 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796358', 'tblTempUsageDetail_20' ) start [2025-03-30 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796358', 'tblTempUsageDetail_20' ) end [2025-03-30 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796358', 'tblTempVendorCDR_20' ) start [2025-03-30 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796358', 'tblTempVendorCDR_20' ) end [2025-03-30 13:03:19] Production.INFO: ProcessCDR(1,14796358,1,1,2) [2025-03-30 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796358', 'tblTempUsageDetail_20' ) start [2025-03-30 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796358', 'tblTempUsageDetail_20' ) end [2025-03-30 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:03:25] Production.INFO: ==31981== Releasing lock... [2025-03-30 13:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:03:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:04:05 [end_date_ymd] => 2025-03-30 13:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:04:05' and `end` < '2025-03-30 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-03-30 13:04:18] Production.INFO: count ==1889 [2025-03-30 13:04:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:04:05 - End Time 2025-03-30 13:04:05 [2025-03-30 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796363', 'tblTempUsageDetail_20' ) start [2025-03-30 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796363', 'tblTempUsageDetail_20' ) end [2025-03-30 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796363', 'tblTempVendorCDR_20' ) start [2025-03-30 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796363', 'tblTempVendorCDR_20' ) end [2025-03-30 13:04:18] Production.INFO: ProcessCDR(1,14796363,1,1,2) [2025-03-30 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796363', 'tblTempUsageDetail_20' ) start [2025-03-30 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796363', 'tblTempUsageDetail_20' ) end [2025-03-30 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:04:24] Production.INFO: ==32052== Releasing lock... [2025-03-30 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:04:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:05:05 [end_date_ymd] => 2025-03-30 13:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:05:05' and `end` < '2025-03-30 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-03-30 13:05:18] Production.INFO: count ==1894 [2025-03-30 13:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:05:05 - End Time 2025-03-30 13:05:05 [2025-03-30 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796368', 'tblTempUsageDetail_20' ) start [2025-03-30 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796368', 'tblTempUsageDetail_20' ) end [2025-03-30 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796368', 'tblTempVendorCDR_20' ) start [2025-03-30 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796368', 'tblTempVendorCDR_20' ) end [2025-03-30 13:05:19] Production.INFO: ProcessCDR(1,14796368,1,1,2) [2025-03-30 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796368', 'tblTempUsageDetail_20' ) start [2025-03-30 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796368', 'tblTempUsageDetail_20' ) end [2025-03-30 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:05:24] Production.INFO: ==32131== Releasing lock... [2025-03-30 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:05:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:06:06 [end_date_ymd] => 2025-03-30 13:06:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:06:06' and `end` < '2025-03-30 13: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-03-30 13:06:18] Production.INFO: count ==1904 [2025-03-30 13:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:06:06 - End Time 2025-03-30 13:06:06 [2025-03-30 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796373', 'tblTempUsageDetail_20' ) start [2025-03-30 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796373', 'tblTempUsageDetail_20' ) end [2025-03-30 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796373', 'tblTempVendorCDR_20' ) start [2025-03-30 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796373', 'tblTempVendorCDR_20' ) end [2025-03-30 13:06:19] Production.INFO: ProcessCDR(1,14796373,1,1,2) [2025-03-30 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796373', 'tblTempUsageDetail_20' ) start [2025-03-30 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796373', 'tblTempUsageDetail_20' ) end [2025-03-30 13:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:06:24] Production.INFO: ==32204== Releasing lock... [2025-03-30 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:06:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:07:05 [end_date_ymd] => 2025-03-30 13:07:05 [RateCDR] => 1 ) [2025-03-30 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:07:05' and `end` < '2025-03-30 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:07:18] Production.INFO: count ==1906 [2025-03-30 13:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:07:05 - End Time 2025-03-30 13:07:05 [2025-03-30 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796378', 'tblTempUsageDetail_20' ) start [2025-03-30 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796378', 'tblTempUsageDetail_20' ) end [2025-03-30 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796378', 'tblTempVendorCDR_20' ) start [2025-03-30 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796378', 'tblTempVendorCDR_20' ) end [2025-03-30 13:07:19] Production.INFO: ProcessCDR(1,14796378,1,1,2) [2025-03-30 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796378', 'tblTempUsageDetail_20' ) start [2025-03-30 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796378', 'tblTempUsageDetail_20' ) end [2025-03-30 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:07:24] Production.INFO: ==32279== Releasing lock... [2025-03-30 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:07:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:08:05 [end_date_ymd] => 2025-03-30 13:08:05 [RateCDR] => 1 ) [2025-03-30 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:08:05' and `end` < '2025-03-30 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:08:18] Production.INFO: count ==1908 [2025-03-30 13:08:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:08:05 - End Time 2025-03-30 13:08:05 [2025-03-30 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796383', 'tblTempUsageDetail_20' ) start [2025-03-30 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796383', 'tblTempUsageDetail_20' ) end [2025-03-30 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796383', 'tblTempVendorCDR_20' ) start [2025-03-30 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796383', 'tblTempVendorCDR_20' ) end [2025-03-30 13:08:19] Production.INFO: ProcessCDR(1,14796383,1,1,2) [2025-03-30 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796383', 'tblTempUsageDetail_20' ) start [2025-03-30 13:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796383', 'tblTempUsageDetail_20' ) end [2025-03-30 13:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:08:23] Production.INFO: ==32353== Releasing lock... [2025-03-30 13:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:08:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:09:05 [end_date_ymd] => 2025-03-30 13:09:05 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:09:05' and `end` < '2025-03-30 13: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-03-30 13:09:18] Production.INFO: count ==1911 [2025-03-30 13:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:09:05 - End Time 2025-03-30 13:09:05 [2025-03-30 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796388', 'tblTempUsageDetail_20' ) start [2025-03-30 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796388', 'tblTempUsageDetail_20' ) end [2025-03-30 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796388', 'tblTempVendorCDR_20' ) start [2025-03-30 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796388', 'tblTempVendorCDR_20' ) end [2025-03-30 13:09:19] Production.INFO: ProcessCDR(1,14796388,1,1,2) [2025-03-30 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796388', 'tblTempUsageDetail_20' ) start [2025-03-30 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796388', 'tblTempUsageDetail_20' ) end [2025-03-30 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:09:24] Production.INFO: ==32432== Releasing lock... [2025-03-30 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:09:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:10:06 [end_date_ymd] => 2025-03-30 13:10:06 [RateCDR] => 1 ) [2025-03-30 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:10:06' and `end` < '2025-03-30 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:10:19] Production.INFO: count ==1920 [2025-03-30 13:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:10:06 - End Time 2025-03-30 13:10:06 [2025-03-30 13:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796393', 'tblTempUsageDetail_20' ) start [2025-03-30 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796393', 'tblTempUsageDetail_20' ) end [2025-03-30 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796393', 'tblTempVendorCDR_20' ) start [2025-03-30 13:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796393', 'tblTempVendorCDR_20' ) end [2025-03-30 13:10:20] Production.INFO: ProcessCDR(1,14796393,1,1,2) [2025-03-30 13:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796393', 'tblTempUsageDetail_20' ) start [2025-03-30 13:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796393', 'tblTempUsageDetail_20' ) end [2025-03-30 13:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:10:25] Production.INFO: ==32505== Releasing lock... [2025-03-30 13:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:10:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:11:05 [end_date_ymd] => 2025-03-30 13:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:11:05' and `end` < '2025-03-30 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-03-30 13:11:18] Production.INFO: count ==1915 [2025-03-30 13:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:11:05 - End Time 2025-03-30 13:11:05 [2025-03-30 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796399', 'tblTempUsageDetail_20' ) start [2025-03-30 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796399', 'tblTempUsageDetail_20' ) end [2025-03-30 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796399', 'tblTempVendorCDR_20' ) start [2025-03-30 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796399', 'tblTempVendorCDR_20' ) end [2025-03-30 13:11:18] Production.INFO: ProcessCDR(1,14796399,1,1,2) [2025-03-30 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796399', 'tblTempUsageDetail_20' ) start [2025-03-30 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796399', 'tblTempUsageDetail_20' ) end [2025-03-30 13:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:11:23] Production.INFO: ==32580== Releasing lock... [2025-03-30 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:11:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:12:06 [end_date_ymd] => 2025-03-30 13:12:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:12:06' and `end` < '2025-03-30 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:12:19] Production.INFO: count ==1907 [2025-03-30 13:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:12:06 - End Time 2025-03-30 13:12:06 [2025-03-30 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796404', 'tblTempUsageDetail_20' ) start [2025-03-30 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796404', 'tblTempUsageDetail_20' ) end [2025-03-30 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796404', 'tblTempVendorCDR_20' ) start [2025-03-30 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796404', 'tblTempVendorCDR_20' ) end [2025-03-30 13:12:19] Production.INFO: ProcessCDR(1,14796404,1,1,2) [2025-03-30 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796404', 'tblTempUsageDetail_20' ) start [2025-03-30 13:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796404', 'tblTempUsageDetail_20' ) end [2025-03-30 13:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:12:24] Production.INFO: ==32655== Releasing lock... [2025-03-30 13:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:12:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:13:05 [end_date_ymd] => 2025-03-30 13:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:13:05' and `end` < '2025-03-30 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-03-30 13:13:18] Production.INFO: count ==1907 [2025-03-30 13:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:13:05 - End Time 2025-03-30 13:13:05 [2025-03-30 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796409', 'tblTempUsageDetail_20' ) start [2025-03-30 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796409', 'tblTempUsageDetail_20' ) end [2025-03-30 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796409', 'tblTempVendorCDR_20' ) start [2025-03-30 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796409', 'tblTempVendorCDR_20' ) end [2025-03-30 13:13:18] Production.INFO: ProcessCDR(1,14796409,1,1,2) [2025-03-30 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796409', 'tblTempUsageDetail_20' ) start [2025-03-30 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796409', 'tblTempUsageDetail_20' ) end [2025-03-30 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:13:23] Production.INFO: ==32727== Releasing lock... [2025-03-30 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:13:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:14:05 [end_date_ymd] => 2025-03-30 13:14:05 [RateCDR] => 1 ) [2025-03-30 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:14:05' and `end` < '2025-03-30 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:14:18] Production.INFO: count ==1910 [2025-03-30 13:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:14:05 - End Time 2025-03-30 13:14:05 [2025-03-30 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796414', 'tblTempUsageDetail_20' ) start [2025-03-30 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796414', 'tblTempUsageDetail_20' ) end [2025-03-30 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796414', 'tblTempVendorCDR_20' ) start [2025-03-30 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796414', 'tblTempVendorCDR_20' ) end [2025-03-30 13:14:19] Production.INFO: ProcessCDR(1,14796414,1,1,2) [2025-03-30 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796414', 'tblTempUsageDetail_20' ) start [2025-03-30 13:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796414', 'tblTempUsageDetail_20' ) end [2025-03-30 13:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:14:24] Production.INFO: ==352== Releasing lock... [2025-03-30 13:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:14:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:15:05 [end_date_ymd] => 2025-03-30 13:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:15:05' and `end` < '2025-03-30 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-03-30 13:15:18] Production.INFO: count ==1910 [2025-03-30 13:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:15:05 - End Time 2025-03-30 13:15:05 [2025-03-30 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796419', 'tblTempUsageDetail_20' ) start [2025-03-30 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796419', 'tblTempUsageDetail_20' ) end [2025-03-30 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796419', 'tblTempVendorCDR_20' ) start [2025-03-30 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796419', 'tblTempVendorCDR_20' ) end [2025-03-30 13:15:19] Production.INFO: ProcessCDR(1,14796419,1,1,2) [2025-03-30 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796419', 'tblTempUsageDetail_20' ) start [2025-03-30 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796419', 'tblTempUsageDetail_20' ) end [2025-03-30 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:15:24] Production.INFO: ==427== Releasing lock... [2025-03-30 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:15:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:16:06 [end_date_ymd] => 2025-03-30 13:16:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:16:06' and `end` < '2025-03-30 13: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-03-30 13:16:19] Production.INFO: count ==1904 [2025-03-30 13:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:16:06 - End Time 2025-03-30 13:16:06 [2025-03-30 13:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796424', 'tblTempUsageDetail_20' ) start [2025-03-30 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796424', 'tblTempUsageDetail_20' ) end [2025-03-30 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796424', 'tblTempVendorCDR_20' ) start [2025-03-30 13:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796424', 'tblTempVendorCDR_20' ) end [2025-03-30 13:16:19] Production.INFO: ProcessCDR(1,14796424,1,1,2) [2025-03-30 13:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796424', 'tblTempUsageDetail_20' ) start [2025-03-30 13:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796424', 'tblTempUsageDetail_20' ) end [2025-03-30 13:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:16:24] Production.INFO: ==504== Releasing lock... [2025-03-30 13:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:16:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:17:05 [end_date_ymd] => 2025-03-30 13:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:17:05' and `end` < '2025-03-30 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-03-30 13:17:18] Production.INFO: count ==1915 [2025-03-30 13:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:17:05 - End Time 2025-03-30 13:17:05 [2025-03-30 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796429', 'tblTempUsageDetail_20' ) start [2025-03-30 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796429', 'tblTempUsageDetail_20' ) end [2025-03-30 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796429', 'tblTempVendorCDR_20' ) start [2025-03-30 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796429', 'tblTempVendorCDR_20' ) end [2025-03-30 13:17:18] Production.INFO: ProcessCDR(1,14796429,1,1,2) [2025-03-30 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796429', 'tblTempUsageDetail_20' ) start [2025-03-30 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796429', 'tblTempUsageDetail_20' ) end [2025-03-30 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:17:23] Production.INFO: ==624== Releasing lock... [2025-03-30 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:17:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:18:05 [end_date_ymd] => 2025-03-30 13:18:05 [RateCDR] => 1 ) [2025-03-30 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:18:05' and `end` < '2025-03-30 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-03-30 13:18:18] Production.INFO: count ==1923 [2025-03-30 13:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:18:05 - End Time 2025-03-30 13:18:05 [2025-03-30 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796434', 'tblTempUsageDetail_20' ) start [2025-03-30 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796434', 'tblTempUsageDetail_20' ) end [2025-03-30 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796434', 'tblTempVendorCDR_20' ) start [2025-03-30 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796434', 'tblTempVendorCDR_20' ) end [2025-03-30 13:18:19] Production.INFO: ProcessCDR(1,14796434,1,1,2) [2025-03-30 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796434', 'tblTempUsageDetail_20' ) start [2025-03-30 13:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796434', 'tblTempUsageDetail_20' ) end [2025-03-30 13:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:18:25] Production.INFO: ==737== Releasing lock... [2025-03-30 13:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:18:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:19:05 [end_date_ymd] => 2025-03-30 13:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:19:05' and `end` < '2025-03-30 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-03-30 13:19:17] Production.INFO: count ==1929 [2025-03-30 13:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:19:05 - End Time 2025-03-30 13:19:05 [2025-03-30 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796439', 'tblTempUsageDetail_20' ) start [2025-03-30 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796439', 'tblTempUsageDetail_20' ) end [2025-03-30 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796439', 'tblTempVendorCDR_20' ) start [2025-03-30 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796439', 'tblTempVendorCDR_20' ) end [2025-03-30 13:19:18] Production.INFO: ProcessCDR(1,14796439,1,1,2) [2025-03-30 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796439', 'tblTempUsageDetail_20' ) start [2025-03-30 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796439', 'tblTempUsageDetail_20' ) end [2025-03-30 13:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:19:24] Production.INFO: ==814== Releasing lock... [2025-03-30 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:19:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:20:06 [end_date_ymd] => 2025-03-30 13:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:20:06' and `end` < '2025-03-30 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-03-30 13:20:19] Production.INFO: count ==1939 [2025-03-30 13:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:20:06 - End Time 2025-03-30 13:20:06 [2025-03-30 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796444', 'tblTempUsageDetail_20' ) start [2025-03-30 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796444', 'tblTempUsageDetail_20' ) end [2025-03-30 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796444', 'tblTempVendorCDR_20' ) start [2025-03-30 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796444', 'tblTempVendorCDR_20' ) end [2025-03-30 13:20:20] Production.INFO: ProcessCDR(1,14796444,1,1,2) [2025-03-30 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796444', 'tblTempUsageDetail_20' ) start [2025-03-30 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796444', 'tblTempUsageDetail_20' ) end [2025-03-30 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:20:25] Production.INFO: ==895== Releasing lock... [2025-03-30 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:20:25] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:21:05 [end_date_ymd] => 2025-03-30 13:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:21:05' and `end` < '2025-03-30 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-03-30 13:21:17] Production.INFO: count ==1957 [2025-03-30 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:21:05 - End Time 2025-03-30 13:21:05 [2025-03-30 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796450', 'tblTempUsageDetail_20' ) start [2025-03-30 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796450', 'tblTempUsageDetail_20' ) end [2025-03-30 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796450', 'tblTempVendorCDR_20' ) start [2025-03-30 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796450', 'tblTempVendorCDR_20' ) end [2025-03-30 13:21:18] Production.INFO: ProcessCDR(1,14796450,1,1,2) [2025-03-30 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796450', 'tblTempUsageDetail_20' ) start [2025-03-30 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796450', 'tblTempUsageDetail_20' ) end [2025-03-30 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:21:23] Production.INFO: ==977== Releasing lock... [2025-03-30 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:21:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:22:05 [end_date_ymd] => 2025-03-30 13:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:22:05' and `end` < '2025-03-30 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-03-30 13:22:18] Production.INFO: count ==1960 [2025-03-30 13:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:22:05 - End Time 2025-03-30 13:22:05 [2025-03-30 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796455', 'tblTempUsageDetail_20' ) start [2025-03-30 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796455', 'tblTempUsageDetail_20' ) end [2025-03-30 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796455', 'tblTempVendorCDR_20' ) start [2025-03-30 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796455', 'tblTempVendorCDR_20' ) end [2025-03-30 13:22:19] Production.INFO: ProcessCDR(1,14796455,1,1,2) [2025-03-30 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796455', 'tblTempUsageDetail_20' ) start [2025-03-30 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796455', 'tblTempUsageDetail_20' ) end [2025-03-30 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:22:24] Production.INFO: ==1056== Releasing lock... [2025-03-30 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:22:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:23:05 [end_date_ymd] => 2025-03-30 13:23:05 [RateCDR] => 1 ) [2025-03-30 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:23:05' and `end` < '2025-03-30 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:23:18] Production.INFO: count ==1988 [2025-03-30 13:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:23:05 - End Time 2025-03-30 13:23:05 [2025-03-30 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796460', 'tblTempUsageDetail_20' ) start [2025-03-30 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796460', 'tblTempUsageDetail_20' ) end [2025-03-30 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796460', 'tblTempVendorCDR_20' ) start [2025-03-30 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796460', 'tblTempVendorCDR_20' ) end [2025-03-30 13:23:19] Production.INFO: ProcessCDR(1,14796460,1,1,2) [2025-03-30 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796460', 'tblTempUsageDetail_20' ) start [2025-03-30 13:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796460', 'tblTempUsageDetail_20' ) end [2025-03-30 13:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:23:24] Production.INFO: ==1142== Releasing lock... [2025-03-30 13:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:23:24] Production.INFO: 43 MB #Memory Used# [2025-03-30 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:24:06 [end_date_ymd] => 2025-03-30 13:24:06 [RateCDR] => 1 ) [2025-03-30 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:24:06' and `end` < '2025-03-30 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:24:18] Production.INFO: count ==1991 [2025-03-30 13:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:24:06 - End Time 2025-03-30 13:24:06 [2025-03-30 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796465', 'tblTempUsageDetail_20' ) start [2025-03-30 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796465', 'tblTempUsageDetail_20' ) end [2025-03-30 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796465', 'tblTempVendorCDR_20' ) start [2025-03-30 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796465', 'tblTempVendorCDR_20' ) end [2025-03-30 13:24:19] Production.INFO: ProcessCDR(1,14796465,1,1,2) [2025-03-30 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796465', 'tblTempUsageDetail_20' ) start [2025-03-30 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796465', 'tblTempUsageDetail_20' ) end [2025-03-30 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:24:24] Production.INFO: ==1287== Releasing lock... [2025-03-30 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:24:24] Production.INFO: 43 MB #Memory Used# [2025-03-30 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:25:06 [end_date_ymd] => 2025-03-30 13:25:06 [RateCDR] => 1 ) [2025-03-30 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:25:06' and `end` < '2025-03-30 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:25:19] Production.INFO: count ==1994 [2025-03-30 13:25:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:25:06 - End Time 2025-03-30 13:25:06 [2025-03-30 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796470', 'tblTempUsageDetail_20' ) start [2025-03-30 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796470', 'tblTempUsageDetail_20' ) end [2025-03-30 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796470', 'tblTempVendorCDR_20' ) start [2025-03-30 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796470', 'tblTempVendorCDR_20' ) end [2025-03-30 13:25:19] Production.INFO: ProcessCDR(1,14796470,1,1,2) [2025-03-30 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796470', 'tblTempUsageDetail_20' ) start [2025-03-30 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796470', 'tblTempUsageDetail_20' ) end [2025-03-30 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:25:25] Production.INFO: ==1419== Releasing lock... [2025-03-30 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:25:25] Production.INFO: 43 MB #Memory Used# [2025-03-30 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:26:05 [end_date_ymd] => 2025-03-30 13:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:26:05' and `end` < '2025-03-30 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-03-30 13:26:18] Production.INFO: count ==1995 [2025-03-30 13:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:26:05 - End Time 2025-03-30 13:26:05 [2025-03-30 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796475', 'tblTempUsageDetail_20' ) start [2025-03-30 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796475', 'tblTempUsageDetail_20' ) end [2025-03-30 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796475', 'tblTempVendorCDR_20' ) start [2025-03-30 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796475', 'tblTempVendorCDR_20' ) end [2025-03-30 13:26:19] Production.INFO: ProcessCDR(1,14796475,1,1,2) [2025-03-30 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796475', 'tblTempUsageDetail_20' ) start [2025-03-30 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796475', 'tblTempUsageDetail_20' ) end [2025-03-30 13:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:26:24] Production.INFO: ==1584== Releasing lock... [2025-03-30 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:26:24] Production.INFO: 43 MB #Memory Used# [2025-03-30 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:27:05 [end_date_ymd] => 2025-03-30 13:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:27:05' and `end` < '2025-03-30 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-03-30 13:27:18] Production.INFO: count ==1997 [2025-03-30 13:27:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:27:05 - End Time 2025-03-30 13:27:05 [2025-03-30 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796480', 'tblTempUsageDetail_20' ) start [2025-03-30 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796480', 'tblTempUsageDetail_20' ) end [2025-03-30 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796480', 'tblTempVendorCDR_20' ) start [2025-03-30 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796480', 'tblTempVendorCDR_20' ) end [2025-03-30 13:27:19] Production.INFO: ProcessCDR(1,14796480,1,1,2) [2025-03-30 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796480', 'tblTempUsageDetail_20' ) start [2025-03-30 13:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796480', 'tblTempUsageDetail_20' ) end [2025-03-30 13:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:27:24] Production.INFO: ==1716== Releasing lock... [2025-03-30 13:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:27:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:28:05 [end_date_ymd] => 2025-03-30 13:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:28:05' and `end` < '2025-03-30 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-03-30 13:28:18] Production.INFO: count ==2050 [2025-03-30 13:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:28:05 - End Time 2025-03-30 13:28:05 [2025-03-30 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796485', 'tblTempUsageDetail_20' ) start [2025-03-30 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796485', 'tblTempUsageDetail_20' ) end [2025-03-30 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796485', 'tblTempVendorCDR_20' ) start [2025-03-30 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796485', 'tblTempVendorCDR_20' ) end [2025-03-30 13:28:19] Production.INFO: ProcessCDR(1,14796485,1,1,2) [2025-03-30 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796485', 'tblTempUsageDetail_20' ) start [2025-03-30 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796485', 'tblTempUsageDetail_20' ) end [2025-03-30 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:28:24] Production.INFO: ==1848== Releasing lock... [2025-03-30 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:28:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:29:06 [end_date_ymd] => 2025-03-30 13:29:06 [RateCDR] => 1 ) [2025-03-30 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:29:06' and `end` < '2025-03-30 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:29:18] Production.INFO: count ==2052 [2025-03-30 13:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:29:06 - End Time 2025-03-30 13:29:06 [2025-03-30 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796490', 'tblTempUsageDetail_20' ) start [2025-03-30 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796490', 'tblTempUsageDetail_20' ) end [2025-03-30 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796490', 'tblTempVendorCDR_20' ) start [2025-03-30 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796490', 'tblTempVendorCDR_20' ) end [2025-03-30 13:29:19] Production.INFO: ProcessCDR(1,14796490,1,1,2) [2025-03-30 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796490', 'tblTempUsageDetail_20' ) start [2025-03-30 13:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796490', 'tblTempUsageDetail_20' ) end [2025-03-30 13:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:29:24] Production.INFO: ==1985== Releasing lock... [2025-03-30 13:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:29:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:30:06 [end_date_ymd] => 2025-03-30 13:30:06 [RateCDR] => 1 ) [2025-03-30 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:30:06' and `end` < '2025-03-30 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:30:19] Production.INFO: count ==2056 [2025-03-30 13:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:30:06 - End Time 2025-03-30 13:30:06 [2025-03-30 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796496', 'tblTempUsageDetail_20' ) start [2025-03-30 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796496', 'tblTempUsageDetail_20' ) end [2025-03-30 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796496', 'tblTempVendorCDR_20' ) start [2025-03-30 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796496', 'tblTempVendorCDR_20' ) end [2025-03-30 13:30:20] Production.INFO: ProcessCDR(1,14796496,1,1,2) [2025-03-30 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796496', 'tblTempUsageDetail_20' ) start [2025-03-30 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796496', 'tblTempUsageDetail_20' ) end [2025-03-30 13:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:30:25] Production.INFO: ==2123== Releasing lock... [2025-03-30 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:30:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:31:05 [end_date_ymd] => 2025-03-30 13:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:31:05' and `end` < '2025-03-30 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-03-30 13:31:17] Production.INFO: count ==2057 [2025-03-30 13:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:31:05 - End Time 2025-03-30 13:31:05 [2025-03-30 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796501', 'tblTempUsageDetail_20' ) start [2025-03-30 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796501', 'tblTempUsageDetail_20' ) end [2025-03-30 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796501', 'tblTempVendorCDR_20' ) start [2025-03-30 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796501', 'tblTempVendorCDR_20' ) end [2025-03-30 13:31:18] Production.INFO: ProcessCDR(1,14796501,1,1,2) [2025-03-30 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796501', 'tblTempUsageDetail_20' ) start [2025-03-30 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796501', 'tblTempUsageDetail_20' ) end [2025-03-30 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:31:23] Production.INFO: ==2254== Releasing lock... [2025-03-30 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:31:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:32:05 [end_date_ymd] => 2025-03-30 13:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:32:05' and `end` < '2025-03-30 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-03-30 13:32:17] Production.INFO: count ==2068 [2025-03-30 13:32:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:32:05 - End Time 2025-03-30 13:32:05 [2025-03-30 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796506', 'tblTempUsageDetail_20' ) start [2025-03-30 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796506', 'tblTempUsageDetail_20' ) end [2025-03-30 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796506', 'tblTempVendorCDR_20' ) start [2025-03-30 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796506', 'tblTempVendorCDR_20' ) end [2025-03-30 13:32:18] Production.INFO: ProcessCDR(1,14796506,1,1,2) [2025-03-30 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796506', 'tblTempUsageDetail_20' ) start [2025-03-30 13:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796506', 'tblTempUsageDetail_20' ) end [2025-03-30 13:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:32:24] Production.INFO: ==2426== Releasing lock... [2025-03-30 13:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:32:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:33:05 [end_date_ymd] => 2025-03-30 13:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:33:05' and `end` < '2025-03-30 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-03-30 13:33:17] Production.INFO: count ==2064 [2025-03-30 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:33:05 - End Time 2025-03-30 13:33:05 [2025-03-30 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796511', 'tblTempUsageDetail_20' ) start [2025-03-30 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796511', 'tblTempUsageDetail_20' ) end [2025-03-30 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796511', 'tblTempVendorCDR_20' ) start [2025-03-30 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796511', 'tblTempVendorCDR_20' ) end [2025-03-30 13:33:18] Production.INFO: ProcessCDR(1,14796511,1,1,2) [2025-03-30 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796511', 'tblTempUsageDetail_20' ) start [2025-03-30 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796511', 'tblTempUsageDetail_20' ) end [2025-03-30 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:33:22] Production.INFO: ==2516== Releasing lock... [2025-03-30 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:33:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:34:06 [end_date_ymd] => 2025-03-30 13:34:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:34:06' and `end` < '2025-03-30 13: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-03-30 13:34:19] Production.INFO: count ==2064 [2025-03-30 13:34:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:34:06 - End Time 2025-03-30 13:34:06 [2025-03-30 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796516', 'tblTempUsageDetail_20' ) start [2025-03-30 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796516', 'tblTempUsageDetail_20' ) end [2025-03-30 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796516', 'tblTempVendorCDR_20' ) start [2025-03-30 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796516', 'tblTempVendorCDR_20' ) end [2025-03-30 13:34:19] Production.INFO: ProcessCDR(1,14796516,1,1,2) [2025-03-30 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796516', 'tblTempUsageDetail_20' ) start [2025-03-30 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796516', 'tblTempUsageDetail_20' ) end [2025-03-30 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:34:23] Production.INFO: ==2597== Releasing lock... [2025-03-30 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:34:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:35:05 [end_date_ymd] => 2025-03-30 13:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:35:05' and `end` < '2025-03-30 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-03-30 13:35:18] Production.INFO: count ==2066 [2025-03-30 13:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:35:05 - End Time 2025-03-30 13:35:05 [2025-03-30 13:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796521', 'tblTempUsageDetail_20' ) start [2025-03-30 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796521', 'tblTempUsageDetail_20' ) end [2025-03-30 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796521', 'tblTempVendorCDR_20' ) start [2025-03-30 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796521', 'tblTempVendorCDR_20' ) end [2025-03-30 13:35:19] Production.INFO: ProcessCDR(1,14796521,1,1,2) [2025-03-30 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796521', 'tblTempUsageDetail_20' ) start [2025-03-30 13:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796521', 'tblTempUsageDetail_20' ) end [2025-03-30 13:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:35:23] Production.INFO: ==2674== Releasing lock... [2025-03-30 13:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:35:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:36:06 [end_date_ymd] => 2025-03-30 13:36:06 [RateCDR] => 1 ) [2025-03-30 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:36:06' and `end` < '2025-03-30 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:36:18] Production.INFO: count ==2090 [2025-03-30 13:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:36:06 - End Time 2025-03-30 13:36:06 [2025-03-30 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796526', 'tblTempUsageDetail_20' ) start [2025-03-30 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796526', 'tblTempUsageDetail_20' ) end [2025-03-30 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796526', 'tblTempVendorCDR_20' ) start [2025-03-30 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796526', 'tblTempVendorCDR_20' ) end [2025-03-30 13:36:19] Production.INFO: ProcessCDR(1,14796526,1,1,2) [2025-03-30 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796526', 'tblTempUsageDetail_20' ) start [2025-03-30 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796526', 'tblTempUsageDetail_20' ) end [2025-03-30 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:36:23] Production.INFO: ==2751== Releasing lock... [2025-03-30 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:36:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:37:05 [end_date_ymd] => 2025-03-30 13:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:37:05' and `end` < '2025-03-30 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-03-30 13:37:18] Production.INFO: count ==2170 [2025-03-30 13:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:37:05 - End Time 2025-03-30 13:37:05 [2025-03-30 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796531', 'tblTempUsageDetail_20' ) start [2025-03-30 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796531', 'tblTempUsageDetail_20' ) end [2025-03-30 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796531', 'tblTempVendorCDR_20' ) start [2025-03-30 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796531', 'tblTempVendorCDR_20' ) end [2025-03-30 13:37:19] Production.INFO: ProcessCDR(1,14796531,1,1,2) [2025-03-30 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796531', 'tblTempUsageDetail_20' ) start [2025-03-30 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796531', 'tblTempUsageDetail_20' ) end [2025-03-30 13:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:37:22] Production.INFO: ==2828== Releasing lock... [2025-03-30 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:37:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:38:05 [end_date_ymd] => 2025-03-30 13:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:38:05' and `end` < '2025-03-30 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-03-30 13:38:18] Production.INFO: count ==2173 [2025-03-30 13:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:38:05 - End Time 2025-03-30 13:38:05 [2025-03-30 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796536', 'tblTempUsageDetail_20' ) start [2025-03-30 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796536', 'tblTempUsageDetail_20' ) end [2025-03-30 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796536', 'tblTempVendorCDR_20' ) start [2025-03-30 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796536', 'tblTempVendorCDR_20' ) end [2025-03-30 13:38:19] Production.INFO: ProcessCDR(1,14796536,1,1,2) [2025-03-30 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796536', 'tblTempUsageDetail_20' ) start [2025-03-30 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796536', 'tblTempUsageDetail_20' ) end [2025-03-30 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:38:23] Production.INFO: ==2907== Releasing lock... [2025-03-30 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:38:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:39:05 [end_date_ymd] => 2025-03-30 13:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:39:05' and `end` < '2025-03-30 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-03-30 13:39:18] Production.INFO: count ==2183 [2025-03-30 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:39:05 - End Time 2025-03-30 13:39:05 [2025-03-30 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796541', 'tblTempUsageDetail_20' ) start [2025-03-30 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796541', 'tblTempUsageDetail_20' ) end [2025-03-30 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796541', 'tblTempVendorCDR_20' ) start [2025-03-30 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796541', 'tblTempVendorCDR_20' ) end [2025-03-30 13:39:19] Production.INFO: ProcessCDR(1,14796541,1,1,2) [2025-03-30 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796541', 'tblTempUsageDetail_20' ) start [2025-03-30 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796541', 'tblTempUsageDetail_20' ) end [2025-03-30 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:39:24] Production.INFO: ==2984== Releasing lock... [2025-03-30 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:39:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:40:06 [end_date_ymd] => 2025-03-30 13:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:40:06' and `end` < '2025-03-30 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-03-30 13:40:19] Production.INFO: count ==2192 [2025-03-30 13:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:40:06 - End Time 2025-03-30 13:40:06 [2025-03-30 13:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796547', 'tblTempUsageDetail_20' ) start [2025-03-30 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796547', 'tblTempUsageDetail_20' ) end [2025-03-30 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796547', 'tblTempVendorCDR_20' ) start [2025-03-30 13:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796547', 'tblTempVendorCDR_20' ) end [2025-03-30 13:40:20] Production.INFO: ProcessCDR(1,14796547,1,1,2) [2025-03-30 13:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796547', 'tblTempUsageDetail_20' ) start [2025-03-30 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796547', 'tblTempUsageDetail_20' ) end [2025-03-30 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:40:25] Production.INFO: ==3065== Releasing lock... [2025-03-30 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:40:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:41:05 [end_date_ymd] => 2025-03-30 13:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:41:05' and `end` < '2025-03-30 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-03-30 13:41:18] Production.INFO: count ==2224 [2025-03-30 13:41:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:41:05 - End Time 2025-03-30 13:41:05 [2025-03-30 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796552', 'tblTempUsageDetail_20' ) start [2025-03-30 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796552', 'tblTempUsageDetail_20' ) end [2025-03-30 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796552', 'tblTempVendorCDR_20' ) start [2025-03-30 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796552', 'tblTempVendorCDR_20' ) end [2025-03-30 13:41:19] Production.INFO: ProcessCDR(1,14796552,1,1,2) [2025-03-30 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796552', 'tblTempUsageDetail_20' ) start [2025-03-30 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796552', 'tblTempUsageDetail_20' ) end [2025-03-30 13:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:41:23] Production.INFO: ==3147== Releasing lock... [2025-03-30 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:41:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:42:06 [end_date_ymd] => 2025-03-30 13:42:06 [RateCDR] => 1 ) [2025-03-30 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:42:06' and `end` < '2025-03-30 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:42:19] Production.INFO: count ==2220 [2025-03-30 13:42:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:42:06 - End Time 2025-03-30 13:42:06 [2025-03-30 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796557', 'tblTempUsageDetail_20' ) start [2025-03-30 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796557', 'tblTempUsageDetail_20' ) end [2025-03-30 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796557', 'tblTempVendorCDR_20' ) start [2025-03-30 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796557', 'tblTempVendorCDR_20' ) end [2025-03-30 13:42:20] Production.INFO: ProcessCDR(1,14796557,1,1,2) [2025-03-30 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796557', 'tblTempUsageDetail_20' ) start [2025-03-30 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796557', 'tblTempUsageDetail_20' ) end [2025-03-30 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:42:23] Production.INFO: ==3221== Releasing lock... [2025-03-30 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:42:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:43:04 [end_date_ymd] => 2025-03-30 13:43:04 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:43:04' and `end` < '2025-03-30 13: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-03-30 13:43:17] Production.INFO: count ==2220 [2025-03-30 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:43:04 - End Time 2025-03-30 13:43:04 [2025-03-30 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796562', 'tblTempUsageDetail_20' ) start [2025-03-30 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796562', 'tblTempUsageDetail_20' ) end [2025-03-30 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796562', 'tblTempVendorCDR_20' ) start [2025-03-30 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796562', 'tblTempVendorCDR_20' ) end [2025-03-30 13:43:18] Production.INFO: ProcessCDR(1,14796562,1,1,2) [2025-03-30 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796562', 'tblTempUsageDetail_20' ) start [2025-03-30 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796562', 'tblTempUsageDetail_20' ) end [2025-03-30 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:43:23] Production.INFO: ==3305== Releasing lock... [2025-03-30 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:43:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:44:05 [end_date_ymd] => 2025-03-30 13:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:44:05' and `end` < '2025-03-30 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-03-30 13:44:18] Production.INFO: count ==2224 [2025-03-30 13:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:44:05 - End Time 2025-03-30 13:44:05 [2025-03-30 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796567', 'tblTempUsageDetail_20' ) start [2025-03-30 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796567', 'tblTempUsageDetail_20' ) end [2025-03-30 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796567', 'tblTempVendorCDR_20' ) start [2025-03-30 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796567', 'tblTempVendorCDR_20' ) end [2025-03-30 13:44:19] Production.INFO: ProcessCDR(1,14796567,1,1,2) [2025-03-30 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796567', 'tblTempUsageDetail_20' ) start [2025-03-30 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796567', 'tblTempUsageDetail_20' ) end [2025-03-30 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:44:24] Production.INFO: ==3384== Releasing lock... [2025-03-30 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:44:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:45:06 [end_date_ymd] => 2025-03-30 13:45:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:45:06' and `end` < '2025-03-30 13: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-03-30 13:45:18] Production.INFO: count ==2225 [2025-03-30 13:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:45:06 - End Time 2025-03-30 13:45:06 [2025-03-30 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796572', 'tblTempUsageDetail_20' ) start [2025-03-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796572', 'tblTempUsageDetail_20' ) end [2025-03-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796572', 'tblTempVendorCDR_20' ) start [2025-03-30 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796572', 'tblTempVendorCDR_20' ) end [2025-03-30 13:45:19] Production.INFO: ProcessCDR(1,14796572,1,1,2) [2025-03-30 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796572', 'tblTempUsageDetail_20' ) start [2025-03-30 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796572', 'tblTempUsageDetail_20' ) end [2025-03-30 13:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:45:24] Production.INFO: ==3460== Releasing lock... [2025-03-30 13:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:45:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:46:05 [end_date_ymd] => 2025-03-30 13:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:46:05' and `end` < '2025-03-30 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-03-30 13:46:18] Production.INFO: count ==2225 [2025-03-30 13:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:46:05 - End Time 2025-03-30 13:46:05 [2025-03-30 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796577', 'tblTempUsageDetail_20' ) start [2025-03-30 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796577', 'tblTempUsageDetail_20' ) end [2025-03-30 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796577', 'tblTempVendorCDR_20' ) start [2025-03-30 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796577', 'tblTempVendorCDR_20' ) end [2025-03-30 13:46:19] Production.INFO: ProcessCDR(1,14796577,1,1,2) [2025-03-30 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796577', 'tblTempUsageDetail_20' ) start [2025-03-30 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796577', 'tblTempUsageDetail_20' ) end [2025-03-30 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:46:23] Production.INFO: ==3542== Releasing lock... [2025-03-30 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:46:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:47:05 [end_date_ymd] => 2025-03-30 13:47:05 [RateCDR] => 1 ) [2025-03-30 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:47:05' and `end` < '2025-03-30 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-03-30 13:47:18] Production.INFO: count ==2213 [2025-03-30 13:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:47:05 - End Time 2025-03-30 13:47:05 [2025-03-30 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796582', 'tblTempUsageDetail_20' ) start [2025-03-30 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796582', 'tblTempUsageDetail_20' ) end [2025-03-30 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796582', 'tblTempVendorCDR_20' ) start [2025-03-30 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796582', 'tblTempVendorCDR_20' ) end [2025-03-30 13:47:19] Production.INFO: ProcessCDR(1,14796582,1,1,2) [2025-03-30 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796582', 'tblTempUsageDetail_20' ) start [2025-03-30 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796582', 'tblTempUsageDetail_20' ) end [2025-03-30 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:47:24] Production.INFO: ==3623== Releasing lock... [2025-03-30 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:47:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:48:05 [end_date_ymd] => 2025-03-30 13:48:05 [RateCDR] => 1 ) [2025-03-30 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:48:05' and `end` < '2025-03-30 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:48:17] Production.INFO: count ==2207 [2025-03-30 13:48:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:48:05 - End Time 2025-03-30 13:48:05 [2025-03-30 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796587', 'tblTempUsageDetail_20' ) start [2025-03-30 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796587', 'tblTempUsageDetail_20' ) end [2025-03-30 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796587', 'tblTempVendorCDR_20' ) start [2025-03-30 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796587', 'tblTempVendorCDR_20' ) end [2025-03-30 13:48:19] Production.INFO: ProcessCDR(1,14796587,1,1,2) [2025-03-30 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796587', 'tblTempUsageDetail_20' ) start [2025-03-30 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796587', 'tblTempUsageDetail_20' ) end [2025-03-30 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:48:22] Production.INFO: ==3743== Releasing lock... [2025-03-30 13:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:48:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:49:06 [end_date_ymd] => 2025-03-30 13:49:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:49:06' and `end` < '2025-03-30 13: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-03-30 13:49:18] Production.INFO: count ==2184 [2025-03-30 13:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:49:06 - End Time 2025-03-30 13:49:06 [2025-03-30 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796592', 'tblTempUsageDetail_20' ) start [2025-03-30 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796592', 'tblTempUsageDetail_20' ) end [2025-03-30 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796592', 'tblTempVendorCDR_20' ) start [2025-03-30 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796592', 'tblTempVendorCDR_20' ) end [2025-03-30 13:49:19] Production.INFO: ProcessCDR(1,14796592,1,1,2) [2025-03-30 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796592', 'tblTempUsageDetail_20' ) start [2025-03-30 13:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796592', 'tblTempUsageDetail_20' ) end [2025-03-30 13:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:49:24] Production.INFO: ==3829== Releasing lock... [2025-03-30 13:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:49:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:50:06 [end_date_ymd] => 2025-03-30 13:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:50:06' and `end` < '2025-03-30 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-03-30 13:50:19] Production.INFO: count ==2172 [2025-03-30 13:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 10:50:06 - End Time 2025-03-30 13:50:06 [2025-03-30 13:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796598', 'tblTempUsageDetail_20' ) start [2025-03-30 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796598', 'tblTempUsageDetail_20' ) end [2025-03-30 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796598', 'tblTempVendorCDR_20' ) start [2025-03-30 13:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796598', 'tblTempVendorCDR_20' ) end [2025-03-30 13:50:20] Production.INFO: ProcessCDR(1,14796598,1,1,2) [2025-03-30 13:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796598', 'tblTempUsageDetail_20' ) start [2025-03-30 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796598', 'tblTempUsageDetail_20' ) end [2025-03-30 13:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:50:23] Production.INFO: ==3905== Releasing lock... [2025-03-30 13:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:50:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:51:05 [end_date_ymd] => 2025-03-30 13:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:51:05' and `end` < '2025-03-30 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-03-30 13:51:18] Production.INFO: count ==2188 [2025-03-30 13:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:51:05 - End Time 2025-03-30 13:51:05 [2025-03-30 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796603', 'tblTempUsageDetail_20' ) start [2025-03-30 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796603', 'tblTempUsageDetail_20' ) end [2025-03-30 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796603', 'tblTempVendorCDR_20' ) start [2025-03-30 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796603', 'tblTempVendorCDR_20' ) end [2025-03-30 13:51:19] Production.INFO: ProcessCDR(1,14796603,1,1,2) [2025-03-30 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796603', 'tblTempUsageDetail_20' ) start [2025-03-30 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796603', 'tblTempUsageDetail_20' ) end [2025-03-30 13:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:51:24] Production.INFO: ==3984== Releasing lock... [2025-03-30 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:51:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:52:05 [end_date_ymd] => 2025-03-30 13:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:52:05' and `end` < '2025-03-30 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-03-30 13:52:18] Production.INFO: count ==2183 [2025-03-30 13:52:18] Production.ERROR: pbx CDR StartTime 2025-03-30 10:52:05 - End Time 2025-03-30 13:52:05 [2025-03-30 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796608', 'tblTempUsageDetail_20' ) start [2025-03-30 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796608', 'tblTempUsageDetail_20' ) end [2025-03-30 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796608', 'tblTempVendorCDR_20' ) start [2025-03-30 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796608', 'tblTempVendorCDR_20' ) end [2025-03-30 13:52:19] Production.INFO: ProcessCDR(1,14796608,1,1,2) [2025-03-30 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796608', 'tblTempUsageDetail_20' ) start [2025-03-30 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796608', 'tblTempUsageDetail_20' ) end [2025-03-30 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:52:22] Production.INFO: ==4068== Releasing lock... [2025-03-30 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:52:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:53:06 [end_date_ymd] => 2025-03-30 13:53:06 [RateCDR] => 1 ) [2025-03-30 13: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-03-30 10:53:06' and `end` < '2025-03-30 13: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-03-30 13:53:18] Production.INFO: count ==2181 [2025-03-30 13:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:53:06 - End Time 2025-03-30 13:53:06 [2025-03-30 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796613', 'tblTempUsageDetail_20' ) start [2025-03-30 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796613', 'tblTempUsageDetail_20' ) end [2025-03-30 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796613', 'tblTempVendorCDR_20' ) start [2025-03-30 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796613', 'tblTempVendorCDR_20' ) end [2025-03-30 13:53:19] Production.INFO: ProcessCDR(1,14796613,1,1,2) [2025-03-30 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796613', 'tblTempUsageDetail_20' ) start [2025-03-30 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796613', 'tblTempUsageDetail_20' ) end [2025-03-30 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:53:23] Production.INFO: ==4154== Releasing lock... [2025-03-30 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:53:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:54:06 [end_date_ymd] => 2025-03-30 13:54:06 [RateCDR] => 1 ) [2025-03-30 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:54:06' and `end` < '2025-03-30 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:54:18] Production.INFO: count ==2186 [2025-03-30 13:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:54:06 - End Time 2025-03-30 13:54:06 [2025-03-30 13:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796618', 'tblTempUsageDetail_20' ) start [2025-03-30 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796618', 'tblTempUsageDetail_20' ) end [2025-03-30 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796618', 'tblTempVendorCDR_20' ) start [2025-03-30 13:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796618', 'tblTempVendorCDR_20' ) end [2025-03-30 13:54:19] Production.INFO: ProcessCDR(1,14796618,1,1,2) [2025-03-30 13:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796618', 'tblTempUsageDetail_20' ) start [2025-03-30 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796618', 'tblTempUsageDetail_20' ) end [2025-03-30 13:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:54:24] Production.INFO: ==4228== Releasing lock... [2025-03-30 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:54:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:55:05 [end_date_ymd] => 2025-03-30 13:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:55:05' and `end` < '2025-03-30 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-03-30 13:55:18] Production.INFO: count ==2190 [2025-03-30 13:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:55:05 - End Time 2025-03-30 13:55:05 [2025-03-30 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796623', 'tblTempUsageDetail_20' ) start [2025-03-30 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796623', 'tblTempUsageDetail_20' ) end [2025-03-30 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796623', 'tblTempVendorCDR_20' ) start [2025-03-30 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796623', 'tblTempVendorCDR_20' ) end [2025-03-30 13:55:19] Production.INFO: ProcessCDR(1,14796623,1,1,2) [2025-03-30 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796623', 'tblTempUsageDetail_20' ) start [2025-03-30 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796623', 'tblTempUsageDetail_20' ) end [2025-03-30 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:55:23] Production.INFO: ==4309== Releasing lock... [2025-03-30 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:55:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:56:06 [end_date_ymd] => 2025-03-30 13:56:06 [RateCDR] => 1 ) [2025-03-30 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:56:06' and `end` < '2025-03-30 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:56:18] Production.INFO: count ==2182 [2025-03-30 13:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:56:06 - End Time 2025-03-30 13:56:06 [2025-03-30 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796628', 'tblTempUsageDetail_20' ) start [2025-03-30 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796628', 'tblTempUsageDetail_20' ) end [2025-03-30 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796628', 'tblTempVendorCDR_20' ) start [2025-03-30 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796628', 'tblTempVendorCDR_20' ) end [2025-03-30 13:56:19] Production.INFO: ProcessCDR(1,14796628,1,1,2) [2025-03-30 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796628', 'tblTempUsageDetail_20' ) start [2025-03-30 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796628', 'tblTempUsageDetail_20' ) end [2025-03-30 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:56:23] Production.INFO: ==4397== Releasing lock... [2025-03-30 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:56:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:57:05 [end_date_ymd] => 2025-03-30 13:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:57:05' and `end` < '2025-03-30 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-03-30 13:57:18] Production.INFO: count ==2183 [2025-03-30 13:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:57:05 - End Time 2025-03-30 13:57:05 [2025-03-30 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796633', 'tblTempUsageDetail_20' ) start [2025-03-30 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796633', 'tblTempUsageDetail_20' ) end [2025-03-30 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796633', 'tblTempVendorCDR_20' ) start [2025-03-30 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796633', 'tblTempVendorCDR_20' ) end [2025-03-30 13:57:19] Production.INFO: ProcessCDR(1,14796633,1,1,2) [2025-03-30 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796633', 'tblTempUsageDetail_20' ) start [2025-03-30 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796633', 'tblTempUsageDetail_20' ) end [2025-03-30 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:57:24] Production.INFO: ==4477== Releasing lock... [2025-03-30 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:57:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:58:05 [end_date_ymd] => 2025-03-30 13:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 10:58:05' and `end` < '2025-03-30 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-03-30 13:58:18] Production.INFO: count ==2178 [2025-03-30 13:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:58:05 - End Time 2025-03-30 13:58:05 [2025-03-30 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796638', 'tblTempUsageDetail_20' ) start [2025-03-30 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796638', 'tblTempUsageDetail_20' ) end [2025-03-30 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796638', 'tblTempVendorCDR_20' ) start [2025-03-30 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796638', 'tblTempVendorCDR_20' ) end [2025-03-30 13:58:19] Production.INFO: ProcessCDR(1,14796638,1,1,2) [2025-03-30 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796638', 'tblTempUsageDetail_20' ) start [2025-03-30 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796638', 'tblTempUsageDetail_20' ) end [2025-03-30 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:58:22] Production.INFO: ==4565== Releasing lock... [2025-03-30 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 10:59:05 [end_date_ymd] => 2025-03-30 13:59:05 [RateCDR] => 1 ) [2025-03-30 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 10:59:05' and `end` < '2025-03-30 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 13:59:18] Production.INFO: count ==2266 [2025-03-30 13:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 10:59:05 - End Time 2025-03-30 13:59:05 [2025-03-30 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796643', 'tblTempUsageDetail_20' ) start [2025-03-30 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796643', 'tblTempUsageDetail_20' ) end [2025-03-30 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796643', 'tblTempVendorCDR_20' ) start [2025-03-30 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796643', 'tblTempVendorCDR_20' ) end [2025-03-30 13:59:19] Production.INFO: ProcessCDR(1,14796643,1,1,2) [2025-03-30 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796643', 'tblTempUsageDetail_20' ) start [2025-03-30 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796643', 'tblTempUsageDetail_20' ) end [2025-03-30 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 13:59:22] Production.INFO: ==4650== Releasing lock... [2025-03-30 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 13:59:22] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:00:06 [end_date_ymd] => 2025-03-30 14:00:06 [RateCDR] => 1 ) [2025-03-30 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:00:06' and `end` < '2025-03-30 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:00:19] Production.INFO: count ==2260 [2025-03-30 14:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:00:06 - End Time 2025-03-30 14:00:06 [2025-03-30 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796649', 'tblTempUsageDetail_20' ) start [2025-03-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796649', 'tblTempUsageDetail_20' ) end [2025-03-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796649', 'tblTempVendorCDR_20' ) start [2025-03-30 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796649', 'tblTempVendorCDR_20' ) end [2025-03-30 14:00:20] Production.INFO: ProcessCDR(1,14796649,1,1,2) [2025-03-30 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796649', 'tblTempUsageDetail_20' ) start [2025-03-30 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796649', 'tblTempUsageDetail_20' ) end [2025-03-30 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:00:24] Production.INFO: ==4736== Releasing lock... [2025-03-30 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:00:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:01:05 [end_date_ymd] => 2025-03-30 14:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:01:05' and `end` < '2025-03-30 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-03-30 14:01:18] Production.INFO: count ==2324 [2025-03-30 14:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:01:05 - End Time 2025-03-30 14:01:05 [2025-03-30 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796654', 'tblTempUsageDetail_20' ) start [2025-03-30 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796654', 'tblTempUsageDetail_20' ) end [2025-03-30 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796654', 'tblTempVendorCDR_20' ) start [2025-03-30 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796654', 'tblTempVendorCDR_20' ) end [2025-03-30 14:01:19] Production.INFO: ProcessCDR(1,14796654,1,1,2) [2025-03-30 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796654', 'tblTempUsageDetail_20' ) start [2025-03-30 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796654', 'tblTempUsageDetail_20' ) end [2025-03-30 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:01:24] Production.INFO: ==4836== Releasing lock... [2025-03-30 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:01:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:02:05 [end_date_ymd] => 2025-03-30 14:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:02:05' and `end` < '2025-03-30 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-03-30 14:02:18] Production.INFO: count ==2329 [2025-03-30 14:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:02:05 - End Time 2025-03-30 14:02:05 [2025-03-30 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796659', 'tblTempUsageDetail_20' ) start [2025-03-30 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796659', 'tblTempUsageDetail_20' ) end [2025-03-30 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796659', 'tblTempVendorCDR_20' ) start [2025-03-30 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796659', 'tblTempVendorCDR_20' ) end [2025-03-30 14:02:19] Production.INFO: ProcessCDR(1,14796659,1,1,2) [2025-03-30 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796659', 'tblTempUsageDetail_20' ) start [2025-03-30 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796659', 'tblTempUsageDetail_20' ) end [2025-03-30 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:02:23] Production.INFO: ==4920== Releasing lock... [2025-03-30 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:02:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:03:05 [end_date_ymd] => 2025-03-30 14:03:05 [RateCDR] => 1 ) [2025-03-30 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:03:05' and `end` < '2025-03-30 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:03:18] Production.INFO: count ==2329 [2025-03-30 14:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:03:05 - End Time 2025-03-30 14:03:05 [2025-03-30 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796664', 'tblTempUsageDetail_20' ) start [2025-03-30 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796664', 'tblTempUsageDetail_20' ) end [2025-03-30 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796664', 'tblTempVendorCDR_20' ) start [2025-03-30 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796664', 'tblTempVendorCDR_20' ) end [2025-03-30 14:03:19] Production.INFO: ProcessCDR(1,14796664,1,1,2) [2025-03-30 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796664', 'tblTempUsageDetail_20' ) start [2025-03-30 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796664', 'tblTempUsageDetail_20' ) end [2025-03-30 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:03:25] Production.INFO: ==5036== Releasing lock... [2025-03-30 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:03:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:04:06 [end_date_ymd] => 2025-03-30 14:04:06 [RateCDR] => 1 ) [2025-03-30 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:04:06' and `end` < '2025-03-30 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:04:19] Production.INFO: count ==2310 [2025-03-30 14:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:04:06 - End Time 2025-03-30 14:04:06 [2025-03-30 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796669', 'tblTempUsageDetail_20' ) start [2025-03-30 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796669', 'tblTempUsageDetail_20' ) end [2025-03-30 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796669', 'tblTempVendorCDR_20' ) start [2025-03-30 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796669', 'tblTempVendorCDR_20' ) end [2025-03-30 14:04:20] Production.INFO: ProcessCDR(1,14796669,1,1,2) [2025-03-30 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796669', 'tblTempUsageDetail_20' ) start [2025-03-30 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796669', 'tblTempUsageDetail_20' ) end [2025-03-30 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:04:25] Production.INFO: ==5124== Releasing lock... [2025-03-30 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:04:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:05:05 [end_date_ymd] => 2025-03-30 14:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:05:05' and `end` < '2025-03-30 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-03-30 14:05:18] Production.INFO: count ==2282 [2025-03-30 14:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:05:05 - End Time 2025-03-30 14:05:05 [2025-03-30 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796674', 'tblTempUsageDetail_20' ) start [2025-03-30 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796674', 'tblTempUsageDetail_20' ) end [2025-03-30 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796674', 'tblTempVendorCDR_20' ) start [2025-03-30 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796674', 'tblTempVendorCDR_20' ) end [2025-03-30 14:05:19] Production.INFO: ProcessCDR(1,14796674,1,1,2) [2025-03-30 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796674', 'tblTempUsageDetail_20' ) start [2025-03-30 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796674', 'tblTempUsageDetail_20' ) end [2025-03-30 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:05:24] Production.INFO: ==5208== Releasing lock... [2025-03-30 14:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:05:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:06:06 [end_date_ymd] => 2025-03-30 14:06:06 [RateCDR] => 1 ) [2025-03-30 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:06:06' and `end` < '2025-03-30 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:06:19] Production.INFO: count ==2288 [2025-03-30 14:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:06:06 - End Time 2025-03-30 14:06:06 [2025-03-30 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796679', 'tblTempUsageDetail_20' ) start [2025-03-30 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796679', 'tblTempUsageDetail_20' ) end [2025-03-30 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796679', 'tblTempVendorCDR_20' ) start [2025-03-30 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796679', 'tblTempVendorCDR_20' ) end [2025-03-30 14:06:20] Production.INFO: ProcessCDR(1,14796679,1,1,2) [2025-03-30 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796679', 'tblTempUsageDetail_20' ) start [2025-03-30 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796679', 'tblTempUsageDetail_20' ) end [2025-03-30 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:06:25] Production.INFO: ==5292== Releasing lock... [2025-03-30 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:06:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:07:05 [end_date_ymd] => 2025-03-30 14:07:05 [RateCDR] => 1 ) [2025-03-30 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:07:05' and `end` < '2025-03-30 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:07:18] Production.INFO: count ==2282 [2025-03-30 14:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:07:05 - End Time 2025-03-30 14:07:05 [2025-03-30 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796684', 'tblTempUsageDetail_20' ) start [2025-03-30 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796684', 'tblTempUsageDetail_20' ) end [2025-03-30 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796684', 'tblTempVendorCDR_20' ) start [2025-03-30 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796684', 'tblTempVendorCDR_20' ) end [2025-03-30 14:07:19] Production.INFO: ProcessCDR(1,14796684,1,1,2) [2025-03-30 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796684', 'tblTempUsageDetail_20' ) start [2025-03-30 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796684', 'tblTempUsageDetail_20' ) end [2025-03-30 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:07:22] Production.INFO: ==5368== Releasing lock... [2025-03-30 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:07:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:08:06 [end_date_ymd] => 2025-03-30 14:08:06 [RateCDR] => 1 ) [2025-03-30 14: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-03-30 11:08:06' and `end` < '2025-03-30 14: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-03-30 14:08:19] Production.INFO: count ==2283 [2025-03-30 14:08:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:08:06 - End Time 2025-03-30 14:08:06 [2025-03-30 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796689', 'tblTempUsageDetail_20' ) start [2025-03-30 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796689', 'tblTempUsageDetail_20' ) end [2025-03-30 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796689', 'tblTempVendorCDR_20' ) start [2025-03-30 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796689', 'tblTempVendorCDR_20' ) end [2025-03-30 14:08:20] Production.INFO: ProcessCDR(1,14796689,1,1,2) [2025-03-30 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796689', 'tblTempUsageDetail_20' ) start [2025-03-30 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796689', 'tblTempUsageDetail_20' ) end [2025-03-30 14:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:08:25] Production.INFO: ==5455== Releasing lock... [2025-03-30 14:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:08:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:09:05 [end_date_ymd] => 2025-03-30 14:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:09:05' and `end` < '2025-03-30 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-03-30 14:09:17] Production.INFO: count ==2284 [2025-03-30 14:09:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:09:05 - End Time 2025-03-30 14:09:05 [2025-03-30 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796694', 'tblTempUsageDetail_20' ) start [2025-03-30 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796694', 'tblTempUsageDetail_20' ) end [2025-03-30 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796694', 'tblTempVendorCDR_20' ) start [2025-03-30 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796694', 'tblTempVendorCDR_20' ) end [2025-03-30 14:09:19] Production.INFO: ProcessCDR(1,14796694,1,1,2) [2025-03-30 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796694', 'tblTempUsageDetail_20' ) start [2025-03-30 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796694', 'tblTempUsageDetail_20' ) end [2025-03-30 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:09:23] Production.INFO: ==5533== Releasing lock... [2025-03-30 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:09:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:10:07 [end_date_ymd] => 2025-03-30 14:10:07 [RateCDR] => 1 ) [2025-03-30 14:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:10:07' and `end` < '2025-03-30 14:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:10:19] Production.INFO: count ==2267 [2025-03-30 14:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:10:07 - End Time 2025-03-30 14:10:07 [2025-03-30 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796700', 'tblTempUsageDetail_20' ) start [2025-03-30 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796700', 'tblTempUsageDetail_20' ) end [2025-03-30 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796700', 'tblTempVendorCDR_20' ) start [2025-03-30 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796700', 'tblTempVendorCDR_20' ) end [2025-03-30 14:10:21] Production.INFO: ProcessCDR(1,14796700,1,1,2) [2025-03-30 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796700', 'tblTempUsageDetail_20' ) start [2025-03-30 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796700', 'tblTempUsageDetail_20' ) end [2025-03-30 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:10:24] Production.INFO: ==5614== Releasing lock... [2025-03-30 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:10:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:11:05 [end_date_ymd] => 2025-03-30 14:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:11:05' and `end` < '2025-03-30 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-03-30 14:11:17] Production.INFO: count ==2280 [2025-03-30 14:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:11:05 - End Time 2025-03-30 14:11:05 [2025-03-30 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796705', 'tblTempUsageDetail_20' ) start [2025-03-30 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796705', 'tblTempUsageDetail_20' ) end [2025-03-30 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796705', 'tblTempVendorCDR_20' ) start [2025-03-30 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796705', 'tblTempVendorCDR_20' ) end [2025-03-30 14:11:18] Production.INFO: ProcessCDR(1,14796705,1,1,2) [2025-03-30 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796705', 'tblTempUsageDetail_20' ) start [2025-03-30 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796705', 'tblTempUsageDetail_20' ) end [2025-03-30 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:11:23] Production.INFO: ==5692== Releasing lock... [2025-03-30 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:11:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:12:06 [end_date_ymd] => 2025-03-30 14:12:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:12:06' and `end` < '2025-03-30 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:12:18] Production.INFO: count ==2282 [2025-03-30 14:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:12:06 - End Time 2025-03-30 14:12:06 [2025-03-30 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796710', 'tblTempUsageDetail_20' ) start [2025-03-30 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796710', 'tblTempUsageDetail_20' ) end [2025-03-30 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796710', 'tblTempVendorCDR_20' ) start [2025-03-30 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796710', 'tblTempVendorCDR_20' ) end [2025-03-30 14:12:19] Production.INFO: ProcessCDR(1,14796710,1,1,2) [2025-03-30 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796710', 'tblTempUsageDetail_20' ) start [2025-03-30 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796710', 'tblTempUsageDetail_20' ) end [2025-03-30 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:12:24] Production.INFO: ==5770== Releasing lock... [2025-03-30 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:12:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:13:05 [end_date_ymd] => 2025-03-30 14:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:13:05' and `end` < '2025-03-30 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-03-30 14:13:17] Production.INFO: count ==2285 [2025-03-30 14:13:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:13:05 - End Time 2025-03-30 14:13:05 [2025-03-30 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796715', 'tblTempUsageDetail_20' ) start [2025-03-30 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796715', 'tblTempUsageDetail_20' ) end [2025-03-30 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796715', 'tblTempVendorCDR_20' ) start [2025-03-30 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796715', 'tblTempVendorCDR_20' ) end [2025-03-30 14:13:19] Production.INFO: ProcessCDR(1,14796715,1,1,2) [2025-03-30 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796715', 'tblTempUsageDetail_20' ) start [2025-03-30 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796715', 'tblTempUsageDetail_20' ) end [2025-03-30 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:13:22] Production.INFO: ==5845== Releasing lock... [2025-03-30 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:13:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:14:05 [end_date_ymd] => 2025-03-30 14:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:14:05' and `end` < '2025-03-30 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-03-30 14:14:18] Production.INFO: count ==2283 [2025-03-30 14:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:14:05 - End Time 2025-03-30 14:14:05 [2025-03-30 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796720', 'tblTempUsageDetail_20' ) start [2025-03-30 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796720', 'tblTempUsageDetail_20' ) end [2025-03-30 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796720', 'tblTempVendorCDR_20' ) start [2025-03-30 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796720', 'tblTempVendorCDR_20' ) end [2025-03-30 14:14:19] Production.INFO: ProcessCDR(1,14796720,1,1,2) [2025-03-30 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796720', 'tblTempUsageDetail_20' ) start [2025-03-30 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796720', 'tblTempUsageDetail_20' ) end [2025-03-30 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:14:23] Production.INFO: ==5934== Releasing lock... [2025-03-30 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:14:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:15:05 [end_date_ymd] => 2025-03-30 14:15:05 [RateCDR] => 1 ) [2025-03-30 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:15:05' and `end` < '2025-03-30 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:15:18] Production.INFO: count ==2303 [2025-03-30 14:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:15:05 - End Time 2025-03-30 14:15:05 [2025-03-30 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796725', 'tblTempUsageDetail_20' ) start [2025-03-30 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796725', 'tblTempUsageDetail_20' ) end [2025-03-30 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796725', 'tblTempVendorCDR_20' ) start [2025-03-30 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796725', 'tblTempVendorCDR_20' ) end [2025-03-30 14:15:19] Production.INFO: ProcessCDR(1,14796725,1,1,2) [2025-03-30 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796725', 'tblTempUsageDetail_20' ) start [2025-03-30 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796725', 'tblTempUsageDetail_20' ) end [2025-03-30 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:15:22] Production.INFO: ==6014== Releasing lock... [2025-03-30 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:15:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:16:06 [end_date_ymd] => 2025-03-30 14:16:06 [RateCDR] => 1 ) [2025-03-30 14: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-03-30 11:16:06' and `end` < '2025-03-30 14: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-03-30 14:16:19] Production.INFO: count ==2296 [2025-03-30 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:16:06 - End Time 2025-03-30 14:16:06 [2025-03-30 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796730', 'tblTempUsageDetail_20' ) start [2025-03-30 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796730', 'tblTempUsageDetail_20' ) end [2025-03-30 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796730', 'tblTempVendorCDR_20' ) start [2025-03-30 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796730', 'tblTempVendorCDR_20' ) end [2025-03-30 14:16:20] Production.INFO: ProcessCDR(1,14796730,1,1,2) [2025-03-30 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796730', 'tblTempUsageDetail_20' ) start [2025-03-30 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796730', 'tblTempUsageDetail_20' ) end [2025-03-30 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:16:23] Production.INFO: ==6095== Releasing lock... [2025-03-30 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:16:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:17:06 [end_date_ymd] => 2025-03-30 14:17:06 [RateCDR] => 1 ) [2025-03-30 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:17:06' and `end` < '2025-03-30 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:17:18] Production.INFO: count ==2296 [2025-03-30 14:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:17:06 - End Time 2025-03-30 14:17:06 [2025-03-30 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796735', 'tblTempUsageDetail_20' ) start [2025-03-30 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796735', 'tblTempUsageDetail_20' ) end [2025-03-30 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796735', 'tblTempVendorCDR_20' ) start [2025-03-30 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796735', 'tblTempVendorCDR_20' ) end [2025-03-30 14:17:19] Production.INFO: ProcessCDR(1,14796735,1,1,2) [2025-03-30 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796735', 'tblTempUsageDetail_20' ) start [2025-03-30 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796735', 'tblTempUsageDetail_20' ) end [2025-03-30 14:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:17:25] Production.INFO: ==6171== Releasing lock... [2025-03-30 14:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:17:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:18:05 [end_date_ymd] => 2025-03-30 14:18:05 [RateCDR] => 1 ) [2025-03-30 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:18:05' and `end` < '2025-03-30 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:18:18] Production.INFO: count ==2296 [2025-03-30 14:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:18:05 - End Time 2025-03-30 14:18:05 [2025-03-30 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796740', 'tblTempUsageDetail_20' ) start [2025-03-30 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796740', 'tblTempUsageDetail_20' ) end [2025-03-30 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796740', 'tblTempVendorCDR_20' ) start [2025-03-30 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796740', 'tblTempVendorCDR_20' ) end [2025-03-30 14:18:19] Production.INFO: ProcessCDR(1,14796740,1,1,2) [2025-03-30 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796740', 'tblTempUsageDetail_20' ) start [2025-03-30 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796740', 'tblTempUsageDetail_20' ) end [2025-03-30 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:18:22] Production.INFO: ==6290== Releasing lock... [2025-03-30 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:18:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:19:05 [end_date_ymd] => 2025-03-30 14:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:19:05' and `end` < '2025-03-30 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-03-30 14:19:18] Production.INFO: count ==2282 [2025-03-30 14:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:19:05 - End Time 2025-03-30 14:19:05 [2025-03-30 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796745', 'tblTempUsageDetail_20' ) start [2025-03-30 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796745', 'tblTempUsageDetail_20' ) end [2025-03-30 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796745', 'tblTempVendorCDR_20' ) start [2025-03-30 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796745', 'tblTempVendorCDR_20' ) end [2025-03-30 14:19:19] Production.INFO: ProcessCDR(1,14796745,1,1,2) [2025-03-30 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796745', 'tblTempUsageDetail_20' ) start [2025-03-30 14:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796745', 'tblTempUsageDetail_20' ) end [2025-03-30 14:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:19:24] Production.INFO: ==6371== Releasing lock... [2025-03-30 14:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:19:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:20:06 [end_date_ymd] => 2025-03-30 14:20:06 [RateCDR] => 1 ) [2025-03-30 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:20:06' and `end` < '2025-03-30 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:20:19] Production.INFO: count ==2275 [2025-03-30 14:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:20:06 - End Time 2025-03-30 14:20:06 [2025-03-30 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796751', 'tblTempUsageDetail_20' ) start [2025-03-30 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796751', 'tblTempUsageDetail_20' ) end [2025-03-30 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796751', 'tblTempVendorCDR_20' ) start [2025-03-30 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796751', 'tblTempVendorCDR_20' ) end [2025-03-30 14:20:20] Production.INFO: ProcessCDR(1,14796751,1,1,2) [2025-03-30 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796751', 'tblTempUsageDetail_20' ) start [2025-03-30 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796751', 'tblTempUsageDetail_20' ) end [2025-03-30 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:20:23] Production.INFO: ==6456== Releasing lock... [2025-03-30 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:20:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:21:06 [end_date_ymd] => 2025-03-30 14:21:06 [RateCDR] => 1 ) [2025-03-30 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:21:06' and `end` < '2025-03-30 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:21:19] Production.INFO: count ==2285 [2025-03-30 14:21:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:21:06 - End Time 2025-03-30 14:21:06 [2025-03-30 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796756', 'tblTempUsageDetail_20' ) start [2025-03-30 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796756', 'tblTempUsageDetail_20' ) end [2025-03-30 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796756', 'tblTempVendorCDR_20' ) start [2025-03-30 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796756', 'tblTempVendorCDR_20' ) end [2025-03-30 14:21:20] Production.INFO: ProcessCDR(1,14796756,1,1,2) [2025-03-30 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796756', 'tblTempUsageDetail_20' ) start [2025-03-30 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796756', 'tblTempUsageDetail_20' ) end [2025-03-30 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:21:23] Production.INFO: ==6535== Releasing lock... [2025-03-30 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:21:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:22:05 [end_date_ymd] => 2025-03-30 14:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:22:05' and `end` < '2025-03-30 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-03-30 14:22:18] Production.INFO: count ==2285 [2025-03-30 14:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:22:05 - End Time 2025-03-30 14:22:05 [2025-03-30 14:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796761', 'tblTempUsageDetail_20' ) start [2025-03-30 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796761', 'tblTempUsageDetail_20' ) end [2025-03-30 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796761', 'tblTempVendorCDR_20' ) start [2025-03-30 14:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796761', 'tblTempVendorCDR_20' ) end [2025-03-30 14:22:19] Production.INFO: ProcessCDR(1,14796761,1,1,2) [2025-03-30 14:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796761', 'tblTempUsageDetail_20' ) start [2025-03-30 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796761', 'tblTempUsageDetail_20' ) end [2025-03-30 14:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:22:22] Production.INFO: ==6612== Releasing lock... [2025-03-30 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:22:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:23:05 [end_date_ymd] => 2025-03-30 14:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:23:05' and `end` < '2025-03-30 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-03-30 14:23:18] Production.INFO: count ==2294 [2025-03-30 14:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:23:05 - End Time 2025-03-30 14:23:05 [2025-03-30 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796766', 'tblTempUsageDetail_20' ) start [2025-03-30 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796766', 'tblTempUsageDetail_20' ) end [2025-03-30 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796766', 'tblTempVendorCDR_20' ) start [2025-03-30 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796766', 'tblTempVendorCDR_20' ) end [2025-03-30 14:23:19] Production.INFO: ProcessCDR(1,14796766,1,1,2) [2025-03-30 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796766', 'tblTempUsageDetail_20' ) start [2025-03-30 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796766', 'tblTempUsageDetail_20' ) end [2025-03-30 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:23:22] Production.INFO: ==6695== Releasing lock... [2025-03-30 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:23:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:24:05 [end_date_ymd] => 2025-03-30 14:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:24:05' and `end` < '2025-03-30 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-03-30 14:24:17] Production.INFO: count ==2293 [2025-03-30 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:24:05 - End Time 2025-03-30 14:24:05 [2025-03-30 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796771', 'tblTempUsageDetail_20' ) start [2025-03-30 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796771', 'tblTempUsageDetail_20' ) end [2025-03-30 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796771', 'tblTempVendorCDR_20' ) start [2025-03-30 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796771', 'tblTempVendorCDR_20' ) end [2025-03-30 14:24:18] Production.INFO: ProcessCDR(1,14796771,1,1,2) [2025-03-30 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796771', 'tblTempUsageDetail_20' ) start [2025-03-30 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796771', 'tblTempUsageDetail_20' ) end [2025-03-30 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:24:22] Production.INFO: ==6769== Releasing lock... [2025-03-30 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:24:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:25:05 [end_date_ymd] => 2025-03-30 14:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:25:05' and `end` < '2025-03-30 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-03-30 14:25:18] Production.INFO: count ==2294 [2025-03-30 14:25:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:25:05 - End Time 2025-03-30 14:25:05 [2025-03-30 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796776', 'tblTempUsageDetail_20' ) start [2025-03-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796776', 'tblTempUsageDetail_20' ) end [2025-03-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796776', 'tblTempVendorCDR_20' ) start [2025-03-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796776', 'tblTempVendorCDR_20' ) end [2025-03-30 14:25:19] Production.INFO: ProcessCDR(1,14796776,1,1,2) [2025-03-30 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796776', 'tblTempUsageDetail_20' ) start [2025-03-30 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796776', 'tblTempUsageDetail_20' ) end [2025-03-30 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:25:24] Production.INFO: ==6850== Releasing lock... [2025-03-30 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:25:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:26:05 [end_date_ymd] => 2025-03-30 14:26:05 [RateCDR] => 1 ) [2025-03-30 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:26:05' and `end` < '2025-03-30 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:26:18] Production.INFO: count ==2296 [2025-03-30 14:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:26:05 - End Time 2025-03-30 14:26:05 [2025-03-30 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796781', 'tblTempUsageDetail_20' ) start [2025-03-30 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796781', 'tblTempUsageDetail_20' ) end [2025-03-30 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796781', 'tblTempVendorCDR_20' ) start [2025-03-30 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796781', 'tblTempVendorCDR_20' ) end [2025-03-30 14:26:19] Production.INFO: ProcessCDR(1,14796781,1,1,2) [2025-03-30 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796781', 'tblTempUsageDetail_20' ) start [2025-03-30 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796781', 'tblTempUsageDetail_20' ) end [2025-03-30 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:26:22] Production.INFO: ==6935== Releasing lock... [2025-03-30 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:26:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:27:05 [end_date_ymd] => 2025-03-30 14:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:27:05' and `end` < '2025-03-30 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-03-30 14:27:18] Production.INFO: count ==2301 [2025-03-30 14:27:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:27:05 - End Time 2025-03-30 14:27:05 [2025-03-30 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796786', 'tblTempUsageDetail_20' ) start [2025-03-30 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796786', 'tblTempUsageDetail_20' ) end [2025-03-30 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796786', 'tblTempVendorCDR_20' ) start [2025-03-30 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796786', 'tblTempVendorCDR_20' ) end [2025-03-30 14:27:19] Production.INFO: ProcessCDR(1,14796786,1,1,2) [2025-03-30 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796786', 'tblTempUsageDetail_20' ) start [2025-03-30 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796786', 'tblTempUsageDetail_20' ) end [2025-03-30 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:27:23] Production.INFO: ==7017== Releasing lock... [2025-03-30 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:27:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:28:06 [end_date_ymd] => 2025-03-30 14:28:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:28:06' and `end` < '2025-03-30 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-03-30 14:28:18] Production.INFO: count ==2304 [2025-03-30 14:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:28:06 - End Time 2025-03-30 14:28:06 [2025-03-30 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796791', 'tblTempUsageDetail_20' ) start [2025-03-30 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796791', 'tblTempUsageDetail_20' ) end [2025-03-30 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796791', 'tblTempVendorCDR_20' ) start [2025-03-30 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796791', 'tblTempVendorCDR_20' ) end [2025-03-30 14:28:19] Production.INFO: ProcessCDR(1,14796791,1,1,2) [2025-03-30 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796791', 'tblTempUsageDetail_20' ) start [2025-03-30 14:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796791', 'tblTempUsageDetail_20' ) end [2025-03-30 14:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:28:24] Production.INFO: ==7099== Releasing lock... [2025-03-30 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:28:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:29:05 [end_date_ymd] => 2025-03-30 14:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:29:05' and `end` < '2025-03-30 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-03-30 14:29:18] Production.INFO: count ==2304 [2025-03-30 14:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:29:05 - End Time 2025-03-30 14:29:05 [2025-03-30 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796796', 'tblTempUsageDetail_20' ) start [2025-03-30 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796796', 'tblTempUsageDetail_20' ) end [2025-03-30 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796796', 'tblTempVendorCDR_20' ) start [2025-03-30 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796796', 'tblTempVendorCDR_20' ) end [2025-03-30 14:29:19] Production.INFO: ProcessCDR(1,14796796,1,1,2) [2025-03-30 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796796', 'tblTempUsageDetail_20' ) start [2025-03-30 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796796', 'tblTempUsageDetail_20' ) end [2025-03-30 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:29:24] Production.INFO: ==7171== Releasing lock... [2025-03-30 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:29:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:30:06 [end_date_ymd] => 2025-03-30 14:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:30:06' and `end` < '2025-03-30 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-03-30 14:30:19] Production.INFO: count ==2304 [2025-03-30 14:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:30:06 - End Time 2025-03-30 14:30:06 [2025-03-30 14:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796802', 'tblTempUsageDetail_20' ) start [2025-03-30 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796802', 'tblTempUsageDetail_20' ) end [2025-03-30 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796802', 'tblTempVendorCDR_20' ) start [2025-03-30 14:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796802', 'tblTempVendorCDR_20' ) end [2025-03-30 14:30:20] Production.INFO: ProcessCDR(1,14796802,1,1,2) [2025-03-30 14:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796802', 'tblTempUsageDetail_20' ) start [2025-03-30 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796802', 'tblTempUsageDetail_20' ) end [2025-03-30 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:30:24] Production.INFO: ==7253== Releasing lock... [2025-03-30 14:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:30:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:31:05 [end_date_ymd] => 2025-03-30 14:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:31:05' and `end` < '2025-03-30 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-03-30 14:31:17] Production.INFO: count ==2279 [2025-03-30 14:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:31:05 - End Time 2025-03-30 14:31:05 [2025-03-30 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796807', 'tblTempUsageDetail_20' ) start [2025-03-30 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796807', 'tblTempUsageDetail_20' ) end [2025-03-30 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796807', 'tblTempVendorCDR_20' ) start [2025-03-30 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796807', 'tblTempVendorCDR_20' ) end [2025-03-30 14:31:19] Production.INFO: ProcessCDR(1,14796807,1,1,2) [2025-03-30 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796807', 'tblTempUsageDetail_20' ) start [2025-03-30 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796807', 'tblTempUsageDetail_20' ) end [2025-03-30 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:31:23] Production.INFO: ==7332== Releasing lock... [2025-03-30 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:32:05 [end_date_ymd] => 2025-03-30 14:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:32:05' and `end` < '2025-03-30 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-03-30 14:32:18] Production.INFO: count ==2287 [2025-03-30 14:32:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:32:05 - End Time 2025-03-30 14:32:05 [2025-03-30 14:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796812', 'tblTempUsageDetail_20' ) start [2025-03-30 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796812', 'tblTempUsageDetail_20' ) end [2025-03-30 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796812', 'tblTempVendorCDR_20' ) start [2025-03-30 14:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796812', 'tblTempVendorCDR_20' ) end [2025-03-30 14:32:19] Production.INFO: ProcessCDR(1,14796812,1,1,2) [2025-03-30 14:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796812', 'tblTempUsageDetail_20' ) start [2025-03-30 14:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796812', 'tblTempUsageDetail_20' ) end [2025-03-30 14:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:32:24] Production.INFO: ==7409== Releasing lock... [2025-03-30 14:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:32:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:33:05 [end_date_ymd] => 2025-03-30 14:33:05 [RateCDR] => 1 ) [2025-03-30 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:33:05' and `end` < '2025-03-30 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:33:18] Production.INFO: count ==2295 [2025-03-30 14:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:33:05 - End Time 2025-03-30 14:33:05 [2025-03-30 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796817', 'tblTempUsageDetail_20' ) start [2025-03-30 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796817', 'tblTempUsageDetail_20' ) end [2025-03-30 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796817', 'tblTempVendorCDR_20' ) start [2025-03-30 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796817', 'tblTempVendorCDR_20' ) end [2025-03-30 14:33:19] Production.INFO: ProcessCDR(1,14796817,1,1,2) [2025-03-30 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796817', 'tblTempUsageDetail_20' ) start [2025-03-30 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796817', 'tblTempUsageDetail_20' ) end [2025-03-30 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:33:22] Production.INFO: ==7490== Releasing lock... [2025-03-30 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:33:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:34:06 [end_date_ymd] => 2025-03-30 14:34:06 [RateCDR] => 1 ) [2025-03-30 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:34:06' and `end` < '2025-03-30 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:34:19] Production.INFO: count ==2301 [2025-03-30 14:34:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:34:06 - End Time 2025-03-30 14:34:06 [2025-03-30 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796822', 'tblTempUsageDetail_20' ) start [2025-03-30 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796822', 'tblTempUsageDetail_20' ) end [2025-03-30 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796822', 'tblTempVendorCDR_20' ) start [2025-03-30 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796822', 'tblTempVendorCDR_20' ) end [2025-03-30 14:34:20] Production.INFO: ProcessCDR(1,14796822,1,1,2) [2025-03-30 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796822', 'tblTempUsageDetail_20' ) start [2025-03-30 14:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796822', 'tblTempUsageDetail_20' ) end [2025-03-30 14:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:34:25] Production.INFO: ==7611== Releasing lock... [2025-03-30 14:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:34:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:35:05 [end_date_ymd] => 2025-03-30 14:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:35:05' and `end` < '2025-03-30 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-03-30 14:35:17] Production.INFO: count ==2298 [2025-03-30 14:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:35:05 - End Time 2025-03-30 14:35:05 [2025-03-30 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796827', 'tblTempUsageDetail_20' ) start [2025-03-30 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796827', 'tblTempUsageDetail_20' ) end [2025-03-30 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796827', 'tblTempVendorCDR_20' ) start [2025-03-30 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796827', 'tblTempVendorCDR_20' ) end [2025-03-30 14:35:18] Production.INFO: ProcessCDR(1,14796827,1,1,2) [2025-03-30 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796827', 'tblTempUsageDetail_20' ) start [2025-03-30 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796827', 'tblTempUsageDetail_20' ) end [2025-03-30 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:35:21] Production.INFO: ==7688== Releasing lock... [2025-03-30 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:35:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:36:05 [end_date_ymd] => 2025-03-30 14:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:36:05' and `end` < '2025-03-30 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-03-30 14:36:18] Production.INFO: count ==2298 [2025-03-30 14:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:36:05 - End Time 2025-03-30 14:36:05 [2025-03-30 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796832', 'tblTempUsageDetail_20' ) start [2025-03-30 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796832', 'tblTempUsageDetail_20' ) end [2025-03-30 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796832', 'tblTempVendorCDR_20' ) start [2025-03-30 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796832', 'tblTempVendorCDR_20' ) end [2025-03-30 14:36:19] Production.INFO: ProcessCDR(1,14796832,1,1,2) [2025-03-30 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796832', 'tblTempUsageDetail_20' ) start [2025-03-30 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796832', 'tblTempUsageDetail_20' ) end [2025-03-30 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:36:23] Production.INFO: ==7762== Releasing lock... [2025-03-30 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:36:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:37:06 [end_date_ymd] => 2025-03-30 14:37:06 [RateCDR] => 1 ) [2025-03-30 14:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:37:06' and `end` < '2025-03-30 14:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:37:18] Production.INFO: count ==2309 [2025-03-30 14:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:37:06 - End Time 2025-03-30 14:37:06 [2025-03-30 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796837', 'tblTempUsageDetail_20' ) start [2025-03-30 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796837', 'tblTempUsageDetail_20' ) end [2025-03-30 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796837', 'tblTempVendorCDR_20' ) start [2025-03-30 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796837', 'tblTempVendorCDR_20' ) end [2025-03-30 14:37:19] Production.INFO: ProcessCDR(1,14796837,1,1,2) [2025-03-30 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796837', 'tblTempUsageDetail_20' ) start [2025-03-30 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796837', 'tblTempUsageDetail_20' ) end [2025-03-30 14:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:37:23] Production.INFO: ==7840== Releasing lock... [2025-03-30 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:37:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:38:05 [end_date_ymd] => 2025-03-30 14:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:38:05' and `end` < '2025-03-30 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-03-30 14:38:18] Production.INFO: count ==2307 [2025-03-30 14:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:38:05 - End Time 2025-03-30 14:38:05 [2025-03-30 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796842', 'tblTempUsageDetail_20' ) start [2025-03-30 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796842', 'tblTempUsageDetail_20' ) end [2025-03-30 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796842', 'tblTempVendorCDR_20' ) start [2025-03-30 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796842', 'tblTempVendorCDR_20' ) end [2025-03-30 14:38:19] Production.INFO: ProcessCDR(1,14796842,1,1,2) [2025-03-30 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796842', 'tblTempUsageDetail_20' ) start [2025-03-30 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796842', 'tblTempUsageDetail_20' ) end [2025-03-30 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:38:22] Production.INFO: ==7915== Releasing lock... [2025-03-30 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:38:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:39:06 [end_date_ymd] => 2025-03-30 14:39:06 [RateCDR] => 1 ) [2025-03-30 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:39:06' and `end` < '2025-03-30 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:39:18] Production.INFO: count ==2312 [2025-03-30 14:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:39:06 - End Time 2025-03-30 14:39:06 [2025-03-30 14:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796847', 'tblTempUsageDetail_20' ) start [2025-03-30 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796847', 'tblTempUsageDetail_20' ) end [2025-03-30 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796847', 'tblTempVendorCDR_20' ) start [2025-03-30 14:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796847', 'tblTempVendorCDR_20' ) end [2025-03-30 14:39:19] Production.INFO: ProcessCDR(1,14796847,1,1,2) [2025-03-30 14:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796847', 'tblTempUsageDetail_20' ) start [2025-03-30 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796847', 'tblTempUsageDetail_20' ) end [2025-03-30 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:39:23] Production.INFO: ==7993== Releasing lock... [2025-03-30 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:39:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:40:06 [end_date_ymd] => 2025-03-30 14:40:06 [RateCDR] => 1 ) [2025-03-30 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:40:06' and `end` < '2025-03-30 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:40:19] Production.INFO: count ==2335 [2025-03-30 14:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:40:06 - End Time 2025-03-30 14:40:06 [2025-03-30 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796853', 'tblTempUsageDetail_20' ) start [2025-03-30 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796853', 'tblTempUsageDetail_20' ) end [2025-03-30 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796853', 'tblTempVendorCDR_20' ) start [2025-03-30 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796853', 'tblTempVendorCDR_20' ) end [2025-03-30 14:40:20] Production.INFO: ProcessCDR(1,14796853,1,1,2) [2025-03-30 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796853', 'tblTempUsageDetail_20' ) start [2025-03-30 14:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796853', 'tblTempUsageDetail_20' ) end [2025-03-30 14:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:40:23] Production.INFO: ==8070== Releasing lock... [2025-03-30 14:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:40:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:41:05 [end_date_ymd] => 2025-03-30 14:41:05 [RateCDR] => 1 ) [2025-03-30 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:41:05' and `end` < '2025-03-30 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:41:18] Production.INFO: count ==2359 [2025-03-30 14:41:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:41:05 - End Time 2025-03-30 14:41:05 [2025-03-30 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796858', 'tblTempUsageDetail_20' ) start [2025-03-30 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796858', 'tblTempUsageDetail_20' ) end [2025-03-30 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796858', 'tblTempVendorCDR_20' ) start [2025-03-30 14:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796858', 'tblTempVendorCDR_20' ) end [2025-03-30 14:41:19] Production.INFO: ProcessCDR(1,14796858,1,1,2) [2025-03-30 14:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796858', 'tblTempUsageDetail_20' ) start [2025-03-30 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796858', 'tblTempUsageDetail_20' ) end [2025-03-30 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:41:22] Production.INFO: ==8148== Releasing lock... [2025-03-30 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:41:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:42:05 [end_date_ymd] => 2025-03-30 14:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:42:05' and `end` < '2025-03-30 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-03-30 14:42:18] Production.INFO: count ==2351 [2025-03-30 14:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:42:05 - End Time 2025-03-30 14:42:05 [2025-03-30 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796863', 'tblTempUsageDetail_20' ) start [2025-03-30 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796863', 'tblTempUsageDetail_20' ) end [2025-03-30 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796863', 'tblTempVendorCDR_20' ) start [2025-03-30 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796863', 'tblTempVendorCDR_20' ) end [2025-03-30 14:42:19] Production.INFO: ProcessCDR(1,14796863,1,1,2) [2025-03-30 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796863', 'tblTempUsageDetail_20' ) start [2025-03-30 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796863', 'tblTempUsageDetail_20' ) end [2025-03-30 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:42:23] Production.INFO: ==8230== Releasing lock... [2025-03-30 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:42:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:43:05 [end_date_ymd] => 2025-03-30 14:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:43:05' and `end` < '2025-03-30 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-03-30 14:43:18] Production.INFO: count ==2362 [2025-03-30 14:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:43:05 - End Time 2025-03-30 14:43:05 [2025-03-30 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796868', 'tblTempUsageDetail_20' ) start [2025-03-30 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796868', 'tblTempUsageDetail_20' ) end [2025-03-30 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796868', 'tblTempVendorCDR_20' ) start [2025-03-30 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796868', 'tblTempVendorCDR_20' ) end [2025-03-30 14:43:19] Production.INFO: ProcessCDR(1,14796868,1,1,2) [2025-03-30 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796868', 'tblTempUsageDetail_20' ) start [2025-03-30 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796868', 'tblTempUsageDetail_20' ) end [2025-03-30 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:43:23] Production.INFO: ==8307== Releasing lock... [2025-03-30 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:43:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:44:05 [end_date_ymd] => 2025-03-30 14:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:44:05' and `end` < '2025-03-30 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-03-30 14:44:18] Production.INFO: count ==2422 [2025-03-30 14:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:44:05 - End Time 2025-03-30 14:44:05 [2025-03-30 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796873', 'tblTempUsageDetail_20' ) start [2025-03-30 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796873', 'tblTempUsageDetail_20' ) end [2025-03-30 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796873', 'tblTempVendorCDR_20' ) start [2025-03-30 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796873', 'tblTempVendorCDR_20' ) end [2025-03-30 14:44:19] Production.INFO: ProcessCDR(1,14796873,1,1,2) [2025-03-30 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796873', 'tblTempUsageDetail_20' ) start [2025-03-30 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796873', 'tblTempUsageDetail_20' ) end [2025-03-30 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:44:23] Production.INFO: ==8377== Releasing lock... [2025-03-30 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:44:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:45:06 [end_date_ymd] => 2025-03-30 14:45:06 [RateCDR] => 1 ) [2025-03-30 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:45:06' and `end` < '2025-03-30 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:45:18] Production.INFO: count ==2424 [2025-03-30 14:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:45:06 - End Time 2025-03-30 14:45:06 [2025-03-30 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796878', 'tblTempUsageDetail_20' ) start [2025-03-30 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796878', 'tblTempUsageDetail_20' ) end [2025-03-30 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796878', 'tblTempVendorCDR_20' ) start [2025-03-30 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796878', 'tblTempVendorCDR_20' ) end [2025-03-30 14:45:20] Production.INFO: ProcessCDR(1,14796878,1,1,2) [2025-03-30 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796878', 'tblTempUsageDetail_20' ) start [2025-03-30 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796878', 'tblTempUsageDetail_20' ) end [2025-03-30 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:45:23] Production.INFO: ==8452== Releasing lock... [2025-03-30 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:45:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:46:06 [end_date_ymd] => 2025-03-30 14:46:06 [RateCDR] => 1 ) [2025-03-30 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:46:06' and `end` < '2025-03-30 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:46:18] Production.INFO: count ==2423 [2025-03-30 14:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:46:06 - End Time 2025-03-30 14:46:06 [2025-03-30 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796883', 'tblTempUsageDetail_20' ) start [2025-03-30 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796883', 'tblTempUsageDetail_20' ) end [2025-03-30 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796883', 'tblTempVendorCDR_20' ) start [2025-03-30 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796883', 'tblTempVendorCDR_20' ) end [2025-03-30 14:46:19] Production.INFO: ProcessCDR(1,14796883,1,1,2) [2025-03-30 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796883', 'tblTempUsageDetail_20' ) start [2025-03-30 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796883', 'tblTempUsageDetail_20' ) end [2025-03-30 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:46:23] Production.INFO: ==8532== Releasing lock... [2025-03-30 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:46:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:47:05 [end_date_ymd] => 2025-03-30 14:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:47:05' and `end` < '2025-03-30 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-03-30 14:47:17] Production.INFO: count ==2417 [2025-03-30 14:47:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:47:05 - End Time 2025-03-30 14:47:05 [2025-03-30 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796888', 'tblTempUsageDetail_20' ) start [2025-03-30 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796888', 'tblTempUsageDetail_20' ) end [2025-03-30 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796888', 'tblTempVendorCDR_20' ) start [2025-03-30 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796888', 'tblTempVendorCDR_20' ) end [2025-03-30 14:47:18] Production.INFO: ProcessCDR(1,14796888,1,1,2) [2025-03-30 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796888', 'tblTempUsageDetail_20' ) start [2025-03-30 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796888', 'tblTempUsageDetail_20' ) end [2025-03-30 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:47:22] Production.INFO: ==8610== Releasing lock... [2025-03-30 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:47:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:48:06 [end_date_ymd] => 2025-03-30 14:48:06 [RateCDR] => 1 ) [2025-03-30 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:48:06' and `end` < '2025-03-30 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:48:19] Production.INFO: count ==2432 [2025-03-30 14:48:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:48:06 - End Time 2025-03-30 14:48:06 [2025-03-30 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796893', 'tblTempUsageDetail_20' ) start [2025-03-30 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796893', 'tblTempUsageDetail_20' ) end [2025-03-30 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796893', 'tblTempVendorCDR_20' ) start [2025-03-30 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796893', 'tblTempVendorCDR_20' ) end [2025-03-30 14:48:20] Production.INFO: ProcessCDR(1,14796893,1,1,2) [2025-03-30 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796893', 'tblTempUsageDetail_20' ) start [2025-03-30 14:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796893', 'tblTempUsageDetail_20' ) end [2025-03-30 14:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:48:24] Production.INFO: ==8682== Releasing lock... [2025-03-30 14:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:48:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:49:05 [end_date_ymd] => 2025-03-30 14:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:49:05' and `end` < '2025-03-30 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-03-30 14:49:18] Production.INFO: count ==2397 [2025-03-30 14:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:49:05 - End Time 2025-03-30 14:49:05 [2025-03-30 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796898', 'tblTempUsageDetail_20' ) start [2025-03-30 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796898', 'tblTempUsageDetail_20' ) end [2025-03-30 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796898', 'tblTempVendorCDR_20' ) start [2025-03-30 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796898', 'tblTempVendorCDR_20' ) end [2025-03-30 14:49:19] Production.INFO: ProcessCDR(1,14796898,1,1,2) [2025-03-30 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796898', 'tblTempUsageDetail_20' ) start [2025-03-30 14:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796898', 'tblTempUsageDetail_20' ) end [2025-03-30 14:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:49:24] Production.INFO: ==8799== Releasing lock... [2025-03-30 14:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:49:24] Production.INFO: 46 MB #Memory Used# [2025-03-30 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:50:06 [end_date_ymd] => 2025-03-30 14:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:50:06' and `end` < '2025-03-30 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-03-30 14:50:19] Production.INFO: count ==2366 [2025-03-30 14:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:50:06 - End Time 2025-03-30 14:50:06 [2025-03-30 14:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796903', 'tblTempUsageDetail_20' ) start [2025-03-30 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796903', 'tblTempUsageDetail_20' ) end [2025-03-30 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796903', 'tblTempVendorCDR_20' ) start [2025-03-30 14:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796903', 'tblTempVendorCDR_20' ) end [2025-03-30 14:50:20] Production.INFO: ProcessCDR(1,14796903,1,1,2) [2025-03-30 14:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796903', 'tblTempUsageDetail_20' ) start [2025-03-30 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796903', 'tblTempUsageDetail_20' ) end [2025-03-30 14:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:50:26] Production.INFO: ==8879== Releasing lock... [2025-03-30 14:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:50:26] Production.INFO: 46 MB #Memory Used# [2025-03-30 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:51:04 [end_date_ymd] => 2025-03-30 14:51:04 [RateCDR] => 1 ) [2025-03-30 14: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-03-30 11:51:04' and `end` < '2025-03-30 14: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-03-30 14:51:17] Production.INFO: count ==2339 [2025-03-30 14:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:51:04 - End Time 2025-03-30 14:51:04 [2025-03-30 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796909', 'tblTempUsageDetail_20' ) start [2025-03-30 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796909', 'tblTempUsageDetail_20' ) end [2025-03-30 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796909', 'tblTempVendorCDR_20' ) start [2025-03-30 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796909', 'tblTempVendorCDR_20' ) end [2025-03-30 14:51:18] Production.INFO: ProcessCDR(1,14796909,1,1,2) [2025-03-30 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796909', 'tblTempUsageDetail_20' ) start [2025-03-30 14:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796909', 'tblTempUsageDetail_20' ) end [2025-03-30 14:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:51:22] Production.INFO: ==8954== Releasing lock... [2025-03-30 14:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:52:06 [end_date_ymd] => 2025-03-30 14:52:06 [RateCDR] => 1 ) [2025-03-30 14: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-03-30 11:52:06' and `end` < '2025-03-30 14: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-03-30 14:52:18] Production.INFO: count ==2297 [2025-03-30 14:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:52:06 - End Time 2025-03-30 14:52:06 [2025-03-30 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796914', 'tblTempUsageDetail_20' ) start [2025-03-30 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796914', 'tblTempUsageDetail_20' ) end [2025-03-30 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796914', 'tblTempVendorCDR_20' ) start [2025-03-30 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796914', 'tblTempVendorCDR_20' ) end [2025-03-30 14:52:19] Production.INFO: ProcessCDR(1,14796914,1,1,2) [2025-03-30 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796914', 'tblTempUsageDetail_20' ) start [2025-03-30 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796914', 'tblTempUsageDetail_20' ) end [2025-03-30 14:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:52:25] Production.INFO: ==9036== Releasing lock... [2025-03-30 14:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:52:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:53:05 [end_date_ymd] => 2025-03-30 14:53:05 [RateCDR] => 1 ) [2025-03-30 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:53:05' and `end` < '2025-03-30 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:53:18] Production.INFO: count ==2263 [2025-03-30 14:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:53:05 - End Time 2025-03-30 14:53:05 [2025-03-30 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796919', 'tblTempUsageDetail_20' ) start [2025-03-30 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796919', 'tblTempUsageDetail_20' ) end [2025-03-30 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796919', 'tblTempVendorCDR_20' ) start [2025-03-30 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796919', 'tblTempVendorCDR_20' ) end [2025-03-30 14:53:19] Production.INFO: ProcessCDR(1,14796919,1,1,2) [2025-03-30 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796919', 'tblTempUsageDetail_20' ) start [2025-03-30 14:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796919', 'tblTempUsageDetail_20' ) end [2025-03-30 14:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:53:24] Production.INFO: ==9108== Releasing lock... [2025-03-30 14:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:53:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:54:05 [end_date_ymd] => 2025-03-30 14:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:54:05' and `end` < '2025-03-30 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-03-30 14:54:18] Production.INFO: count ==2291 [2025-03-30 14:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:54:05 - End Time 2025-03-30 14:54:05 [2025-03-30 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796924', 'tblTempUsageDetail_20' ) start [2025-03-30 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796924', 'tblTempUsageDetail_20' ) end [2025-03-30 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796924', 'tblTempVendorCDR_20' ) start [2025-03-30 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796924', 'tblTempVendorCDR_20' ) end [2025-03-30 14:54:19] Production.INFO: ProcessCDR(1,14796924,1,1,2) [2025-03-30 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796924', 'tblTempUsageDetail_20' ) start [2025-03-30 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796924', 'tblTempUsageDetail_20' ) end [2025-03-30 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:54:23] Production.INFO: ==9183== Releasing lock... [2025-03-30 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:54:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:55:05 [end_date_ymd] => 2025-03-30 14:55:05 [RateCDR] => 1 ) [2025-03-30 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:55:05' and `end` < '2025-03-30 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:55:18] Production.INFO: count ==2254 [2025-03-30 14:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 11:55:05 - End Time 2025-03-30 14:55:05 [2025-03-30 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796929', 'tblTempUsageDetail_20' ) start [2025-03-30 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796929', 'tblTempUsageDetail_20' ) end [2025-03-30 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796929', 'tblTempVendorCDR_20' ) start [2025-03-30 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796929', 'tblTempVendorCDR_20' ) end [2025-03-30 14:55:19] Production.INFO: ProcessCDR(1,14796929,1,1,2) [2025-03-30 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796929', 'tblTempUsageDetail_20' ) start [2025-03-30 14:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796929', 'tblTempUsageDetail_20' ) end [2025-03-30 14:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:55:24] Production.INFO: ==9258== Releasing lock... [2025-03-30 14:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:55:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:56:06 [end_date_ymd] => 2025-03-30 14:56:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 11:56:06' and `end` < '2025-03-30 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-03-30 14:56:19] Production.INFO: count ==2215 [2025-03-30 14:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:56:06 - End Time 2025-03-30 14:56:06 [2025-03-30 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796934', 'tblTempUsageDetail_20' ) start [2025-03-30 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796934', 'tblTempUsageDetail_20' ) end [2025-03-30 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796934', 'tblTempVendorCDR_20' ) start [2025-03-30 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796934', 'tblTempVendorCDR_20' ) end [2025-03-30 14:56:20] Production.INFO: ProcessCDR(1,14796934,1,1,2) [2025-03-30 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796934', 'tblTempUsageDetail_20' ) start [2025-03-30 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796934', 'tblTempUsageDetail_20' ) end [2025-03-30 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:56:25] Production.INFO: ==9333== Releasing lock... [2025-03-30 14:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:56:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:57:05 [end_date_ymd] => 2025-03-30 14:57:05 [RateCDR] => 1 ) [2025-03-30 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:57:05' and `end` < '2025-03-30 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:57:18] Production.INFO: count ==2172 [2025-03-30 14:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:57:05 - End Time 2025-03-30 14:57:05 [2025-03-30 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796939', 'tblTempUsageDetail_20' ) start [2025-03-30 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796939', 'tblTempUsageDetail_20' ) end [2025-03-30 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796939', 'tblTempVendorCDR_20' ) start [2025-03-30 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796939', 'tblTempVendorCDR_20' ) end [2025-03-30 14:57:19] Production.INFO: ProcessCDR(1,14796939,1,1,2) [2025-03-30 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796939', 'tblTempUsageDetail_20' ) start [2025-03-30 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796939', 'tblTempUsageDetail_20' ) end [2025-03-30 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:57:22] Production.INFO: ==9405== Releasing lock... [2025-03-30 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:57:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:58:06 [end_date_ymd] => 2025-03-30 14:58:06 [RateCDR] => 1 ) [2025-03-30 14: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-03-30 11:58:06' and `end` < '2025-03-30 14: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-03-30 14:58:19] Production.INFO: count ==2133 [2025-03-30 14:58:20] Production.ERROR: pbx CDR StartTime 2025-03-30 11:58:06 - End Time 2025-03-30 14:58:06 [2025-03-30 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796944', 'tblTempUsageDetail_20' ) start [2025-03-30 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796944', 'tblTempUsageDetail_20' ) end [2025-03-30 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796944', 'tblTempVendorCDR_20' ) start [2025-03-30 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796944', 'tblTempVendorCDR_20' ) end [2025-03-30 14:58:20] Production.INFO: ProcessCDR(1,14796944,1,1,2) [2025-03-30 14:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796944', 'tblTempUsageDetail_20' ) start [2025-03-30 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796944', 'tblTempUsageDetail_20' ) end [2025-03-30 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:58:23] Production.INFO: ==9478== Releasing lock... [2025-03-30 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:58:23] Production.INFO: 44 MB #Memory Used# [2025-03-30 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 11:59:05 [end_date_ymd] => 2025-03-30 14:59:05 [RateCDR] => 1 ) [2025-03-30 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 11:59:05' and `end` < '2025-03-30 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 14:59:18] Production.INFO: count ==2120 [2025-03-30 14:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 11:59:05 - End Time 2025-03-30 14:59:05 [2025-03-30 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796949', 'tblTempUsageDetail_20' ) start [2025-03-30 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796949', 'tblTempUsageDetail_20' ) end [2025-03-30 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796949', 'tblTempVendorCDR_20' ) start [2025-03-30 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796949', 'tblTempVendorCDR_20' ) end [2025-03-30 14:59:18] Production.INFO: ProcessCDR(1,14796949,1,1,2) [2025-03-30 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796949', 'tblTempUsageDetail_20' ) start [2025-03-30 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796949', 'tblTempUsageDetail_20' ) end [2025-03-30 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 14:59:22] Production.INFO: ==9551== Releasing lock... [2025-03-30 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 14:59:22] Production.INFO: 44 MB #Memory Used# [2025-03-30 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:00:06 [end_date_ymd] => 2025-03-30 15:00:06 [RateCDR] => 1 ) [2025-03-30 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:00:06' and `end` < '2025-03-30 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:00:19] Production.INFO: count ==2121 [2025-03-30 15:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:00:06 - End Time 2025-03-30 15:00:06 [2025-03-30 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796955', 'tblTempUsageDetail_20' ) start [2025-03-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796955', 'tblTempUsageDetail_20' ) end [2025-03-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796955', 'tblTempVendorCDR_20' ) start [2025-03-30 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796955', 'tblTempVendorCDR_20' ) end [2025-03-30 15:00:20] Production.INFO: ProcessCDR(1,14796955,1,1,2) [2025-03-30 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796955', 'tblTempUsageDetail_20' ) start [2025-03-30 15:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796955', 'tblTempUsageDetail_20' ) end [2025-03-30 15:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:00:26] Production.INFO: ==9627== Releasing lock... [2025-03-30 15:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:00:26] Production.INFO: 44 MB #Memory Used# [2025-03-30 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:01:05 [end_date_ymd] => 2025-03-30 15:01:05 [RateCDR] => 1 ) [2025-03-30 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:01:05' and `end` < '2025-03-30 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:01:18] Production.INFO: count ==2264 [2025-03-30 15:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:01:05 - End Time 2025-03-30 15:01:05 [2025-03-30 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796960', 'tblTempUsageDetail_20' ) start [2025-03-30 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796960', 'tblTempUsageDetail_20' ) end [2025-03-30 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796960', 'tblTempVendorCDR_20' ) start [2025-03-30 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796960', 'tblTempVendorCDR_20' ) end [2025-03-30 15:01:19] Production.INFO: ProcessCDR(1,14796960,1,1,2) [2025-03-30 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796960', 'tblTempUsageDetail_20' ) start [2025-03-30 15:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796960', 'tblTempUsageDetail_20' ) end [2025-03-30 15:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:01:24] Production.INFO: ==9720== Releasing lock... [2025-03-30 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:01:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:02:05 [end_date_ymd] => 2025-03-30 15:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:02:05' and `end` < '2025-03-30 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-03-30 15:02:18] Production.INFO: count ==2254 [2025-03-30 15:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:02:05 - End Time 2025-03-30 15:02:05 [2025-03-30 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796965', 'tblTempUsageDetail_20' ) start [2025-03-30 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796965', 'tblTempUsageDetail_20' ) end [2025-03-30 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796965', 'tblTempVendorCDR_20' ) start [2025-03-30 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796965', 'tblTempVendorCDR_20' ) end [2025-03-30 15:02:19] Production.INFO: ProcessCDR(1,14796965,1,1,2) [2025-03-30 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796965', 'tblTempUsageDetail_20' ) start [2025-03-30 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796965', 'tblTempUsageDetail_20' ) end [2025-03-30 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:02:24] Production.INFO: ==9870== Releasing lock... [2025-03-30 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:02:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:03:05 [end_date_ymd] => 2025-03-30 15:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:03:05' and `end` < '2025-03-30 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-03-30 15:03:18] Production.INFO: count ==2250 [2025-03-30 15:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:03:05 - End Time 2025-03-30 15:03:05 [2025-03-30 15:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796970', 'tblTempUsageDetail_20' ) start [2025-03-30 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796970', 'tblTempUsageDetail_20' ) end [2025-03-30 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796970', 'tblTempVendorCDR_20' ) start [2025-03-30 15:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796970', 'tblTempVendorCDR_20' ) end [2025-03-30 15:03:19] Production.INFO: ProcessCDR(1,14796970,1,1,2) [2025-03-30 15:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796970', 'tblTempUsageDetail_20' ) start [2025-03-30 15:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796970', 'tblTempUsageDetail_20' ) end [2025-03-30 15:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:03:24] Production.INFO: ==9938== Releasing lock... [2025-03-30 15:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:03:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:04:05 [end_date_ymd] => 2025-03-30 15:04:05 [RateCDR] => 1 ) [2025-03-30 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:04:05' and `end` < '2025-03-30 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:04:18] Production.INFO: count ==2257 [2025-03-30 15:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:04:05 - End Time 2025-03-30 15:04:05 [2025-03-30 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796975', 'tblTempUsageDetail_20' ) start [2025-03-30 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796975', 'tblTempUsageDetail_20' ) end [2025-03-30 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796975', 'tblTempVendorCDR_20' ) start [2025-03-30 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796975', 'tblTempVendorCDR_20' ) end [2025-03-30 15:04:19] Production.INFO: ProcessCDR(1,14796975,1,1,2) [2025-03-30 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796975', 'tblTempUsageDetail_20' ) start [2025-03-30 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796975', 'tblTempUsageDetail_20' ) end [2025-03-30 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:04:23] Production.INFO: ==10013== Releasing lock... [2025-03-30 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:04:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:05:04 [end_date_ymd] => 2025-03-30 15:05:04 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:05:04' and `end` < '2025-03-30 15: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-03-30 15:05:17] Production.INFO: count ==2251 [2025-03-30 15:05:18] Production.ERROR: pbx CDR StartTime 2025-03-30 12:05:04 - End Time 2025-03-30 15:05:04 [2025-03-30 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796980', 'tblTempUsageDetail_20' ) start [2025-03-30 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796980', 'tblTempUsageDetail_20' ) end [2025-03-30 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796980', 'tblTempVendorCDR_20' ) start [2025-03-30 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796980', 'tblTempVendorCDR_20' ) end [2025-03-30 15:05:18] Production.INFO: ProcessCDR(1,14796980,1,1,2) [2025-03-30 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796980', 'tblTempUsageDetail_20' ) start [2025-03-30 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796980', 'tblTempUsageDetail_20' ) end [2025-03-30 15:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:05:21] Production.INFO: ==10206== Releasing lock... [2025-03-30 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:05:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:06:06 [end_date_ymd] => 2025-03-30 15:06:06 [RateCDR] => 1 ) [2025-03-30 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:06:06' and `end` < '2025-03-30 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:06:18] Production.INFO: count ==2246 [2025-03-30 15:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:06:06 - End Time 2025-03-30 15:06:06 [2025-03-30 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796985', 'tblTempUsageDetail_20' ) start [2025-03-30 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796985', 'tblTempUsageDetail_20' ) end [2025-03-30 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796985', 'tblTempVendorCDR_20' ) start [2025-03-30 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796985', 'tblTempVendorCDR_20' ) end [2025-03-30 15:06:19] Production.INFO: ProcessCDR(1,14796985,1,1,2) [2025-03-30 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796985', 'tblTempUsageDetail_20' ) start [2025-03-30 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796985', 'tblTempUsageDetail_20' ) end [2025-03-30 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:06:23] Production.INFO: ==10286== Releasing lock... [2025-03-30 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:06:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:07:06 [end_date_ymd] => 2025-03-30 15:07:06 [RateCDR] => 1 ) [2025-03-30 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:07:06' and `end` < '2025-03-30 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:07:18] Production.INFO: count ==2250 [2025-03-30 15:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:07:06 - End Time 2025-03-30 15:07:06 [2025-03-30 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796990', 'tblTempUsageDetail_20' ) start [2025-03-30 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796990', 'tblTempUsageDetail_20' ) end [2025-03-30 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796990', 'tblTempVendorCDR_20' ) start [2025-03-30 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796990', 'tblTempVendorCDR_20' ) end [2025-03-30 15:07:19] Production.INFO: ProcessCDR(1,14796990,1,1,2) [2025-03-30 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796990', 'tblTempUsageDetail_20' ) start [2025-03-30 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796990', 'tblTempUsageDetail_20' ) end [2025-03-30 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:07:25] Production.INFO: ==10359== Releasing lock... [2025-03-30 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:07:25] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:08:05 [end_date_ymd] => 2025-03-30 15:08:05 [RateCDR] => 1 ) [2025-03-30 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:08:05' and `end` < '2025-03-30 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:08:18] Production.INFO: count ==2257 [2025-03-30 15:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:08:05 - End Time 2025-03-30 15:08:05 [2025-03-30 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796995', 'tblTempUsageDetail_20' ) start [2025-03-30 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14796995', 'tblTempUsageDetail_20' ) end [2025-03-30 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796995', 'tblTempVendorCDR_20' ) start [2025-03-30 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14796995', 'tblTempVendorCDR_20' ) end [2025-03-30 15:08:19] Production.INFO: ProcessCDR(1,14796995,1,1,2) [2025-03-30 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14796995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14796995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14796995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14796995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796995', 'tblTempUsageDetail_20' ) start [2025-03-30 15:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14796995', 'tblTempUsageDetail_20' ) end [2025-03-30 15:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:08:24] Production.INFO: ==10491== Releasing lock... [2025-03-30 15:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:08:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:09:06 [end_date_ymd] => 2025-03-30 15:09:06 [RateCDR] => 1 ) [2025-03-30 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:09:06' and `end` < '2025-03-30 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:09:18] Production.INFO: count ==2266 [2025-03-30 15:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:09:06 - End Time 2025-03-30 15:09:06 [2025-03-30 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797000', 'tblTempUsageDetail_20' ) start [2025-03-30 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797000', 'tblTempUsageDetail_20' ) end [2025-03-30 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797000', 'tblTempVendorCDR_20' ) start [2025-03-30 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797000', 'tblTempVendorCDR_20' ) end [2025-03-30 15:09:20] Production.INFO: ProcessCDR(1,14797000,1,1,2) [2025-03-30 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797000', 'tblTempUsageDetail_20' ) start [2025-03-30 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797000', 'tblTempUsageDetail_20' ) end [2025-03-30 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:09:23] Production.INFO: ==10581== Releasing lock... [2025-03-30 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:09:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:10:06 [end_date_ymd] => 2025-03-30 15:10:06 [RateCDR] => 1 ) [2025-03-30 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:10:06' and `end` < '2025-03-30 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:10:19] Production.INFO: count ==2255 [2025-03-30 15:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:10:06 - End Time 2025-03-30 15:10:06 [2025-03-30 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797006', 'tblTempUsageDetail_20' ) start [2025-03-30 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797006', 'tblTempUsageDetail_20' ) end [2025-03-30 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797006', 'tblTempVendorCDR_20' ) start [2025-03-30 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797006', 'tblTempVendorCDR_20' ) end [2025-03-30 15:10:20] Production.INFO: ProcessCDR(1,14797006,1,1,2) [2025-03-30 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797006', 'tblTempUsageDetail_20' ) start [2025-03-30 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797006', 'tblTempUsageDetail_20' ) end [2025-03-30 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:10:24] Production.INFO: ==10674== Releasing lock... [2025-03-30 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:10:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:11:06 [end_date_ymd] => 2025-03-30 15:11:06 [RateCDR] => 1 ) [2025-03-30 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:11:06' and `end` < '2025-03-30 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:11:18] Production.INFO: count ==2242 [2025-03-30 15:11:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:11:06 - End Time 2025-03-30 15:11:06 [2025-03-30 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797011', 'tblTempUsageDetail_20' ) start [2025-03-30 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797011', 'tblTempUsageDetail_20' ) end [2025-03-30 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797011', 'tblTempVendorCDR_20' ) start [2025-03-30 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797011', 'tblTempVendorCDR_20' ) end [2025-03-30 15:11:19] Production.INFO: ProcessCDR(1,14797011,1,1,2) [2025-03-30 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797011', 'tblTempUsageDetail_20' ) start [2025-03-30 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797011', 'tblTempUsageDetail_20' ) end [2025-03-30 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:11:23] Production.INFO: ==10749== Releasing lock... [2025-03-30 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:11:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:12:06 [end_date_ymd] => 2025-03-30 15:12:06 [RateCDR] => 1 ) [2025-03-30 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:12:06' and `end` < '2025-03-30 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:12:19] Production.INFO: count ==2243 [2025-03-30 15:12:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:12:06 - End Time 2025-03-30 15:12:06 [2025-03-30 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797016', 'tblTempUsageDetail_20' ) start [2025-03-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797016', 'tblTempUsageDetail_20' ) end [2025-03-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797016', 'tblTempVendorCDR_20' ) start [2025-03-30 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797016', 'tblTempVendorCDR_20' ) end [2025-03-30 15:12:20] Production.INFO: ProcessCDR(1,14797016,1,1,2) [2025-03-30 15:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797016', 'tblTempUsageDetail_20' ) start [2025-03-30 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797016', 'tblTempUsageDetail_20' ) end [2025-03-30 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:12:25] Production.INFO: ==10898== Releasing lock... [2025-03-30 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:12:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:13:05 [end_date_ymd] => 2025-03-30 15:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:13:05' and `end` < '2025-03-30 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-03-30 15:13:18] Production.INFO: count ==2397 [2025-03-30 15:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:13:05 - End Time 2025-03-30 15:13:05 [2025-03-30 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797021', 'tblTempUsageDetail_20' ) start [2025-03-30 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797021', 'tblTempUsageDetail_20' ) end [2025-03-30 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797021', 'tblTempVendorCDR_20' ) start [2025-03-30 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797021', 'tblTempVendorCDR_20' ) end [2025-03-30 15:13:19] Production.INFO: ProcessCDR(1,14797021,1,1,2) [2025-03-30 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797021', 'tblTempUsageDetail_20' ) start [2025-03-30 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797021', 'tblTempUsageDetail_20' ) end [2025-03-30 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:13:24] Production.INFO: ==10969== Releasing lock... [2025-03-30 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:13:24] Production.INFO: 46 MB #Memory Used# [2025-03-30 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:14:05 [end_date_ymd] => 2025-03-30 15:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:14:05' and `end` < '2025-03-30 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-03-30 15:14:18] Production.INFO: count ==2396 [2025-03-30 15:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:14:05 - End Time 2025-03-30 15:14:05 [2025-03-30 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797026', 'tblTempUsageDetail_20' ) start [2025-03-30 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797026', 'tblTempUsageDetail_20' ) end [2025-03-30 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797026', 'tblTempVendorCDR_20' ) start [2025-03-30 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797026', 'tblTempVendorCDR_20' ) end [2025-03-30 15:14:19] Production.INFO: ProcessCDR(1,14797026,1,1,2) [2025-03-30 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797026', 'tblTempUsageDetail_20' ) start [2025-03-30 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797026', 'tblTempUsageDetail_20' ) end [2025-03-30 15:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:14:23] Production.INFO: ==11048== Releasing lock... [2025-03-30 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:14:23] Production.INFO: 46 MB #Memory Used# [2025-03-30 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:15:05 [end_date_ymd] => 2025-03-30 15:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:15:05' and `end` < '2025-03-30 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-03-30 15:15:18] Production.INFO: count ==2438 [2025-03-30 15:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:15:05 - End Time 2025-03-30 15:15:05 [2025-03-30 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797031', 'tblTempUsageDetail_20' ) start [2025-03-30 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797031', 'tblTempUsageDetail_20' ) end [2025-03-30 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797031', 'tblTempVendorCDR_20' ) start [2025-03-30 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797031', 'tblTempVendorCDR_20' ) end [2025-03-30 15:15:19] Production.INFO: ProcessCDR(1,14797031,1,1,2) [2025-03-30 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797031', 'tblTempUsageDetail_20' ) start [2025-03-30 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797031', 'tblTempUsageDetail_20' ) end [2025-03-30 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:15:23] Production.INFO: ==11204== Releasing lock... [2025-03-30 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:15:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:16:06 [end_date_ymd] => 2025-03-30 15:16:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:16:06' and `end` < '2025-03-30 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-03-30 15:16:18] Production.INFO: count ==2438 [2025-03-30 15:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:16:06 - End Time 2025-03-30 15:16:06 [2025-03-30 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797036', 'tblTempUsageDetail_20' ) start [2025-03-30 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797036', 'tblTempUsageDetail_20' ) end [2025-03-30 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797036', 'tblTempVendorCDR_20' ) start [2025-03-30 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797036', 'tblTempVendorCDR_20' ) end [2025-03-30 15:16:19] Production.INFO: ProcessCDR(1,14797036,1,1,2) [2025-03-30 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797036', 'tblTempUsageDetail_20' ) start [2025-03-30 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797036', 'tblTempUsageDetail_20' ) end [2025-03-30 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:16:24] Production.INFO: ==11276== Releasing lock... [2025-03-30 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:16:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:17:05 [end_date_ymd] => 2025-03-30 15:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:17:05' and `end` < '2025-03-30 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-03-30 15:17:18] Production.INFO: count ==2430 [2025-03-30 15:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:17:05 - End Time 2025-03-30 15:17:05 [2025-03-30 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797041', 'tblTempUsageDetail_20' ) start [2025-03-30 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797041', 'tblTempUsageDetail_20' ) end [2025-03-30 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797041', 'tblTempVendorCDR_20' ) start [2025-03-30 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797041', 'tblTempVendorCDR_20' ) end [2025-03-30 15:17:19] Production.INFO: ProcessCDR(1,14797041,1,1,2) [2025-03-30 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797041', 'tblTempUsageDetail_20' ) start [2025-03-30 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797041', 'tblTempUsageDetail_20' ) end [2025-03-30 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:17:22] Production.INFO: ==11348== Releasing lock... [2025-03-30 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:17:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:18:05 [end_date_ymd] => 2025-03-30 15:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:18:05' and `end` < '2025-03-30 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-03-30 15:18:18] Production.INFO: count ==2429 [2025-03-30 15:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:18:05 - End Time 2025-03-30 15:18:05 [2025-03-30 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797046', 'tblTempUsageDetail_20' ) start [2025-03-30 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797046', 'tblTempUsageDetail_20' ) end [2025-03-30 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797046', 'tblTempVendorCDR_20' ) start [2025-03-30 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797046', 'tblTempVendorCDR_20' ) end [2025-03-30 15:18:19] Production.INFO: ProcessCDR(1,14797046,1,1,2) [2025-03-30 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797046', 'tblTempUsageDetail_20' ) start [2025-03-30 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797046', 'tblTempUsageDetail_20' ) end [2025-03-30 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:18:22] Production.INFO: ==11420== Releasing lock... [2025-03-30 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:18:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:19:05 [end_date_ymd] => 2025-03-30 15:19:05 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:19:05' and `end` < '2025-03-30 15: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-03-30 15:19:18] Production.INFO: count ==2427 [2025-03-30 15:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:19:05 - End Time 2025-03-30 15:19:05 [2025-03-30 15:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797051', 'tblTempUsageDetail_20' ) start [2025-03-30 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797051', 'tblTempUsageDetail_20' ) end [2025-03-30 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797051', 'tblTempVendorCDR_20' ) start [2025-03-30 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797051', 'tblTempVendorCDR_20' ) end [2025-03-30 15:19:19] Production.INFO: ProcessCDR(1,14797051,1,1,2) [2025-03-30 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797051', 'tblTempUsageDetail_20' ) start [2025-03-30 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797051', 'tblTempUsageDetail_20' ) end [2025-03-30 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:19:22] Production.INFO: ==11494== Releasing lock... [2025-03-30 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:19:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:20:06 [end_date_ymd] => 2025-03-30 15:20:06 [RateCDR] => 1 ) [2025-03-30 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:20:06' and `end` < '2025-03-30 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:20:19] Production.INFO: count ==2426 [2025-03-30 15:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:20:06 - End Time 2025-03-30 15:20:06 [2025-03-30 15:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797057', 'tblTempUsageDetail_20' ) start [2025-03-30 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797057', 'tblTempUsageDetail_20' ) end [2025-03-30 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797057', 'tblTempVendorCDR_20' ) start [2025-03-30 15:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797057', 'tblTempVendorCDR_20' ) end [2025-03-30 15:20:20] Production.INFO: ProcessCDR(1,14797057,1,1,2) [2025-03-30 15:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797057', 'tblTempUsageDetail_20' ) start [2025-03-30 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797057', 'tblTempUsageDetail_20' ) end [2025-03-30 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:20:24] Production.INFO: ==11611== Releasing lock... [2025-03-30 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:20:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:21:05 [end_date_ymd] => 2025-03-30 15:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:21:05' and `end` < '2025-03-30 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-03-30 15:21:18] Production.INFO: count ==2430 [2025-03-30 15:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:21:05 - End Time 2025-03-30 15:21:05 [2025-03-30 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797062', 'tblTempUsageDetail_20' ) start [2025-03-30 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797062', 'tblTempUsageDetail_20' ) end [2025-03-30 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797062', 'tblTempVendorCDR_20' ) start [2025-03-30 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797062', 'tblTempVendorCDR_20' ) end [2025-03-30 15:21:19] Production.INFO: ProcessCDR(1,14797062,1,1,2) [2025-03-30 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797062', 'tblTempUsageDetail_20' ) start [2025-03-30 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797062', 'tblTempUsageDetail_20' ) end [2025-03-30 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:21:23] Production.INFO: ==11686== Releasing lock... [2025-03-30 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:21:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:22:06 [end_date_ymd] => 2025-03-30 15:22:06 [RateCDR] => 1 ) [2025-03-30 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:22:06' and `end` < '2025-03-30 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:22:18] Production.INFO: count ==2439 [2025-03-30 15:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:22:06 - End Time 2025-03-30 15:22:06 [2025-03-30 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797067', 'tblTempUsageDetail_20' ) start [2025-03-30 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797067', 'tblTempUsageDetail_20' ) end [2025-03-30 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797067', 'tblTempVendorCDR_20' ) start [2025-03-30 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797067', 'tblTempVendorCDR_20' ) end [2025-03-30 15:22:20] Production.INFO: ProcessCDR(1,14797067,1,1,2) [2025-03-30 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797067', 'tblTempUsageDetail_20' ) start [2025-03-30 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797067', 'tblTempUsageDetail_20' ) end [2025-03-30 15:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:22:25] Production.INFO: ==11758== Releasing lock... [2025-03-30 15:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:22:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:23:05 [end_date_ymd] => 2025-03-30 15:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:23:05' and `end` < '2025-03-30 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-03-30 15:23:18] Production.INFO: count ==2445 [2025-03-30 15:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:23:05 - End Time 2025-03-30 15:23:05 [2025-03-30 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797072', 'tblTempUsageDetail_20' ) start [2025-03-30 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797072', 'tblTempUsageDetail_20' ) end [2025-03-30 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797072', 'tblTempVendorCDR_20' ) start [2025-03-30 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797072', 'tblTempVendorCDR_20' ) end [2025-03-30 15:23:19] Production.INFO: ProcessCDR(1,14797072,1,1,2) [2025-03-30 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797072', 'tblTempUsageDetail_20' ) start [2025-03-30 15:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797072', 'tblTempUsageDetail_20' ) end [2025-03-30 15:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:23:22] Production.INFO: ==11834== Releasing lock... [2025-03-30 15:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:23:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:24:06 [end_date_ymd] => 2025-03-30 15:24:06 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:24:06' and `end` < '2025-03-30 15: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-03-30 15:24:19] Production.INFO: count ==2448 [2025-03-30 15:24:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:24:06 - End Time 2025-03-30 15:24:06 [2025-03-30 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797077', 'tblTempUsageDetail_20' ) start [2025-03-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797077', 'tblTempUsageDetail_20' ) end [2025-03-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797077', 'tblTempVendorCDR_20' ) start [2025-03-30 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797077', 'tblTempVendorCDR_20' ) end [2025-03-30 15:24:20] Production.INFO: ProcessCDR(1,14797077,1,1,2) [2025-03-30 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797077', 'tblTempUsageDetail_20' ) start [2025-03-30 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797077', 'tblTempUsageDetail_20' ) end [2025-03-30 15:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:24:24] Production.INFO: ==11914== Releasing lock... [2025-03-30 15:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:24:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:25:05 [end_date_ymd] => 2025-03-30 15:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:25:05' and `end` < '2025-03-30 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-03-30 15:25:18] Production.INFO: count ==2452 [2025-03-30 15:25:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:25:05 - End Time 2025-03-30 15:25:05 [2025-03-30 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797082', 'tblTempUsageDetail_20' ) start [2025-03-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797082', 'tblTempUsageDetail_20' ) end [2025-03-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797082', 'tblTempVendorCDR_20' ) start [2025-03-30 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797082', 'tblTempVendorCDR_20' ) end [2025-03-30 15:25:19] Production.INFO: ProcessCDR(1,14797082,1,1,2) [2025-03-30 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797082', 'tblTempUsageDetail_20' ) start [2025-03-30 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797082', 'tblTempUsageDetail_20' ) end [2025-03-30 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:25:23] Production.INFO: ==11994== Releasing lock... [2025-03-30 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:25:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:26:05 [end_date_ymd] => 2025-03-30 15:26:05 [RateCDR] => 1 ) [2025-03-30 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:26:05' and `end` < '2025-03-30 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:26:18] Production.INFO: count ==2452 [2025-03-30 15:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:26:05 - End Time 2025-03-30 15:26:05 [2025-03-30 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797087', 'tblTempUsageDetail_20' ) start [2025-03-30 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797087', 'tblTempUsageDetail_20' ) end [2025-03-30 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797087', 'tblTempVendorCDR_20' ) start [2025-03-30 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797087', 'tblTempVendorCDR_20' ) end [2025-03-30 15:26:19] Production.INFO: ProcessCDR(1,14797087,1,1,2) [2025-03-30 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797087', 'tblTempUsageDetail_20' ) start [2025-03-30 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797087', 'tblTempUsageDetail_20' ) end [2025-03-30 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:26:24] Production.INFO: ==12075== Releasing lock... [2025-03-30 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:26:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:27:05 [end_date_ymd] => 2025-03-30 15:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:27:05' and `end` < '2025-03-30 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-03-30 15:27:17] Production.INFO: count ==2453 [2025-03-30 15:27:18] Production.ERROR: pbx CDR StartTime 2025-03-30 12:27:05 - End Time 2025-03-30 15:27:05 [2025-03-30 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797092', 'tblTempUsageDetail_20' ) start [2025-03-30 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797092', 'tblTempUsageDetail_20' ) end [2025-03-30 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797092', 'tblTempVendorCDR_20' ) start [2025-03-30 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797092', 'tblTempVendorCDR_20' ) end [2025-03-30 15:27:19] Production.INFO: ProcessCDR(1,14797092,1,1,2) [2025-03-30 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797092', 'tblTempUsageDetail_20' ) start [2025-03-30 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797092', 'tblTempUsageDetail_20' ) end [2025-03-30 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:27:23] Production.INFO: ==12151== Releasing lock... [2025-03-30 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:27:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:28:05 [end_date_ymd] => 2025-03-30 15:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:28:05' and `end` < '2025-03-30 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-03-30 15:28:18] Production.INFO: count ==2469 [2025-03-30 15:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:28:05 - End Time 2025-03-30 15:28:05 [2025-03-30 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797097', 'tblTempUsageDetail_20' ) start [2025-03-30 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797097', 'tblTempUsageDetail_20' ) end [2025-03-30 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797097', 'tblTempVendorCDR_20' ) start [2025-03-30 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797097', 'tblTempVendorCDR_20' ) end [2025-03-30 15:28:19] Production.INFO: ProcessCDR(1,14797097,1,1,2) [2025-03-30 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797097', 'tblTempUsageDetail_20' ) start [2025-03-30 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797097', 'tblTempUsageDetail_20' ) end [2025-03-30 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:28:24] Production.INFO: ==12231== Releasing lock... [2025-03-30 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:28:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:29:06 [end_date_ymd] => 2025-03-30 15:29:06 [RateCDR] => 1 ) [2025-03-30 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:29:06' and `end` < '2025-03-30 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:29:18] Production.INFO: count ==2475 [2025-03-30 15:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:29:06 - End Time 2025-03-30 15:29:06 [2025-03-30 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797102', 'tblTempUsageDetail_20' ) start [2025-03-30 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797102', 'tblTempUsageDetail_20' ) end [2025-03-30 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797102', 'tblTempVendorCDR_20' ) start [2025-03-30 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797102', 'tblTempVendorCDR_20' ) end [2025-03-30 15:29:19] Production.INFO: ProcessCDR(1,14797102,1,1,2) [2025-03-30 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797102', 'tblTempUsageDetail_20' ) start [2025-03-30 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797102', 'tblTempUsageDetail_20' ) end [2025-03-30 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:29:23] Production.INFO: ==12308== Releasing lock... [2025-03-30 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:29:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:30:06 [end_date_ymd] => 2025-03-30 15:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:30:06' and `end` < '2025-03-30 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-03-30 15:30:19] Production.INFO: count ==2470 [2025-03-30 15:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:30:06 - End Time 2025-03-30 15:30:06 [2025-03-30 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797108', 'tblTempUsageDetail_20' ) start [2025-03-30 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797108', 'tblTempUsageDetail_20' ) end [2025-03-30 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797108', 'tblTempVendorCDR_20' ) start [2025-03-30 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797108', 'tblTempVendorCDR_20' ) end [2025-03-30 15:30:20] Production.INFO: ProcessCDR(1,14797108,1,1,2) [2025-03-30 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797108', 'tblTempUsageDetail_20' ) start [2025-03-30 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797108', 'tblTempUsageDetail_20' ) end [2025-03-30 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:30:24] Production.INFO: ==12388== Releasing lock... [2025-03-30 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:30:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:31:05 [end_date_ymd] => 2025-03-30 15:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:31:05' and `end` < '2025-03-30 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-03-30 15:31:18] Production.INFO: count ==2490 [2025-03-30 15:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:31:05 - End Time 2025-03-30 15:31:05 [2025-03-30 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797113', 'tblTempUsageDetail_20' ) start [2025-03-30 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797113', 'tblTempUsageDetail_20' ) end [2025-03-30 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797113', 'tblTempVendorCDR_20' ) start [2025-03-30 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797113', 'tblTempVendorCDR_20' ) end [2025-03-30 15:31:19] Production.INFO: ProcessCDR(1,14797113,1,1,2) [2025-03-30 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797113', 'tblTempUsageDetail_20' ) start [2025-03-30 15:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797113', 'tblTempUsageDetail_20' ) end [2025-03-30 15:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:31:22] Production.INFO: ==12467== Releasing lock... [2025-03-30 15:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:31:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:32:06 [end_date_ymd] => 2025-03-30 15:32:06 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:32:06' and `end` < '2025-03-30 15: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-03-30 15:32:19] Production.INFO: count ==2493 [2025-03-30 15:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:32:06 - End Time 2025-03-30 15:32:06 [2025-03-30 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797118', 'tblTempUsageDetail_20' ) start [2025-03-30 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797118', 'tblTempUsageDetail_20' ) end [2025-03-30 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797118', 'tblTempVendorCDR_20' ) start [2025-03-30 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797118', 'tblTempVendorCDR_20' ) end [2025-03-30 15:32:20] Production.INFO: ProcessCDR(1,14797118,1,1,2) [2025-03-30 15:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797118', 'tblTempUsageDetail_20' ) start [2025-03-30 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797118', 'tblTempUsageDetail_20' ) end [2025-03-30 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:32:25] Production.INFO: ==12546== Releasing lock... [2025-03-30 15:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:32:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:33:06 [end_date_ymd] => 2025-03-30 15:33:06 [RateCDR] => 1 ) [2025-03-30 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:33:06' and `end` < '2025-03-30 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:33:19] Production.INFO: count ==2480 [2025-03-30 15:33:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:33:06 - End Time 2025-03-30 15:33:06 [2025-03-30 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797123', 'tblTempUsageDetail_20' ) start [2025-03-30 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797123', 'tblTempUsageDetail_20' ) end [2025-03-30 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797123', 'tblTempVendorCDR_20' ) start [2025-03-30 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797123', 'tblTempVendorCDR_20' ) end [2025-03-30 15:33:20] Production.INFO: ProcessCDR(1,14797123,1,1,2) [2025-03-30 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797123', 'tblTempUsageDetail_20' ) start [2025-03-30 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797123', 'tblTempUsageDetail_20' ) end [2025-03-30 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:33:23] Production.INFO: ==12629== Releasing lock... [2025-03-30 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:33:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:34:06 [end_date_ymd] => 2025-03-30 15:34:06 [RateCDR] => 1 ) [2025-03-30 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:34:06' and `end` < '2025-03-30 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:34:19] Production.INFO: count ==2440 [2025-03-30 15:34:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:34:06 - End Time 2025-03-30 15:34:06 [2025-03-30 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797128', 'tblTempUsageDetail_20' ) start [2025-03-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797128', 'tblTempUsageDetail_20' ) end [2025-03-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797128', 'tblTempVendorCDR_20' ) start [2025-03-30 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797128', 'tblTempVendorCDR_20' ) end [2025-03-30 15:34:20] Production.INFO: ProcessCDR(1,14797128,1,1,2) [2025-03-30 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797128', 'tblTempUsageDetail_20' ) start [2025-03-30 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797128', 'tblTempUsageDetail_20' ) end [2025-03-30 15:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:34:23] Production.INFO: ==12710== Releasing lock... [2025-03-30 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:35:06 [end_date_ymd] => 2025-03-30 15:35:06 [RateCDR] => 1 ) [2025-03-30 15:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:35:06' and `end` < '2025-03-30 15:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:35:18] Production.INFO: count ==2409 [2025-03-30 15:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:35:06 - End Time 2025-03-30 15:35:06 [2025-03-30 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797133', 'tblTempUsageDetail_20' ) start [2025-03-30 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797133', 'tblTempUsageDetail_20' ) end [2025-03-30 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797133', 'tblTempVendorCDR_20' ) start [2025-03-30 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797133', 'tblTempVendorCDR_20' ) end [2025-03-30 15:35:19] Production.INFO: ProcessCDR(1,14797133,1,1,2) [2025-03-30 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797133', 'tblTempUsageDetail_20' ) start [2025-03-30 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797133', 'tblTempUsageDetail_20' ) end [2025-03-30 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:35:25] Production.INFO: ==12800== Releasing lock... [2025-03-30 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:35:25] Production.INFO: 46 MB #Memory Used# [2025-03-30 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:36:05 [end_date_ymd] => 2025-03-30 15:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:36:05' and `end` < '2025-03-30 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-03-30 15:36:18] Production.INFO: count ==2370 [2025-03-30 15:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:36:05 - End Time 2025-03-30 15:36:05 [2025-03-30 15:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797138', 'tblTempUsageDetail_20' ) start [2025-03-30 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797138', 'tblTempUsageDetail_20' ) end [2025-03-30 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797138', 'tblTempVendorCDR_20' ) start [2025-03-30 15:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797138', 'tblTempVendorCDR_20' ) end [2025-03-30 15:36:19] Production.INFO: ProcessCDR(1,14797138,1,1,2) [2025-03-30 15:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797138', 'tblTempUsageDetail_20' ) start [2025-03-30 15:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797138', 'tblTempUsageDetail_20' ) end [2025-03-30 15:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:36:24] Production.INFO: ==12916== Releasing lock... [2025-03-30 15:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:36:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:37:06 [end_date_ymd] => 2025-03-30 15:37:06 [RateCDR] => 1 ) [2025-03-30 15:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:37:06' and `end` < '2025-03-30 15:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:37:18] Production.INFO: count ==2350 [2025-03-30 15:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:37:06 - End Time 2025-03-30 15:37:06 [2025-03-30 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797143', 'tblTempUsageDetail_20' ) start [2025-03-30 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797143', 'tblTempUsageDetail_20' ) end [2025-03-30 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797143', 'tblTempVendorCDR_20' ) start [2025-03-30 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797143', 'tblTempVendorCDR_20' ) end [2025-03-30 15:37:19] Production.INFO: ProcessCDR(1,14797143,1,1,2) [2025-03-30 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797143', 'tblTempUsageDetail_20' ) start [2025-03-30 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797143', 'tblTempUsageDetail_20' ) end [2025-03-30 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:37:23] Production.INFO: ==12992== Releasing lock... [2025-03-30 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:37:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:38:05 [end_date_ymd] => 2025-03-30 15:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:38:05' and `end` < '2025-03-30 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-03-30 15:38:18] Production.INFO: count ==2346 [2025-03-30 15:38:18] Production.ERROR: pbx CDR StartTime 2025-03-30 12:38:05 - End Time 2025-03-30 15:38:05 [2025-03-30 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797148', 'tblTempUsageDetail_20' ) start [2025-03-30 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797148', 'tblTempUsageDetail_20' ) end [2025-03-30 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797148', 'tblTempVendorCDR_20' ) start [2025-03-30 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797148', 'tblTempVendorCDR_20' ) end [2025-03-30 15:38:18] Production.INFO: ProcessCDR(1,14797148,1,1,2) [2025-03-30 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797148', 'tblTempUsageDetail_20' ) start [2025-03-30 15:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797148', 'tblTempUsageDetail_20' ) end [2025-03-30 15:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:38:23] Production.INFO: ==13070== Releasing lock... [2025-03-30 15:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:38:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:39:05 [end_date_ymd] => 2025-03-30 15:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:39:05' and `end` < '2025-03-30 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-03-30 15:39:18] Production.INFO: count ==2344 [2025-03-30 15:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:39:05 - End Time 2025-03-30 15:39:05 [2025-03-30 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797153', 'tblTempUsageDetail_20' ) start [2025-03-30 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797153', 'tblTempUsageDetail_20' ) end [2025-03-30 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797153', 'tblTempVendorCDR_20' ) start [2025-03-30 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797153', 'tblTempVendorCDR_20' ) end [2025-03-30 15:39:19] Production.INFO: ProcessCDR(1,14797153,1,1,2) [2025-03-30 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797153', 'tblTempUsageDetail_20' ) start [2025-03-30 15:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797153', 'tblTempUsageDetail_20' ) end [2025-03-30 15:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:39:24] Production.INFO: ==13148== Releasing lock... [2025-03-30 15:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:39:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:40:06 [end_date_ymd] => 2025-03-30 15:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:40:06' and `end` < '2025-03-30 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-03-30 15:40:19] Production.INFO: count ==2342 [2025-03-30 15:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:40:06 - End Time 2025-03-30 15:40:06 [2025-03-30 15:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797159', 'tblTempUsageDetail_20' ) start [2025-03-30 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797159', 'tblTempUsageDetail_20' ) end [2025-03-30 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797159', 'tblTempVendorCDR_20' ) start [2025-03-30 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797159', 'tblTempVendorCDR_20' ) end [2025-03-30 15:40:20] Production.INFO: ProcessCDR(1,14797159,1,1,2) [2025-03-30 15:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797159', 'tblTempUsageDetail_20' ) start [2025-03-30 15:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797159', 'tblTempUsageDetail_20' ) end [2025-03-30 15:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:40:25] Production.INFO: ==13227== Releasing lock... [2025-03-30 15:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:40:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:41:06 [end_date_ymd] => 2025-03-30 15:41:06 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:41:06' and `end` < '2025-03-30 15: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-03-30 15:41:19] Production.INFO: count ==2313 [2025-03-30 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:41:06 - End Time 2025-03-30 15:41:06 [2025-03-30 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797164', 'tblTempUsageDetail_20' ) start [2025-03-30 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797164', 'tblTempUsageDetail_20' ) end [2025-03-30 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797164', 'tblTempVendorCDR_20' ) start [2025-03-30 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797164', 'tblTempVendorCDR_20' ) end [2025-03-30 15:41:20] Production.INFO: ProcessCDR(1,14797164,1,1,2) [2025-03-30 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797164', 'tblTempUsageDetail_20' ) start [2025-03-30 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797164', 'tblTempUsageDetail_20' ) end [2025-03-30 15:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:41:25] Production.INFO: ==13312== Releasing lock... [2025-03-30 15:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:41:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:42:06 [end_date_ymd] => 2025-03-30 15:42:06 [RateCDR] => 1 ) [2025-03-30 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:42:06' and `end` < '2025-03-30 15: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-03-30 15:42:18] Production.INFO: count ==2321 [2025-03-30 15:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:42:06 - End Time 2025-03-30 15:42:06 [2025-03-30 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797169', 'tblTempUsageDetail_20' ) start [2025-03-30 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797169', 'tblTempUsageDetail_20' ) end [2025-03-30 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797169', 'tblTempVendorCDR_20' ) start [2025-03-30 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797169', 'tblTempVendorCDR_20' ) end [2025-03-30 15:42:19] Production.INFO: ProcessCDR(1,14797169,1,1,2) [2025-03-30 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797169', 'tblTempUsageDetail_20' ) start [2025-03-30 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797169', 'tblTempUsageDetail_20' ) end [2025-03-30 15:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:42:24] Production.INFO: ==13394== Releasing lock... [2025-03-30 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:42:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:43:06 [end_date_ymd] => 2025-03-30 15:43:06 [RateCDR] => 1 ) [2025-03-30 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:43:06' and `end` < '2025-03-30 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:43:18] Production.INFO: count ==2309 [2025-03-30 15:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:43:06 - End Time 2025-03-30 15:43:06 [2025-03-30 15:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797174', 'tblTempUsageDetail_20' ) start [2025-03-30 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797174', 'tblTempUsageDetail_20' ) end [2025-03-30 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797174', 'tblTempVendorCDR_20' ) start [2025-03-30 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797174', 'tblTempVendorCDR_20' ) end [2025-03-30 15:43:19] Production.INFO: ProcessCDR(1,14797174,1,1,2) [2025-03-30 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797174', 'tblTempUsageDetail_20' ) start [2025-03-30 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797174', 'tblTempUsageDetail_20' ) end [2025-03-30 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:43:23] Production.INFO: ==13473== Releasing lock... [2025-03-30 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:43:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:44:05 [end_date_ymd] => 2025-03-30 15:44:05 [RateCDR] => 1 ) [2025-03-30 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:44:05' and `end` < '2025-03-30 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:44:18] Production.INFO: count ==2297 [2025-03-30 15:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:44:05 - End Time 2025-03-30 15:44:05 [2025-03-30 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797179', 'tblTempUsageDetail_20' ) start [2025-03-30 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797179', 'tblTempUsageDetail_20' ) end [2025-03-30 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797179', 'tblTempVendorCDR_20' ) start [2025-03-30 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797179', 'tblTempVendorCDR_20' ) end [2025-03-30 15:44:19] Production.INFO: ProcessCDR(1,14797179,1,1,2) [2025-03-30 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797179', 'tblTempUsageDetail_20' ) start [2025-03-30 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797179', 'tblTempUsageDetail_20' ) end [2025-03-30 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:44:23] Production.INFO: ==13551== Releasing lock... [2025-03-30 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:44:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:45:06 [end_date_ymd] => 2025-03-30 15:45:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:45:06' and `end` < '2025-03-30 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-03-30 15:45:19] Production.INFO: count ==2295 [2025-03-30 15:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:45:06 - End Time 2025-03-30 15:45:06 [2025-03-30 15:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797184', 'tblTempUsageDetail_20' ) start [2025-03-30 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797184', 'tblTempUsageDetail_20' ) end [2025-03-30 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797184', 'tblTempVendorCDR_20' ) start [2025-03-30 15:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797184', 'tblTempVendorCDR_20' ) end [2025-03-30 15:45:20] Production.INFO: ProcessCDR(1,14797184,1,1,2) [2025-03-30 15:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797184', 'tblTempUsageDetail_20' ) start [2025-03-30 15:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797184', 'tblTempUsageDetail_20' ) end [2025-03-30 15:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:45:25] Production.INFO: ==13627== Releasing lock... [2025-03-30 15:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:45:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:46:05 [end_date_ymd] => 2025-03-30 15:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:46:05' and `end` < '2025-03-30 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-03-30 15:46:18] Production.INFO: count ==2276 [2025-03-30 15:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:46:05 - End Time 2025-03-30 15:46:05 [2025-03-30 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797189', 'tblTempUsageDetail_20' ) start [2025-03-30 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797189', 'tblTempUsageDetail_20' ) end [2025-03-30 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797189', 'tblTempVendorCDR_20' ) start [2025-03-30 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797189', 'tblTempVendorCDR_20' ) end [2025-03-30 15:46:19] Production.INFO: ProcessCDR(1,14797189,1,1,2) [2025-03-30 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797189', 'tblTempUsageDetail_20' ) start [2025-03-30 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797189', 'tblTempUsageDetail_20' ) end [2025-03-30 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:46:24] Production.INFO: ==13706== Releasing lock... [2025-03-30 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:46:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:47:06 [end_date_ymd] => 2025-03-30 15:47:06 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:47:06' and `end` < '2025-03-30 15: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-03-30 15:47:19] Production.INFO: count ==2247 [2025-03-30 15:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:47:06 - End Time 2025-03-30 15:47:06 [2025-03-30 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797194', 'tblTempUsageDetail_20' ) start [2025-03-30 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797194', 'tblTempUsageDetail_20' ) end [2025-03-30 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797194', 'tblTempVendorCDR_20' ) start [2025-03-30 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797194', 'tblTempVendorCDR_20' ) end [2025-03-30 15:47:20] Production.INFO: ProcessCDR(1,14797194,1,1,2) [2025-03-30 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797194', 'tblTempUsageDetail_20' ) start [2025-03-30 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797194', 'tblTempUsageDetail_20' ) end [2025-03-30 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:47:25] Production.INFO: ==13784== Releasing lock... [2025-03-30 15:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:47:25] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:48:05 [end_date_ymd] => 2025-03-30 15:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:48:05' and `end` < '2025-03-30 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-03-30 15:48:18] Production.INFO: count ==2209 [2025-03-30 15:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:48:05 - End Time 2025-03-30 15:48:05 [2025-03-30 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797199', 'tblTempUsageDetail_20' ) start [2025-03-30 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797199', 'tblTempUsageDetail_20' ) end [2025-03-30 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797199', 'tblTempVendorCDR_20' ) start [2025-03-30 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797199', 'tblTempVendorCDR_20' ) end [2025-03-30 15:48:19] Production.INFO: ProcessCDR(1,14797199,1,1,2) [2025-03-30 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797199', 'tblTempUsageDetail_20' ) start [2025-03-30 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797199', 'tblTempUsageDetail_20' ) end [2025-03-30 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:48:24] Production.INFO: ==13862== Releasing lock... [2025-03-30 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:48:24] Production.INFO: 45 MB #Memory Used# [2025-03-30 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:49:06 [end_date_ymd] => 2025-03-30 15:49:06 [RateCDR] => 1 ) [2025-03-30 15:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:49:06' and `end` < '2025-03-30 15:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:49:18] Production.INFO: count ==2172 [2025-03-30 15:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:49:06 - End Time 2025-03-30 15:49:06 [2025-03-30 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797204', 'tblTempUsageDetail_20' ) start [2025-03-30 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797204', 'tblTempUsageDetail_20' ) end [2025-03-30 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797204', 'tblTempVendorCDR_20' ) start [2025-03-30 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797204', 'tblTempVendorCDR_20' ) end [2025-03-30 15:49:19] Production.INFO: ProcessCDR(1,14797204,1,1,2) [2025-03-30 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797204', 'tblTempUsageDetail_20' ) start [2025-03-30 15:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797204', 'tblTempUsageDetail_20' ) end [2025-03-30 15:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:49:24] Production.INFO: ==13939== Releasing lock... [2025-03-30 15:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:49:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:50:06 [end_date_ymd] => 2025-03-30 15:50:06 [RateCDR] => 1 ) [2025-03-30 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:50:06' and `end` < '2025-03-30 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:50:19] Production.INFO: count ==2149 [2025-03-30 15:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:50:06 - End Time 2025-03-30 15:50:06 [2025-03-30 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797209', 'tblTempUsageDetail_20' ) start [2025-03-30 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797209', 'tblTempUsageDetail_20' ) end [2025-03-30 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797209', 'tblTempVendorCDR_20' ) start [2025-03-30 15:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797209', 'tblTempVendorCDR_20' ) end [2025-03-30 15:50:20] Production.INFO: ProcessCDR(1,14797209,1,1,2) [2025-03-30 15:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797209', 'tblTempUsageDetail_20' ) start [2025-03-30 15:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797209', 'tblTempUsageDetail_20' ) end [2025-03-30 15:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:50:25] Production.INFO: ==14013== Releasing lock... [2025-03-30 15:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:50:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:51:05 [end_date_ymd] => 2025-03-30 15:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:51:05' and `end` < '2025-03-30 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-03-30 15:51:18] Production.INFO: count ==2173 [2025-03-30 15:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:51:05 - End Time 2025-03-30 15:51:05 [2025-03-30 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797215', 'tblTempUsageDetail_20' ) start [2025-03-30 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797215', 'tblTempUsageDetail_20' ) end [2025-03-30 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797215', 'tblTempVendorCDR_20' ) start [2025-03-30 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797215', 'tblTempVendorCDR_20' ) end [2025-03-30 15:51:19] Production.INFO: ProcessCDR(1,14797215,1,1,2) [2025-03-30 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797215', 'tblTempUsageDetail_20' ) start [2025-03-30 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797215', 'tblTempUsageDetail_20' ) end [2025-03-30 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:51:24] Production.INFO: ==14137== Releasing lock... [2025-03-30 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:51:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:52:05 [end_date_ymd] => 2025-03-30 15:52:05 [RateCDR] => 1 ) [2025-03-30 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:52:05' and `end` < '2025-03-30 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:52:18] Production.INFO: count ==2174 [2025-03-30 15:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:52:05 - End Time 2025-03-30 15:52:05 [2025-03-30 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797220', 'tblTempUsageDetail_20' ) start [2025-03-30 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797220', 'tblTempUsageDetail_20' ) end [2025-03-30 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797220', 'tblTempVendorCDR_20' ) start [2025-03-30 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797220', 'tblTempVendorCDR_20' ) end [2025-03-30 15:52:19] Production.INFO: ProcessCDR(1,14797220,1,1,2) [2025-03-30 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797220', 'tblTempUsageDetail_20' ) start [2025-03-30 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797220', 'tblTempUsageDetail_20' ) end [2025-03-30 15:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:52:24] Production.INFO: ==14222== Releasing lock... [2025-03-30 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:52:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:53:05 [end_date_ymd] => 2025-03-30 15:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:53:05' and `end` < '2025-03-30 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-03-30 15:53:18] Production.INFO: count ==2177 [2025-03-30 15:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:53:05 - End Time 2025-03-30 15:53:05 [2025-03-30 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797225', 'tblTempUsageDetail_20' ) start [2025-03-30 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797225', 'tblTempUsageDetail_20' ) end [2025-03-30 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797225', 'tblTempVendorCDR_20' ) start [2025-03-30 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797225', 'tblTempVendorCDR_20' ) end [2025-03-30 15:53:19] Production.INFO: ProcessCDR(1,14797225,1,1,2) [2025-03-30 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797225', 'tblTempUsageDetail_20' ) start [2025-03-30 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797225', 'tblTempUsageDetail_20' ) end [2025-03-30 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:53:24] Production.INFO: ==14297== Releasing lock... [2025-03-30 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:53:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:54:06 [end_date_ymd] => 2025-03-30 15:54:06 [RateCDR] => 1 ) [2025-03-30 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:54:06' and `end` < '2025-03-30 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:54:19] Production.INFO: count ==2179 [2025-03-30 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-30 12:54:06 - End Time 2025-03-30 15:54:06 [2025-03-30 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797230', 'tblTempUsageDetail_20' ) start [2025-03-30 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797230', 'tblTempUsageDetail_20' ) end [2025-03-30 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797230', 'tblTempVendorCDR_20' ) start [2025-03-30 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797230', 'tblTempVendorCDR_20' ) end [2025-03-30 15:54:20] Production.INFO: ProcessCDR(1,14797230,1,1,2) [2025-03-30 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797230', 'tblTempUsageDetail_20' ) start [2025-03-30 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797230', 'tblTempUsageDetail_20' ) end [2025-03-30 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:54:25] Production.INFO: ==14377== Releasing lock... [2025-03-30 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:54:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:55:06 [end_date_ymd] => 2025-03-30 15:55:06 [RateCDR] => 1 ) [2025-03-30 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:55:06' and `end` < '2025-03-30 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:55:18] Production.INFO: count ==2179 [2025-03-30 15:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:55:06 - End Time 2025-03-30 15:55:06 [2025-03-30 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797235', 'tblTempUsageDetail_20' ) start [2025-03-30 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797235', 'tblTempUsageDetail_20' ) end [2025-03-30 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797235', 'tblTempVendorCDR_20' ) start [2025-03-30 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797235', 'tblTempVendorCDR_20' ) end [2025-03-30 15:55:19] Production.INFO: ProcessCDR(1,14797235,1,1,2) [2025-03-30 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797235', 'tblTempUsageDetail_20' ) start [2025-03-30 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797235', 'tblTempUsageDetail_20' ) end [2025-03-30 15:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:55:25] Production.INFO: ==14480== Releasing lock... [2025-03-30 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:55:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:56:06 [end_date_ymd] => 2025-03-30 15:56:06 [RateCDR] => 1 ) [2025-03-30 15: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-03-30 12:56:06' and `end` < '2025-03-30 15: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-03-30 15:56:19] Production.INFO: count ==2179 [2025-03-30 15:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:56:06 - End Time 2025-03-30 15:56:06 [2025-03-30 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797240', 'tblTempUsageDetail_20' ) start [2025-03-30 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797240', 'tblTempUsageDetail_20' ) end [2025-03-30 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797240', 'tblTempVendorCDR_20' ) start [2025-03-30 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797240', 'tblTempVendorCDR_20' ) end [2025-03-30 15:56:20] Production.INFO: ProcessCDR(1,14797240,1,1,2) [2025-03-30 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797240', 'tblTempUsageDetail_20' ) start [2025-03-30 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797240', 'tblTempUsageDetail_20' ) end [2025-03-30 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:56:23] Production.INFO: ==14559== Releasing lock... [2025-03-30 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:56:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:57:05 [end_date_ymd] => 2025-03-30 15:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:57:05' and `end` < '2025-03-30 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-03-30 15:57:18] Production.INFO: count ==2203 [2025-03-30 15:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:57:05 - End Time 2025-03-30 15:57:05 [2025-03-30 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797245', 'tblTempUsageDetail_20' ) start [2025-03-30 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797245', 'tblTempUsageDetail_20' ) end [2025-03-30 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797245', 'tblTempVendorCDR_20' ) start [2025-03-30 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797245', 'tblTempVendorCDR_20' ) end [2025-03-30 15:57:19] Production.INFO: ProcessCDR(1,14797245,1,1,2) [2025-03-30 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797245', 'tblTempUsageDetail_20' ) start [2025-03-30 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797245', 'tblTempUsageDetail_20' ) end [2025-03-30 15:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:57:22] Production.INFO: ==14640== Releasing lock... [2025-03-30 15:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:57:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:58:06 [end_date_ymd] => 2025-03-30 15:58:06 [RateCDR] => 1 ) [2025-03-30 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 12:58:06' and `end` < '2025-03-30 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 15:58:18] Production.INFO: count ==2203 [2025-03-30 15:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:58:06 - End Time 2025-03-30 15:58:06 [2025-03-30 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797250', 'tblTempUsageDetail_20' ) start [2025-03-30 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797250', 'tblTempUsageDetail_20' ) end [2025-03-30 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797250', 'tblTempVendorCDR_20' ) start [2025-03-30 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797250', 'tblTempVendorCDR_20' ) end [2025-03-30 15:58:19] Production.INFO: ProcessCDR(1,14797250,1,1,2) [2025-03-30 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797250', 'tblTempUsageDetail_20' ) start [2025-03-30 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797250', 'tblTempUsageDetail_20' ) end [2025-03-30 15:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:58:24] Production.INFO: ==14717== Releasing lock... [2025-03-30 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:58:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 12:59:05 [end_date_ymd] => 2025-03-30 15:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 12:59:05' and `end` < '2025-03-30 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-03-30 15:59:18] Production.INFO: count ==2206 [2025-03-30 15:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 12:59:05 - End Time 2025-03-30 15:59:05 [2025-03-30 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797255', 'tblTempUsageDetail_20' ) start [2025-03-30 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797255', 'tblTempUsageDetail_20' ) end [2025-03-30 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797255', 'tblTempVendorCDR_20' ) start [2025-03-30 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797255', 'tblTempVendorCDR_20' ) end [2025-03-30 15:59:19] Production.INFO: ProcessCDR(1,14797255,1,1,2) [2025-03-30 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 15:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797255', 'tblTempUsageDetail_20' ) start [2025-03-30 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797255', 'tblTempUsageDetail_20' ) end [2025-03-30 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 15:59:24] Production.INFO: ==14790== Releasing lock... [2025-03-30 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 15:59:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:00:06 [end_date_ymd] => 2025-03-30 16:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:00:06' and `end` < '2025-03-30 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-03-30 16:00:19] Production.INFO: count ==2207 [2025-03-30 16:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:00:06 - End Time 2025-03-30 16:00:06 [2025-03-30 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797260', 'tblTempUsageDetail_20' ) start [2025-03-30 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797260', 'tblTempUsageDetail_20' ) end [2025-03-30 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797260', 'tblTempVendorCDR_20' ) start [2025-03-30 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797260', 'tblTempVendorCDR_20' ) end [2025-03-30 16:00:20] Production.INFO: ProcessCDR(1,14797260,1,1,2) [2025-03-30 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797260', 'tblTempUsageDetail_20' ) start [2025-03-30 16:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797260', 'tblTempUsageDetail_20' ) end [2025-03-30 16:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:00:25] Production.INFO: ==14872== Releasing lock... [2025-03-30 16:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:00:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:01:05 [end_date_ymd] => 2025-03-30 16:01:05 [RateCDR] => 1 ) [2025-03-30 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:01:05' and `end` < '2025-03-30 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:01:18] Production.INFO: count ==2201 [2025-03-30 16:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:01:05 - End Time 2025-03-30 16:01:05 [2025-03-30 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797266', 'tblTempUsageDetail_20' ) start [2025-03-30 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797266', 'tblTempUsageDetail_20' ) end [2025-03-30 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797266', 'tblTempVendorCDR_20' ) start [2025-03-30 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797266', 'tblTempVendorCDR_20' ) end [2025-03-30 16:01:19] Production.INFO: ProcessCDR(1,14797266,1,1,2) [2025-03-30 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797266', 'tblTempUsageDetail_20' ) start [2025-03-30 16:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797266', 'tblTempUsageDetail_20' ) end [2025-03-30 16:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:01:23] Production.INFO: ==14960== Releasing lock... [2025-03-30 16:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:01:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:02:05 [end_date_ymd] => 2025-03-30 16:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:02:05' and `end` < '2025-03-30 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-03-30 16:02:18] Production.INFO: count ==2195 [2025-03-30 16:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:02:05 - End Time 2025-03-30 16:02:05 [2025-03-30 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797271', 'tblTempUsageDetail_20' ) start [2025-03-30 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797271', 'tblTempUsageDetail_20' ) end [2025-03-30 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797271', 'tblTempVendorCDR_20' ) start [2025-03-30 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797271', 'tblTempVendorCDR_20' ) end [2025-03-30 16:02:19] Production.INFO: ProcessCDR(1,14797271,1,1,2) [2025-03-30 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797271', 'tblTempUsageDetail_20' ) start [2025-03-30 16:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797271', 'tblTempUsageDetail_20' ) end [2025-03-30 16:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:02:23] Production.INFO: ==15029== Releasing lock... [2025-03-30 16:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:02:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:03:05 [end_date_ymd] => 2025-03-30 16:03:05 [RateCDR] => 1 ) [2025-03-30 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:03:05' and `end` < '2025-03-30 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:03:18] Production.INFO: count ==2188 [2025-03-30 16:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:03:05 - End Time 2025-03-30 16:03:05 [2025-03-30 16:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797276', 'tblTempUsageDetail_20' ) start [2025-03-30 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797276', 'tblTempUsageDetail_20' ) end [2025-03-30 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797276', 'tblTempVendorCDR_20' ) start [2025-03-30 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797276', 'tblTempVendorCDR_20' ) end [2025-03-30 16:03:19] Production.INFO: ProcessCDR(1,14797276,1,1,2) [2025-03-30 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797276', 'tblTempUsageDetail_20' ) start [2025-03-30 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797276', 'tblTempUsageDetail_20' ) end [2025-03-30 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:03:23] Production.INFO: ==15102== Releasing lock... [2025-03-30 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:03:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:04:05 [end_date_ymd] => 2025-03-30 16:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:04:05' and `end` < '2025-03-30 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-03-30 16:04:18] Production.INFO: count ==2380 [2025-03-30 16:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:04:05 - End Time 2025-03-30 16:04:05 [2025-03-30 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797281', 'tblTempUsageDetail_20' ) start [2025-03-30 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797281', 'tblTempUsageDetail_20' ) end [2025-03-30 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797281', 'tblTempVendorCDR_20' ) start [2025-03-30 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797281', 'tblTempVendorCDR_20' ) end [2025-03-30 16:04:19] Production.INFO: ProcessCDR(1,14797281,1,1,2) [2025-03-30 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797281', 'tblTempUsageDetail_20' ) start [2025-03-30 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797281', 'tblTempUsageDetail_20' ) end [2025-03-30 16:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:04:23] Production.INFO: ==15181== Releasing lock... [2025-03-30 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:04:23] Production.INFO: 46 MB #Memory Used# [2025-03-30 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:05:05 [end_date_ymd] => 2025-03-30 16:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:05:05' and `end` < '2025-03-30 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-03-30 16:05:18] Production.INFO: count ==2374 [2025-03-30 16:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:05:05 - End Time 2025-03-30 16:05:05 [2025-03-30 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797286', 'tblTempUsageDetail_20' ) start [2025-03-30 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797286', 'tblTempUsageDetail_20' ) end [2025-03-30 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797286', 'tblTempVendorCDR_20' ) start [2025-03-30 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797286', 'tblTempVendorCDR_20' ) end [2025-03-30 16:05:19] Production.INFO: ProcessCDR(1,14797286,1,1,2) [2025-03-30 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797286', 'tblTempUsageDetail_20' ) start [2025-03-30 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797286', 'tblTempUsageDetail_20' ) end [2025-03-30 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:05:23] Production.INFO: ==15253== Releasing lock... [2025-03-30 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:05:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:06:06 [end_date_ymd] => 2025-03-30 16:06:06 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:06:06' and `end` < '2025-03-30 16: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-03-30 16:06:19] Production.INFO: count ==2418 [2025-03-30 16:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:06:06 - End Time 2025-03-30 16:06:06 [2025-03-30 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797291', 'tblTempUsageDetail_20' ) start [2025-03-30 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797291', 'tblTempUsageDetail_20' ) end [2025-03-30 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797291', 'tblTempVendorCDR_20' ) start [2025-03-30 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797291', 'tblTempVendorCDR_20' ) end [2025-03-30 16:06:20] Production.INFO: ProcessCDR(1,14797291,1,1,2) [2025-03-30 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797291', 'tblTempUsageDetail_20' ) start [2025-03-30 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797291', 'tblTempUsageDetail_20' ) end [2025-03-30 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:06:23] Production.INFO: ==15323== Releasing lock... [2025-03-30 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:06:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:07:05 [end_date_ymd] => 2025-03-30 16:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:07:05' and `end` < '2025-03-30 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-03-30 16:07:18] Production.INFO: count ==2416 [2025-03-30 16:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:07:05 - End Time 2025-03-30 16:07:05 [2025-03-30 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797296', 'tblTempUsageDetail_20' ) start [2025-03-30 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797296', 'tblTempUsageDetail_20' ) end [2025-03-30 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797296', 'tblTempVendorCDR_20' ) start [2025-03-30 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797296', 'tblTempVendorCDR_20' ) end [2025-03-30 16:07:19] Production.INFO: ProcessCDR(1,14797296,1,1,2) [2025-03-30 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797296', 'tblTempUsageDetail_20' ) start [2025-03-30 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797296', 'tblTempUsageDetail_20' ) end [2025-03-30 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:07:24] Production.INFO: ==15437== Releasing lock... [2025-03-30 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:07:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:08:06 [end_date_ymd] => 2025-03-30 16:08:06 [RateCDR] => 1 ) [2025-03-30 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:08:06' and `end` < '2025-03-30 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:08:18] Production.INFO: count ==2429 [2025-03-30 16:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:08:06 - End Time 2025-03-30 16:08:06 [2025-03-30 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797301', 'tblTempUsageDetail_20' ) start [2025-03-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797301', 'tblTempUsageDetail_20' ) end [2025-03-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797301', 'tblTempVendorCDR_20' ) start [2025-03-30 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797301', 'tblTempVendorCDR_20' ) end [2025-03-30 16:08:19] Production.INFO: ProcessCDR(1,14797301,1,1,2) [2025-03-30 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797301', 'tblTempUsageDetail_20' ) start [2025-03-30 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797301', 'tblTempUsageDetail_20' ) end [2025-03-30 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:08:25] Production.INFO: ==15510== Releasing lock... [2025-03-30 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:08:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:09:05 [end_date_ymd] => 2025-03-30 16:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:09:05' and `end` < '2025-03-30 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-03-30 16:09:18] Production.INFO: count ==2427 [2025-03-30 16:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:09:05 - End Time 2025-03-30 16:09:05 [2025-03-30 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797306', 'tblTempUsageDetail_20' ) start [2025-03-30 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797306', 'tblTempUsageDetail_20' ) end [2025-03-30 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797306', 'tblTempVendorCDR_20' ) start [2025-03-30 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797306', 'tblTempVendorCDR_20' ) end [2025-03-30 16:09:19] Production.INFO: ProcessCDR(1,14797306,1,1,2) [2025-03-30 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797306', 'tblTempUsageDetail_20' ) start [2025-03-30 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797306', 'tblTempUsageDetail_20' ) end [2025-03-30 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:09:24] Production.INFO: ==15588== Releasing lock... [2025-03-30 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:09:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:10:06 [end_date_ymd] => 2025-03-30 16:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:10:06' and `end` < '2025-03-30 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-03-30 16:10:19] Production.INFO: count ==2424 [2025-03-30 16:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:10:06 - End Time 2025-03-30 16:10:06 [2025-03-30 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797312', 'tblTempUsageDetail_20' ) start [2025-03-30 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797312', 'tblTempUsageDetail_20' ) end [2025-03-30 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797312', 'tblTempVendorCDR_20' ) start [2025-03-30 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797312', 'tblTempVendorCDR_20' ) end [2025-03-30 16:10:20] Production.INFO: ProcessCDR(1,14797312,1,1,2) [2025-03-30 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797312', 'tblTempUsageDetail_20' ) start [2025-03-30 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797312', 'tblTempUsageDetail_20' ) end [2025-03-30 16:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:10:25] Production.INFO: ==15664== Releasing lock... [2025-03-30 16:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:10:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:11:05 [end_date_ymd] => 2025-03-30 16:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:11:05' and `end` < '2025-03-30 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-03-30 16:11:17] Production.INFO: count ==2445 [2025-03-30 16:11:18] Production.ERROR: pbx CDR StartTime 2025-03-30 13:11:05 - End Time 2025-03-30 16:11:05 [2025-03-30 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797317', 'tblTempUsageDetail_20' ) start [2025-03-30 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797317', 'tblTempUsageDetail_20' ) end [2025-03-30 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797317', 'tblTempVendorCDR_20' ) start [2025-03-30 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797317', 'tblTempVendorCDR_20' ) end [2025-03-30 16:11:19] Production.INFO: ProcessCDR(1,14797317,1,1,2) [2025-03-30 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797317', 'tblTempUsageDetail_20' ) start [2025-03-30 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797317', 'tblTempUsageDetail_20' ) end [2025-03-30 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:11:24] Production.INFO: ==15739== Releasing lock... [2025-03-30 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:11:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:12:05 [end_date_ymd] => 2025-03-30 16:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:12:05' and `end` < '2025-03-30 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-03-30 16:12:18] Production.INFO: count ==2459 [2025-03-30 16:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:12:05 - End Time 2025-03-30 16:12:05 [2025-03-30 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797322', 'tblTempUsageDetail_20' ) start [2025-03-30 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797322', 'tblTempUsageDetail_20' ) end [2025-03-30 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797322', 'tblTempVendorCDR_20' ) start [2025-03-30 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797322', 'tblTempVendorCDR_20' ) end [2025-03-30 16:12:19] Production.INFO: ProcessCDR(1,14797322,1,1,2) [2025-03-30 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797322', 'tblTempUsageDetail_20' ) start [2025-03-30 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797322', 'tblTempUsageDetail_20' ) end [2025-03-30 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:12:23] Production.INFO: ==15810== Releasing lock... [2025-03-30 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:13:05 [end_date_ymd] => 2025-03-30 16:13:05 [RateCDR] => 1 ) [2025-03-30 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:13:05' and `end` < '2025-03-30 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:13:18] Production.INFO: count ==2467 [2025-03-30 16:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:13:05 - End Time 2025-03-30 16:13:05 [2025-03-30 16:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797327', 'tblTempUsageDetail_20' ) start [2025-03-30 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797327', 'tblTempUsageDetail_20' ) end [2025-03-30 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797327', 'tblTempVendorCDR_20' ) start [2025-03-30 16:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797327', 'tblTempVendorCDR_20' ) end [2025-03-30 16:13:19] Production.INFO: ProcessCDR(1,14797327,1,1,2) [2025-03-30 16:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797327', 'tblTempUsageDetail_20' ) start [2025-03-30 16:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797327', 'tblTempUsageDetail_20' ) end [2025-03-30 16:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:13:24] Production.INFO: ==15881== Releasing lock... [2025-03-30 16:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:13:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:14:05 [end_date_ymd] => 2025-03-30 16:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:14:05' and `end` < '2025-03-30 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-03-30 16:14:18] Production.INFO: count ==2473 [2025-03-30 16:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:14:05 - End Time 2025-03-30 16:14:05 [2025-03-30 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797332', 'tblTempUsageDetail_20' ) start [2025-03-30 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797332', 'tblTempUsageDetail_20' ) end [2025-03-30 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797332', 'tblTempVendorCDR_20' ) start [2025-03-30 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797332', 'tblTempVendorCDR_20' ) end [2025-03-30 16:14:20] Production.INFO: ProcessCDR(1,14797332,1,1,2) [2025-03-30 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797332', 'tblTempUsageDetail_20' ) start [2025-03-30 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797332', 'tblTempUsageDetail_20' ) end [2025-03-30 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:14:25] Production.INFO: ==15956== Releasing lock... [2025-03-30 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:14:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:15:05 [end_date_ymd] => 2025-03-30 16:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:15:05' and `end` < '2025-03-30 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-03-30 16:15:18] Production.INFO: count ==2474 [2025-03-30 16:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:15:05 - End Time 2025-03-30 16:15:05 [2025-03-30 16:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797337', 'tblTempUsageDetail_20' ) start [2025-03-30 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797337', 'tblTempUsageDetail_20' ) end [2025-03-30 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797337', 'tblTempVendorCDR_20' ) start [2025-03-30 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797337', 'tblTempVendorCDR_20' ) end [2025-03-30 16:15:19] Production.INFO: ProcessCDR(1,14797337,1,1,2) [2025-03-30 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797337', 'tblTempUsageDetail_20' ) start [2025-03-30 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797337', 'tblTempUsageDetail_20' ) end [2025-03-30 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:15:25] Production.INFO: ==16028== Releasing lock... [2025-03-30 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:15:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:16:05 [end_date_ymd] => 2025-03-30 16:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:16:05' and `end` < '2025-03-30 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-03-30 16:16:18] Production.INFO: count ==2481 [2025-03-30 16:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:16:05 - End Time 2025-03-30 16:16:05 [2025-03-30 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797342', 'tblTempUsageDetail_20' ) start [2025-03-30 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797342', 'tblTempUsageDetail_20' ) end [2025-03-30 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797342', 'tblTempVendorCDR_20' ) start [2025-03-30 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797342', 'tblTempVendorCDR_20' ) end [2025-03-30 16:16:19] Production.INFO: ProcessCDR(1,14797342,1,1,2) [2025-03-30 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797342', 'tblTempUsageDetail_20' ) start [2025-03-30 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797342', 'tblTempUsageDetail_20' ) end [2025-03-30 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:16:24] Production.INFO: ==16100== Releasing lock... [2025-03-30 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:16:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:17:05 [end_date_ymd] => 2025-03-30 16:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:17:05' and `end` < '2025-03-30 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-03-30 16:17:17] Production.INFO: count ==2627 [2025-03-30 16:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 13:17:05 - End Time 2025-03-30 16:17:05 [2025-03-30 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797347', 'tblTempUsageDetail_20' ) start [2025-03-30 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797347', 'tblTempUsageDetail_20' ) end [2025-03-30 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797347', 'tblTempVendorCDR_20' ) start [2025-03-30 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797347', 'tblTempVendorCDR_20' ) end [2025-03-30 16:17:19] Production.INFO: ProcessCDR(1,14797347,1,1,2) [2025-03-30 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797347', 'tblTempUsageDetail_20' ) start [2025-03-30 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797347', 'tblTempUsageDetail_20' ) end [2025-03-30 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:17:22] Production.INFO: ==16173== Releasing lock... [2025-03-30 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:17:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:18:05 [end_date_ymd] => 2025-03-30 16:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:18:05' and `end` < '2025-03-30 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-03-30 16:18:18] Production.INFO: count ==2629 [2025-03-30 16:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:18:05 - End Time 2025-03-30 16:18:05 [2025-03-30 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797352', 'tblTempUsageDetail_20' ) start [2025-03-30 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797352', 'tblTempUsageDetail_20' ) end [2025-03-30 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797352', 'tblTempVendorCDR_20' ) start [2025-03-30 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797352', 'tblTempVendorCDR_20' ) end [2025-03-30 16:18:19] Production.INFO: ProcessCDR(1,14797352,1,1,2) [2025-03-30 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797352', 'tblTempUsageDetail_20' ) start [2025-03-30 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797352', 'tblTempUsageDetail_20' ) end [2025-03-30 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:18:23] Production.INFO: ==16242== Releasing lock... [2025-03-30 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:18:23] Production.INFO: 48 MB #Memory Used# [2025-03-30 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:19:05 [end_date_ymd] => 2025-03-30 16:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:19:05' and `end` < '2025-03-30 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-03-30 16:19:18] Production.INFO: count ==2619 [2025-03-30 16:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:19:05 - End Time 2025-03-30 16:19:05 [2025-03-30 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797357', 'tblTempUsageDetail_20' ) start [2025-03-30 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797357', 'tblTempUsageDetail_20' ) end [2025-03-30 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797357', 'tblTempVendorCDR_20' ) start [2025-03-30 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797357', 'tblTempVendorCDR_20' ) end [2025-03-30 16:19:19] Production.INFO: ProcessCDR(1,14797357,1,1,2) [2025-03-30 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797357', 'tblTempUsageDetail_20' ) start [2025-03-30 16:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797357', 'tblTempUsageDetail_20' ) end [2025-03-30 16:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:19:24] Production.INFO: ==16316== Releasing lock... [2025-03-30 16:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:19:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:20:06 [end_date_ymd] => 2025-03-30 16:20:06 [RateCDR] => 1 ) [2025-03-30 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:20:06' and `end` < '2025-03-30 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:20:19] Production.INFO: count ==2644 [2025-03-30 16:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:20:06 - End Time 2025-03-30 16:20:06 [2025-03-30 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797363', 'tblTempUsageDetail_20' ) start [2025-03-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797363', 'tblTempUsageDetail_20' ) end [2025-03-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797363', 'tblTempVendorCDR_20' ) start [2025-03-30 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797363', 'tblTempVendorCDR_20' ) end [2025-03-30 16:20:20] Production.INFO: ProcessCDR(1,14797363,1,1,2) [2025-03-30 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797363', 'tblTempUsageDetail_20' ) start [2025-03-30 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797363', 'tblTempUsageDetail_20' ) end [2025-03-30 16:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:20:25] Production.INFO: ==16391== Releasing lock... [2025-03-30 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:20:25] Production.INFO: 48 MB #Memory Used# [2025-03-30 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:21:06 [end_date_ymd] => 2025-03-30 16:21:06 [RateCDR] => 1 ) [2025-03-30 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:21:06' and `end` < '2025-03-30 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:21:18] Production.INFO: count ==2624 [2025-03-30 16:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:21:06 - End Time 2025-03-30 16:21:06 [2025-03-30 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797368', 'tblTempUsageDetail_20' ) start [2025-03-30 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797368', 'tblTempUsageDetail_20' ) end [2025-03-30 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797368', 'tblTempVendorCDR_20' ) start [2025-03-30 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797368', 'tblTempVendorCDR_20' ) end [2025-03-30 16:21:20] Production.INFO: ProcessCDR(1,14797368,1,1,2) [2025-03-30 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797368', 'tblTempUsageDetail_20' ) start [2025-03-30 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797368', 'tblTempUsageDetail_20' ) end [2025-03-30 16:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:21:24] Production.INFO: ==16463== Releasing lock... [2025-03-30 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:21:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:22:06 [end_date_ymd] => 2025-03-30 16:22:06 [RateCDR] => 1 ) [2025-03-30 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:22:06' and `end` < '2025-03-30 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:22:19] Production.INFO: count ==2611 [2025-03-30 16:22:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:22:06 - End Time 2025-03-30 16:22:06 [2025-03-30 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797373', 'tblTempUsageDetail_20' ) start [2025-03-30 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797373', 'tblTempUsageDetail_20' ) end [2025-03-30 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797373', 'tblTempVendorCDR_20' ) start [2025-03-30 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797373', 'tblTempVendorCDR_20' ) end [2025-03-30 16:22:20] Production.INFO: ProcessCDR(1,14797373,1,1,2) [2025-03-30 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797373', 'tblTempUsageDetail_20' ) start [2025-03-30 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797373', 'tblTempUsageDetail_20' ) end [2025-03-30 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:22:25] Production.INFO: ==16577== Releasing lock... [2025-03-30 16:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:22:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-30 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:23:05 [end_date_ymd] => 2025-03-30 16:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:23:05' and `end` < '2025-03-30 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-03-30 16:23:18] Production.INFO: count ==2606 [2025-03-30 16:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:23:05 - End Time 2025-03-30 16:23:05 [2025-03-30 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797378', 'tblTempUsageDetail_20' ) start [2025-03-30 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797378', 'tblTempUsageDetail_20' ) end [2025-03-30 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797378', 'tblTempVendorCDR_20' ) start [2025-03-30 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797378', 'tblTempVendorCDR_20' ) end [2025-03-30 16:23:20] Production.INFO: ProcessCDR(1,14797378,1,1,2) [2025-03-30 16:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797378', 'tblTempUsageDetail_20' ) start [2025-03-30 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797378', 'tblTempUsageDetail_20' ) end [2025-03-30 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:23:24] Production.INFO: ==16659== Releasing lock... [2025-03-30 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:23:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-30 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:24:06 [end_date_ymd] => 2025-03-30 16:24:06 [RateCDR] => 1 ) [2025-03-30 16:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:24:06' and `end` < '2025-03-30 16:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:24:19] Production.INFO: count ==2632 [2025-03-30 16:24:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:24:06 - End Time 2025-03-30 16:24:06 [2025-03-30 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797383', 'tblTempUsageDetail_20' ) start [2025-03-30 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797383', 'tblTempUsageDetail_20' ) end [2025-03-30 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797383', 'tblTempVendorCDR_20' ) start [2025-03-30 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797383', 'tblTempVendorCDR_20' ) end [2025-03-30 16:24:20] Production.INFO: ProcessCDR(1,14797383,1,1,2) [2025-03-30 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797383', 'tblTempUsageDetail_20' ) start [2025-03-30 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797383', 'tblTempUsageDetail_20' ) end [2025-03-30 16:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:24:25] Production.INFO: ==16731== Releasing lock... [2025-03-30 16:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:24:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:25:06 [end_date_ymd] => 2025-03-30 16:25:06 [RateCDR] => 1 ) [2025-03-30 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:25:06' and `end` < '2025-03-30 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:25:18] Production.INFO: count ==2650 [2025-03-30 16:25:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:25:06 - End Time 2025-03-30 16:25:06 [2025-03-30 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797388', 'tblTempUsageDetail_20' ) start [2025-03-30 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797388', 'tblTempUsageDetail_20' ) end [2025-03-30 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797388', 'tblTempVendorCDR_20' ) start [2025-03-30 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797388', 'tblTempVendorCDR_20' ) end [2025-03-30 16:25:20] Production.INFO: ProcessCDR(1,14797388,1,1,2) [2025-03-30 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797388', 'tblTempUsageDetail_20' ) start [2025-03-30 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797388', 'tblTempUsageDetail_20' ) end [2025-03-30 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:25:24] Production.INFO: ==16803== Releasing lock... [2025-03-30 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:25:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:26:05 [end_date_ymd] => 2025-03-30 16:26:05 [RateCDR] => 1 ) [2025-03-30 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:26:05' and `end` < '2025-03-30 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:26:18] Production.INFO: count ==2650 [2025-03-30 16:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:26:05 - End Time 2025-03-30 16:26:05 [2025-03-30 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797393', 'tblTempUsageDetail_20' ) start [2025-03-30 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797393', 'tblTempUsageDetail_20' ) end [2025-03-30 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797393', 'tblTempVendorCDR_20' ) start [2025-03-30 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797393', 'tblTempVendorCDR_20' ) end [2025-03-30 16:26:20] Production.INFO: ProcessCDR(1,14797393,1,1,2) [2025-03-30 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797393', 'tblTempUsageDetail_20' ) start [2025-03-30 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797393', 'tblTempUsageDetail_20' ) end [2025-03-30 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:26:25] Production.INFO: ==16876== Releasing lock... [2025-03-30 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:26:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-30 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:27:05 [end_date_ymd] => 2025-03-30 16:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:27:05' and `end` < '2025-03-30 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-03-30 16:27:18] Production.INFO: count ==2636 [2025-03-30 16:27:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:27:05 - End Time 2025-03-30 16:27:05 [2025-03-30 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797398', 'tblTempUsageDetail_20' ) start [2025-03-30 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797398', 'tblTempUsageDetail_20' ) end [2025-03-30 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797398', 'tblTempVendorCDR_20' ) start [2025-03-30 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797398', 'tblTempVendorCDR_20' ) end [2025-03-30 16:27:19] Production.INFO: ProcessCDR(1,14797398,1,1,2) [2025-03-30 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797398', 'tblTempUsageDetail_20' ) start [2025-03-30 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797398', 'tblTempUsageDetail_20' ) end [2025-03-30 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:27:24] Production.INFO: ==16950== Releasing lock... [2025-03-30 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:27:24] Production.INFO: 48 MB #Memory Used# [2025-03-30 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:28:06 [end_date_ymd] => 2025-03-30 16:28:06 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:28:06' and `end` < '2025-03-30 16: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-03-30 16:28:19] Production.INFO: count ==2614 [2025-03-30 16:28:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:28:06 - End Time 2025-03-30 16:28:06 [2025-03-30 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797403', 'tblTempUsageDetail_20' ) start [2025-03-30 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797403', 'tblTempUsageDetail_20' ) end [2025-03-30 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797403', 'tblTempVendorCDR_20' ) start [2025-03-30 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797403', 'tblTempVendorCDR_20' ) end [2025-03-30 16:28:20] Production.INFO: ProcessCDR(1,14797403,1,1,2) [2025-03-30 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797403', 'tblTempUsageDetail_20' ) start [2025-03-30 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797403', 'tblTempUsageDetail_20' ) end [2025-03-30 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:28:23] Production.INFO: ==17024== Releasing lock... [2025-03-30 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:28:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:29:05 [end_date_ymd] => 2025-03-30 16:29:05 [RateCDR] => 1 ) [2025-03-30 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:29:05' and `end` < '2025-03-30 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:29:18] Production.INFO: count ==2657 [2025-03-30 16:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:29:05 - End Time 2025-03-30 16:29:05 [2025-03-30 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797408', 'tblTempUsageDetail_20' ) start [2025-03-30 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797408', 'tblTempUsageDetail_20' ) end [2025-03-30 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797408', 'tblTempVendorCDR_20' ) start [2025-03-30 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797408', 'tblTempVendorCDR_20' ) end [2025-03-30 16:29:19] Production.INFO: ProcessCDR(1,14797408,1,1,2) [2025-03-30 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797408', 'tblTempUsageDetail_20' ) start [2025-03-30 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797408', 'tblTempUsageDetail_20' ) end [2025-03-30 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:29:25] Production.INFO: ==17095== Releasing lock... [2025-03-30 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:29:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-30 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:30:06 [end_date_ymd] => 2025-03-30 16:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:30:06' and `end` < '2025-03-30 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-03-30 16:30:19] Production.INFO: count ==2786 [2025-03-30 16:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:30:06 - End Time 2025-03-30 16:30:06 [2025-03-30 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797414', 'tblTempUsageDetail_20' ) start [2025-03-30 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797414', 'tblTempUsageDetail_20' ) end [2025-03-30 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797414', 'tblTempVendorCDR_20' ) start [2025-03-30 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797414', 'tblTempVendorCDR_20' ) end [2025-03-30 16:30:20] Production.INFO: ProcessCDR(1,14797414,1,1,2) [2025-03-30 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797414', 'tblTempUsageDetail_20' ) start [2025-03-30 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797414', 'tblTempUsageDetail_20' ) end [2025-03-30 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:30:26] Production.INFO: ==17197== Releasing lock... [2025-03-30 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:30:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:31:05 [end_date_ymd] => 2025-03-30 16:31:05 [RateCDR] => 1 ) [2025-03-30 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:31:05' and `end` < '2025-03-30 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:31:18] Production.INFO: count ==2826 [2025-03-30 16:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:31:05 - End Time 2025-03-30 16:31:05 [2025-03-30 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797419', 'tblTempUsageDetail_20' ) start [2025-03-30 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797419', 'tblTempUsageDetail_20' ) end [2025-03-30 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797419', 'tblTempVendorCDR_20' ) start [2025-03-30 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797419', 'tblTempVendorCDR_20' ) end [2025-03-30 16:31:19] Production.INFO: ProcessCDR(1,14797419,1,1,2) [2025-03-30 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797419', 'tblTempUsageDetail_20' ) start [2025-03-30 16:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797419', 'tblTempUsageDetail_20' ) end [2025-03-30 16:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:31:24] Production.INFO: ==17301== Releasing lock... [2025-03-30 16:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:31:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:32:05 [end_date_ymd] => 2025-03-30 16:32:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:32:05' and `end` < '2025-03-30 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-03-30 16:32:18] Production.INFO: count ==2818 [2025-03-30 16:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:32:05 - End Time 2025-03-30 16:32:05 [2025-03-30 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797424', 'tblTempUsageDetail_20' ) start [2025-03-30 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797424', 'tblTempUsageDetail_20' ) end [2025-03-30 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797424', 'tblTempVendorCDR_20' ) start [2025-03-30 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797424', 'tblTempVendorCDR_20' ) end [2025-03-30 16:32:20] Production.INFO: ProcessCDR(1,14797424,1,1,2) [2025-03-30 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797424', 'tblTempUsageDetail_20' ) start [2025-03-30 16:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797424', 'tblTempUsageDetail_20' ) end [2025-03-30 16:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:32:25] Production.INFO: ==17404== Releasing lock... [2025-03-30 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:32:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:33:05 [end_date_ymd] => 2025-03-30 16:33:05 [RateCDR] => 1 ) [2025-03-30 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:33:05' and `end` < '2025-03-30 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:33:18] Production.INFO: count ==2820 [2025-03-30 16:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:33:05 - End Time 2025-03-30 16:33:05 [2025-03-30 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797429', 'tblTempUsageDetail_20' ) start [2025-03-30 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797429', 'tblTempUsageDetail_20' ) end [2025-03-30 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797429', 'tblTempVendorCDR_20' ) start [2025-03-30 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797429', 'tblTempVendorCDR_20' ) end [2025-03-30 16:33:19] Production.INFO: ProcessCDR(1,14797429,1,1,2) [2025-03-30 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797429', 'tblTempUsageDetail_20' ) start [2025-03-30 16:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797429', 'tblTempUsageDetail_20' ) end [2025-03-30 16:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:33:23] Production.INFO: ==17485== Releasing lock... [2025-03-30 16:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:33:23] Production.INFO: 49 MB #Memory Used# [2025-03-30 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:34:06 [end_date_ymd] => 2025-03-30 16:34:06 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:34:06' and `end` < '2025-03-30 16: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-03-30 16:34:19] Production.INFO: count ==2825 [2025-03-30 16:34:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:34:06 - End Time 2025-03-30 16:34:06 [2025-03-30 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797434', 'tblTempUsageDetail_20' ) start [2025-03-30 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797434', 'tblTempUsageDetail_20' ) end [2025-03-30 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797434', 'tblTempVendorCDR_20' ) start [2025-03-30 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797434', 'tblTempVendorCDR_20' ) end [2025-03-30 16:34:20] Production.INFO: ProcessCDR(1,14797434,1,1,2) [2025-03-30 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797434', 'tblTempUsageDetail_20' ) start [2025-03-30 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797434', 'tblTempUsageDetail_20' ) end [2025-03-30 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:34:24] Production.INFO: ==17557== Releasing lock... [2025-03-30 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:34:24] Production.INFO: 49 MB #Memory Used# [2025-03-30 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:35:05 [end_date_ymd] => 2025-03-30 16:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:35:05' and `end` < '2025-03-30 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-03-30 16:35:18] Production.INFO: count ==2812 [2025-03-30 16:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:35:05 - End Time 2025-03-30 16:35:05 [2025-03-30 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797439', 'tblTempUsageDetail_20' ) start [2025-03-30 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797439', 'tblTempUsageDetail_20' ) end [2025-03-30 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797439', 'tblTempVendorCDR_20' ) start [2025-03-30 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797439', 'tblTempVendorCDR_20' ) end [2025-03-30 16:35:19] Production.INFO: ProcessCDR(1,14797439,1,1,2) [2025-03-30 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797439', 'tblTempUsageDetail_20' ) start [2025-03-30 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797439', 'tblTempUsageDetail_20' ) end [2025-03-30 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:35:24] Production.INFO: ==17631== Releasing lock... [2025-03-30 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:35:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:36:06 [end_date_ymd] => 2025-03-30 16:36:06 [RateCDR] => 1 ) [2025-03-30 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:36:06' and `end` < '2025-03-30 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:36:19] Production.INFO: count ==2761 [2025-03-30 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:36:06 - End Time 2025-03-30 16:36:06 [2025-03-30 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797444', 'tblTempUsageDetail_20' ) start [2025-03-30 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797444', 'tblTempUsageDetail_20' ) end [2025-03-30 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797444', 'tblTempVendorCDR_20' ) start [2025-03-30 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797444', 'tblTempVendorCDR_20' ) end [2025-03-30 16:36:20] Production.INFO: ProcessCDR(1,14797444,1,1,2) [2025-03-30 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797444', 'tblTempUsageDetail_20' ) start [2025-03-30 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797444', 'tblTempUsageDetail_20' ) end [2025-03-30 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:36:25] Production.INFO: ==17708== Releasing lock... [2025-03-30 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:36:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:37:05 [end_date_ymd] => 2025-03-30 16:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:37:05' and `end` < '2025-03-30 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-03-30 16:37:18] Production.INFO: count ==2738 [2025-03-30 16:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:37:05 - End Time 2025-03-30 16:37:05 [2025-03-30 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797449', 'tblTempUsageDetail_20' ) start [2025-03-30 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797449', 'tblTempUsageDetail_20' ) end [2025-03-30 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797449', 'tblTempVendorCDR_20' ) start [2025-03-30 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797449', 'tblTempVendorCDR_20' ) end [2025-03-30 16:37:19] Production.INFO: ProcessCDR(1,14797449,1,1,2) [2025-03-30 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797449', 'tblTempUsageDetail_20' ) start [2025-03-30 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797449', 'tblTempUsageDetail_20' ) end [2025-03-30 16:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:37:24] Production.INFO: ==17781== Releasing lock... [2025-03-30 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:37:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:38:06 [end_date_ymd] => 2025-03-30 16:38:06 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:38:06' and `end` < '2025-03-30 16: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-03-30 16:38:19] Production.INFO: count ==2760 [2025-03-30 16:38:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:38:06 - End Time 2025-03-30 16:38:06 [2025-03-30 16:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797454', 'tblTempUsageDetail_20' ) start [2025-03-30 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797454', 'tblTempUsageDetail_20' ) end [2025-03-30 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797454', 'tblTempVendorCDR_20' ) start [2025-03-30 16:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797454', 'tblTempVendorCDR_20' ) end [2025-03-30 16:38:20] Production.INFO: ProcessCDR(1,14797454,1,1,2) [2025-03-30 16:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797454', 'tblTempUsageDetail_20' ) start [2025-03-30 16:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797454', 'tblTempUsageDetail_20' ) end [2025-03-30 16:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:38:26] Production.INFO: ==17893== Releasing lock... [2025-03-30 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:38:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:39:04 [end_date_ymd] => 2025-03-30 16:39:04 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:39:04' and `end` < '2025-03-30 16: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-03-30 16:39:17] Production.INFO: count ==2880 [2025-03-30 16:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 13:39:04 - End Time 2025-03-30 16:39:04 [2025-03-30 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797459', 'tblTempUsageDetail_20' ) start [2025-03-30 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797459', 'tblTempUsageDetail_20' ) end [2025-03-30 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797459', 'tblTempVendorCDR_20' ) start [2025-03-30 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797459', 'tblTempVendorCDR_20' ) end [2025-03-30 16:39:18] Production.INFO: ProcessCDR(1,14797459,1,1,2) [2025-03-30 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797459', 'tblTempUsageDetail_20' ) start [2025-03-30 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797459', 'tblTempUsageDetail_20' ) end [2025-03-30 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:39:22] Production.INFO: ==17964== Releasing lock... [2025-03-30 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:39:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-30 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:40:05 [end_date_ymd] => 2025-03-30 16:40:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:40:05' and `end` < '2025-03-30 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-03-30 16:40:18] Production.INFO: count ==2896 [2025-03-30 16:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:40:05 - End Time 2025-03-30 16:40:05 [2025-03-30 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797465', 'tblTempUsageDetail_20' ) start [2025-03-30 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797465', 'tblTempUsageDetail_20' ) end [2025-03-30 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797465', 'tblTempVendorCDR_20' ) start [2025-03-30 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797465', 'tblTempVendorCDR_20' ) end [2025-03-30 16:40:20] Production.INFO: ProcessCDR(1,14797465,1,1,2) [2025-03-30 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797465', 'tblTempUsageDetail_20' ) start [2025-03-30 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797465', 'tblTempUsageDetail_20' ) end [2025-03-30 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:40:25] Production.INFO: ==18042== Releasing lock... [2025-03-30 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:40:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-30 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:41:05 [end_date_ymd] => 2025-03-30 16:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:41:05' and `end` < '2025-03-30 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-03-30 16:41:18] Production.INFO: count ==2917 [2025-03-30 16:41:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:41:05 - End Time 2025-03-30 16:41:05 [2025-03-30 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797470', 'tblTempUsageDetail_20' ) start [2025-03-30 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797470', 'tblTempUsageDetail_20' ) end [2025-03-30 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797470', 'tblTempVendorCDR_20' ) start [2025-03-30 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797470', 'tblTempVendorCDR_20' ) end [2025-03-30 16:41:19] Production.INFO: ProcessCDR(1,14797470,1,1,2) [2025-03-30 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797470', 'tblTempUsageDetail_20' ) start [2025-03-30 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797470', 'tblTempUsageDetail_20' ) end [2025-03-30 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:41:23] Production.INFO: ==18117== Releasing lock... [2025-03-30 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:41:23] Production.INFO: 50 MB #Memory Used# [2025-03-30 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:42:05 [end_date_ymd] => 2025-03-30 16:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:42:05' and `end` < '2025-03-30 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-03-30 16:42:18] Production.INFO: count ==2931 [2025-03-30 16:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:42:05 - End Time 2025-03-30 16:42:05 [2025-03-30 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797475', 'tblTempUsageDetail_20' ) start [2025-03-30 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797475', 'tblTempUsageDetail_20' ) end [2025-03-30 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797475', 'tblTempVendorCDR_20' ) start [2025-03-30 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797475', 'tblTempVendorCDR_20' ) end [2025-03-30 16:42:20] Production.INFO: ProcessCDR(1,14797475,1,1,2) [2025-03-30 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797475', 'tblTempUsageDetail_20' ) start [2025-03-30 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797475', 'tblTempUsageDetail_20' ) end [2025-03-30 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:42:23] Production.INFO: ==18195== Releasing lock... [2025-03-30 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:42:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-30 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:43:05 [end_date_ymd] => 2025-03-30 16:43:05 [RateCDR] => 1 ) [2025-03-30 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:43:05' and `end` < '2025-03-30 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:43:18] Production.INFO: count ==3043 [2025-03-30 16:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:43:05 - End Time 2025-03-30 16:43:05 [2025-03-30 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797480', 'tblTempUsageDetail_20' ) start [2025-03-30 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797480', 'tblTempUsageDetail_20' ) end [2025-03-30 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797480', 'tblTempVendorCDR_20' ) start [2025-03-30 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797480', 'tblTempVendorCDR_20' ) end [2025-03-30 16:43:19] Production.INFO: ProcessCDR(1,14797480,1,1,2) [2025-03-30 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797480', 'tblTempUsageDetail_20' ) start [2025-03-30 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797480', 'tblTempUsageDetail_20' ) end [2025-03-30 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:43:23] Production.INFO: ==18265== Releasing lock... [2025-03-30 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:43:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-30 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:44:05 [end_date_ymd] => 2025-03-30 16:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:44:05' and `end` < '2025-03-30 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-03-30 16:44:18] Production.INFO: count ==3039 [2025-03-30 16:44:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:44:05 - End Time 2025-03-30 16:44:05 [2025-03-30 16:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797485', 'tblTempUsageDetail_20' ) start [2025-03-30 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797485', 'tblTempUsageDetail_20' ) end [2025-03-30 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797485', 'tblTempVendorCDR_20' ) start [2025-03-30 16:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797485', 'tblTempVendorCDR_20' ) end [2025-03-30 16:44:20] Production.INFO: ProcessCDR(1,14797485,1,1,2) [2025-03-30 16:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797485', 'tblTempUsageDetail_20' ) start [2025-03-30 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797485', 'tblTempUsageDetail_20' ) end [2025-03-30 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:44:23] Production.INFO: ==18344== Releasing lock... [2025-03-30 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:44:23] Production.INFO: 51 MB #Memory Used# [2025-03-30 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:45:05 [end_date_ymd] => 2025-03-30 16:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:45:05' and `end` < '2025-03-30 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-03-30 16:45:18] Production.INFO: count ==3041 [2025-03-30 16:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:45:05 - End Time 2025-03-30 16:45:05 [2025-03-30 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797490', 'tblTempUsageDetail_20' ) start [2025-03-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797490', 'tblTempUsageDetail_20' ) end [2025-03-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797490', 'tblTempVendorCDR_20' ) start [2025-03-30 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797490', 'tblTempVendorCDR_20' ) end [2025-03-30 16:45:20] Production.INFO: ProcessCDR(1,14797490,1,1,2) [2025-03-30 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797490', 'tblTempUsageDetail_20' ) start [2025-03-30 16:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797490', 'tblTempUsageDetail_20' ) end [2025-03-30 16:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:45:23] Production.INFO: ==18420== Releasing lock... [2025-03-30 16:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:45:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-30 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:46:05 [end_date_ymd] => 2025-03-30 16:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:46:05' and `end` < '2025-03-30 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-03-30 16:46:18] Production.INFO: count ==3094 [2025-03-30 16:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:46:05 - End Time 2025-03-30 16:46:05 [2025-03-30 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797495', 'tblTempUsageDetail_20' ) start [2025-03-30 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797495', 'tblTempUsageDetail_20' ) end [2025-03-30 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797495', 'tblTempVendorCDR_20' ) start [2025-03-30 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797495', 'tblTempVendorCDR_20' ) end [2025-03-30 16:46:19] Production.INFO: ProcessCDR(1,14797495,1,1,2) [2025-03-30 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797495', 'tblTempUsageDetail_20' ) start [2025-03-30 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797495', 'tblTempUsageDetail_20' ) end [2025-03-30 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:46:24] Production.INFO: ==18493== Releasing lock... [2025-03-30 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:46:24] Production.INFO: 51 MB #Memory Used# [2025-03-30 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:47:05 [end_date_ymd] => 2025-03-30 16:47:05 [RateCDR] => 1 ) [2025-03-30 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:47:05' and `end` < '2025-03-30 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:47:18] Production.INFO: count ==3094 [2025-03-30 16:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:47:05 - End Time 2025-03-30 16:47:05 [2025-03-30 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797500', 'tblTempUsageDetail_20' ) start [2025-03-30 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797500', 'tblTempUsageDetail_20' ) end [2025-03-30 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797500', 'tblTempVendorCDR_20' ) start [2025-03-30 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797500', 'tblTempVendorCDR_20' ) end [2025-03-30 16:47:20] Production.INFO: ProcessCDR(1,14797500,1,1,2) [2025-03-30 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797500', 'tblTempUsageDetail_20' ) start [2025-03-30 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797500', 'tblTempUsageDetail_20' ) end [2025-03-30 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:47:25] Production.INFO: ==18565== Releasing lock... [2025-03-30 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:47:25] Production.INFO: 51 MB #Memory Used# [2025-03-30 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:48:05 [end_date_ymd] => 2025-03-30 16:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:48:05' and `end` < '2025-03-30 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-03-30 16:48:18] Production.INFO: count ==3095 [2025-03-30 16:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:48:05 - End Time 2025-03-30 16:48:05 [2025-03-30 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797505', 'tblTempUsageDetail_20' ) start [2025-03-30 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797505', 'tblTempUsageDetail_20' ) end [2025-03-30 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797505', 'tblTempVendorCDR_20' ) start [2025-03-30 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797505', 'tblTempVendorCDR_20' ) end [2025-03-30 16:48:20] Production.INFO: ProcessCDR(1,14797505,1,1,2) [2025-03-30 16:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797505', 'tblTempUsageDetail_20' ) start [2025-03-30 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797505', 'tblTempUsageDetail_20' ) end [2025-03-30 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:48:25] Production.INFO: ==18638== Releasing lock... [2025-03-30 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:48:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-30 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:49:05 [end_date_ymd] => 2025-03-30 16:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:49:05' and `end` < '2025-03-30 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-03-30 16:49:18] Production.INFO: count ==3105 [2025-03-30 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:49:05 - End Time 2025-03-30 16:49:05 [2025-03-30 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797510', 'tblTempUsageDetail_20' ) start [2025-03-30 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797510', 'tblTempUsageDetail_20' ) end [2025-03-30 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797510', 'tblTempVendorCDR_20' ) start [2025-03-30 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797510', 'tblTempVendorCDR_20' ) end [2025-03-30 16:49:20] Production.INFO: ProcessCDR(1,14797510,1,1,2) [2025-03-30 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797510', 'tblTempUsageDetail_20' ) start [2025-03-30 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797510', 'tblTempUsageDetail_20' ) end [2025-03-30 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:49:23] Production.INFO: ==18710== Releasing lock... [2025-03-30 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:49:23] Production.INFO: 51.25 MB #Memory Used# [2025-03-30 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:50:06 [end_date_ymd] => 2025-03-30 16:50:06 [RateCDR] => 1 ) [2025-03-30 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:50:06' and `end` < '2025-03-30 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:50:18] Production.INFO: count ==3272 [2025-03-30 16:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:50:06 - End Time 2025-03-30 16:50:06 [2025-03-30 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797515', 'tblTempUsageDetail_20' ) start [2025-03-30 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797515', 'tblTempUsageDetail_20' ) end [2025-03-30 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797515', 'tblTempVendorCDR_20' ) start [2025-03-30 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797515', 'tblTempVendorCDR_20' ) end [2025-03-30 16:50:20] Production.INFO: ProcessCDR(1,14797515,1,1,2) [2025-03-30 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797515', 'tblTempUsageDetail_20' ) start [2025-03-30 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797515', 'tblTempUsageDetail_20' ) end [2025-03-30 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:50:25] Production.INFO: ==18791== Releasing lock... [2025-03-30 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:50:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-30 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:51:05 [end_date_ymd] => 2025-03-30 16:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:51:05' and `end` < '2025-03-30 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-03-30 16:51:18] Production.INFO: count ==3265 [2025-03-30 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:51:05 - End Time 2025-03-30 16:51:05 [2025-03-30 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797521', 'tblTempUsageDetail_20' ) start [2025-03-30 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797521', 'tblTempUsageDetail_20' ) end [2025-03-30 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797521', 'tblTempVendorCDR_20' ) start [2025-03-30 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797521', 'tblTempVendorCDR_20' ) end [2025-03-30 16:51:20] Production.INFO: ProcessCDR(1,14797521,1,1,2) [2025-03-30 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797521', 'tblTempUsageDetail_20' ) start [2025-03-30 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797521', 'tblTempUsageDetail_20' ) end [2025-03-30 16:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:51:25] Production.INFO: ==18868== Releasing lock... [2025-03-30 16:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:51:25] Production.INFO: 53 MB #Memory Used# [2025-03-30 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:52:05 [end_date_ymd] => 2025-03-30 16:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:52:05' and `end` < '2025-03-30 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-03-30 16:52:18] Production.INFO: count ==3277 [2025-03-30 16:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:52:05 - End Time 2025-03-30 16:52:05 [2025-03-30 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797526', 'tblTempUsageDetail_20' ) start [2025-03-30 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797526', 'tblTempUsageDetail_20' ) end [2025-03-30 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797526', 'tblTempVendorCDR_20' ) start [2025-03-30 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797526', 'tblTempVendorCDR_20' ) end [2025-03-30 16:52:20] Production.INFO: ProcessCDR(1,14797526,1,1,2) [2025-03-30 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797526', 'tblTempUsageDetail_20' ) start [2025-03-30 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797526', 'tblTempUsageDetail_20' ) end [2025-03-30 16:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:52:23] Production.INFO: ==18941== Releasing lock... [2025-03-30 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:52:23] Production.INFO: 52.25 MB #Memory Used# [2025-03-30 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:53:06 [end_date_ymd] => 2025-03-30 16:53:06 [RateCDR] => 1 ) [2025-03-30 16: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-03-30 13:53:06' and `end` < '2025-03-30 16: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-03-30 16:53:19] Production.INFO: count ==3332 [2025-03-30 16:53:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:53:06 - End Time 2025-03-30 16:53:06 [2025-03-30 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797531', 'tblTempUsageDetail_20' ) start [2025-03-30 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797531', 'tblTempUsageDetail_20' ) end [2025-03-30 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797531', 'tblTempVendorCDR_20' ) start [2025-03-30 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797531', 'tblTempVendorCDR_20' ) end [2025-03-30 16:53:20] Production.INFO: ProcessCDR(1,14797531,1,1,2) [2025-03-30 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797531', 'tblTempUsageDetail_20' ) start [2025-03-30 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797531', 'tblTempUsageDetail_20' ) end [2025-03-30 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:53:24] Production.INFO: ==19051== Releasing lock... [2025-03-30 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:53:24] Production.INFO: 53 MB #Memory Used# [2025-03-30 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:54:05 [end_date_ymd] => 2025-03-30 16:54:05 [RateCDR] => 1 ) [2025-03-30 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:54:05' and `end` < '2025-03-30 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:54:18] Production.INFO: count ==3342 [2025-03-30 16:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:54:05 - End Time 2025-03-30 16:54:05 [2025-03-30 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797536', 'tblTempUsageDetail_20' ) start [2025-03-30 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797536', 'tblTempUsageDetail_20' ) end [2025-03-30 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797536', 'tblTempVendorCDR_20' ) start [2025-03-30 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797536', 'tblTempVendorCDR_20' ) end [2025-03-30 16:54:20] Production.INFO: ProcessCDR(1,14797536,1,1,2) [2025-03-30 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797536', 'tblTempUsageDetail_20' ) start [2025-03-30 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797536', 'tblTempUsageDetail_20' ) end [2025-03-30 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:54:25] Production.INFO: ==19129== Releasing lock... [2025-03-30 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:54:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:55:06 [end_date_ymd] => 2025-03-30 16:55:06 [RateCDR] => 1 ) [2025-03-30 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:55:06' and `end` < '2025-03-30 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:55:19] Production.INFO: count ==3339 [2025-03-30 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:55:06 - End Time 2025-03-30 16:55:06 [2025-03-30 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797541', 'tblTempUsageDetail_20' ) start [2025-03-30 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797541', 'tblTempUsageDetail_20' ) end [2025-03-30 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797541', 'tblTempVendorCDR_20' ) start [2025-03-30 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797541', 'tblTempVendorCDR_20' ) end [2025-03-30 16:55:20] Production.INFO: ProcessCDR(1,14797541,1,1,2) [2025-03-30 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797541', 'tblTempUsageDetail_20' ) start [2025-03-30 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797541', 'tblTempUsageDetail_20' ) end [2025-03-30 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:55:25] Production.INFO: ==19203== Releasing lock... [2025-03-30 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:55:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:56:06 [end_date_ymd] => 2025-03-30 16:56:06 [RateCDR] => 1 ) [2025-03-30 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:56:06' and `end` < '2025-03-30 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:56:19] Production.INFO: count ==3344 [2025-03-30 16:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:56:06 - End Time 2025-03-30 16:56:06 [2025-03-30 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797546', 'tblTempUsageDetail_20' ) start [2025-03-30 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797546', 'tblTempUsageDetail_20' ) end [2025-03-30 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797546', 'tblTempVendorCDR_20' ) start [2025-03-30 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797546', 'tblTempVendorCDR_20' ) end [2025-03-30 16:56:20] Production.INFO: ProcessCDR(1,14797546,1,1,2) [2025-03-30 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797546', 'tblTempUsageDetail_20' ) start [2025-03-30 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797546', 'tblTempUsageDetail_20' ) end [2025-03-30 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:56:24] Production.INFO: ==19274== Releasing lock... [2025-03-30 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:56:24] Production.INFO: 53 MB #Memory Used# [2025-03-30 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:57:05 [end_date_ymd] => 2025-03-30 16:57:05 [RateCDR] => 1 ) [2025-03-30 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:57:05' and `end` < '2025-03-30 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-03-30 16:57:19] Production.INFO: count ==3306 [2025-03-30 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:57:05 - End Time 2025-03-30 16:57:05 [2025-03-30 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797551', 'tblTempUsageDetail_20' ) start [2025-03-30 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797551', 'tblTempUsageDetail_20' ) end [2025-03-30 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797551', 'tblTempVendorCDR_20' ) start [2025-03-30 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797551', 'tblTempVendorCDR_20' ) end [2025-03-30 16:57:20] Production.INFO: ProcessCDR(1,14797551,1,1,2) [2025-03-30 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797551', 'tblTempUsageDetail_20' ) start [2025-03-30 16:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797551', 'tblTempUsageDetail_20' ) end [2025-03-30 16:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:57:25] Production.INFO: ==19347== Releasing lock... [2025-03-30 16:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:57:25] Production.INFO: 53 MB #Memory Used# [2025-03-30 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:58:05 [end_date_ymd] => 2025-03-30 16:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 13:58:05' and `end` < '2025-03-30 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-03-30 16:58:18] Production.INFO: count ==3270 [2025-03-30 16:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 13:58:05 - End Time 2025-03-30 16:58:05 [2025-03-30 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797556', 'tblTempUsageDetail_20' ) start [2025-03-30 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797556', 'tblTempUsageDetail_20' ) end [2025-03-30 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797556', 'tblTempVendorCDR_20' ) start [2025-03-30 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797556', 'tblTempVendorCDR_20' ) end [2025-03-30 16:58:19] Production.INFO: ProcessCDR(1,14797556,1,1,2) [2025-03-30 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797556', 'tblTempUsageDetail_20' ) start [2025-03-30 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797556', 'tblTempUsageDetail_20' ) end [2025-03-30 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:58:24] Production.INFO: ==19419== Releasing lock... [2025-03-30 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:58:24] Production.INFO: 53 MB #Memory Used# [2025-03-30 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 13:59:05 [end_date_ymd] => 2025-03-30 16:59:05 [RateCDR] => 1 ) [2025-03-30 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 13:59:05' and `end` < '2025-03-30 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 16:59:18] Production.INFO: count ==3259 [2025-03-30 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-30 13:59:05 - End Time 2025-03-30 16:59:05 [2025-03-30 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797561', 'tblTempUsageDetail_20' ) start [2025-03-30 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797561', 'tblTempUsageDetail_20' ) end [2025-03-30 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797561', 'tblTempVendorCDR_20' ) start [2025-03-30 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797561', 'tblTempVendorCDR_20' ) end [2025-03-30 16:59:20] Production.INFO: ProcessCDR(1,14797561,1,1,2) [2025-03-30 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 16:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797561', 'tblTempUsageDetail_20' ) start [2025-03-30 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797561', 'tblTempUsageDetail_20' ) end [2025-03-30 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 16:59:25] Production.INFO: ==19491== Releasing lock... [2025-03-30 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 16:59:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:00:06 [end_date_ymd] => 2025-03-30 17:00:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:00:06' and `end` < '2025-03-30 17: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-03-30 17:00:19] Production.INFO: count ==3208 [2025-03-30 17:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:00:06 - End Time 2025-03-30 17:00:06 [2025-03-30 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797567', 'tblTempUsageDetail_20' ) start [2025-03-30 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797567', 'tblTempUsageDetail_20' ) end [2025-03-30 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797567', 'tblTempVendorCDR_20' ) start [2025-03-30 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797567', 'tblTempVendorCDR_20' ) end [2025-03-30 17:00:20] Production.INFO: ProcessCDR(1,14797567,1,1,2) [2025-03-30 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797567', 'tblTempUsageDetail_20' ) start [2025-03-30 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797567', 'tblTempUsageDetail_20' ) end [2025-03-30 17:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:00:24] Production.INFO: ==19565== Releasing lock... [2025-03-30 17:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:00:24] Production.INFO: 52 MB #Memory Used# [2025-03-30 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:01:06 [end_date_ymd] => 2025-03-30 17:01:06 [RateCDR] => 1 ) [2025-03-30 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:01:06' and `end` < '2025-03-30 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:01:19] Production.INFO: count ==3174 [2025-03-30 17:01:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:01:06 - End Time 2025-03-30 17:01:06 [2025-03-30 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797572', 'tblTempUsageDetail_20' ) start [2025-03-30 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797572', 'tblTempUsageDetail_20' ) end [2025-03-30 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797572', 'tblTempVendorCDR_20' ) start [2025-03-30 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797572', 'tblTempVendorCDR_20' ) end [2025-03-30 17:01:20] Production.INFO: ProcessCDR(1,14797572,1,1,2) [2025-03-30 17:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797572', 'tblTempUsageDetail_20' ) start [2025-03-30 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797572', 'tblTempUsageDetail_20' ) end [2025-03-30 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:01:24] Production.INFO: ==19656== Releasing lock... [2025-03-30 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:01:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-30 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:02:05 [end_date_ymd] => 2025-03-30 17:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:02:05' and `end` < '2025-03-30 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-03-30 17:02:18] Production.INFO: count ==3456 [2025-03-30 17:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:02:05 - End Time 2025-03-30 17:02:05 [2025-03-30 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797577', 'tblTempUsageDetail_20' ) start [2025-03-30 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797577', 'tblTempUsageDetail_20' ) end [2025-03-30 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797577', 'tblTempVendorCDR_20' ) start [2025-03-30 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797577', 'tblTempVendorCDR_20' ) end [2025-03-30 17:02:20] Production.INFO: ProcessCDR(1,14797577,1,1,2) [2025-03-30 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797577', 'tblTempUsageDetail_20' ) start [2025-03-30 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797577', 'tblTempUsageDetail_20' ) end [2025-03-30 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:02:24] Production.INFO: ==19731== Releasing lock... [2025-03-30 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:02:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:03:06 [end_date_ymd] => 2025-03-30 17:03:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:03:06' and `end` < '2025-03-30 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-03-30 17:03:19] Production.INFO: count ==3457 [2025-03-30 17:03:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:03:06 - End Time 2025-03-30 17:03:06 [2025-03-30 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797582', 'tblTempUsageDetail_20' ) start [2025-03-30 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797582', 'tblTempUsageDetail_20' ) end [2025-03-30 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797582', 'tblTempVendorCDR_20' ) start [2025-03-30 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797582', 'tblTempVendorCDR_20' ) end [2025-03-30 17:03:21] Production.INFO: ProcessCDR(1,14797582,1,1,2) [2025-03-30 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797582', 'tblTempUsageDetail_20' ) start [2025-03-30 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797582', 'tblTempUsageDetail_20' ) end [2025-03-30 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:03:25] Production.INFO: ==19806== Releasing lock... [2025-03-30 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:03:25] Production.INFO: 54 MB #Memory Used# [2025-03-30 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:04:05 [end_date_ymd] => 2025-03-30 17:04:05 [RateCDR] => 1 ) [2025-03-30 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:04:05' and `end` < '2025-03-30 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:04:18] Production.INFO: count ==3458 [2025-03-30 17:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:04:05 - End Time 2025-03-30 17:04:05 [2025-03-30 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797587', 'tblTempUsageDetail_20' ) start [2025-03-30 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797587', 'tblTempUsageDetail_20' ) end [2025-03-30 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797587', 'tblTempVendorCDR_20' ) start [2025-03-30 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797587', 'tblTempVendorCDR_20' ) end [2025-03-30 17:04:20] Production.INFO: ProcessCDR(1,14797587,1,1,2) [2025-03-30 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797587', 'tblTempUsageDetail_20' ) start [2025-03-30 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797587', 'tblTempUsageDetail_20' ) end [2025-03-30 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:04:23] Production.INFO: ==19888== Releasing lock... [2025-03-30 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:04:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:05:05 [end_date_ymd] => 2025-03-30 17:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:05:05' and `end` < '2025-03-30 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-03-30 17:05:18] Production.INFO: count ==3458 [2025-03-30 17:05:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:05:05 - End Time 2025-03-30 17:05:05 [2025-03-30 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797592', 'tblTempUsageDetail_20' ) start [2025-03-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797592', 'tblTempUsageDetail_20' ) end [2025-03-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797592', 'tblTempVendorCDR_20' ) start [2025-03-30 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797592', 'tblTempVendorCDR_20' ) end [2025-03-30 17:05:20] Production.INFO: ProcessCDR(1,14797592,1,1,2) [2025-03-30 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797592', 'tblTempUsageDetail_20' ) start [2025-03-30 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797592', 'tblTempUsageDetail_20' ) end [2025-03-30 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:05:23] Production.INFO: ==19958== Releasing lock... [2025-03-30 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:05:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:06:05 [end_date_ymd] => 2025-03-30 17:06:05 [RateCDR] => 1 ) [2025-03-30 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:06:05' and `end` < '2025-03-30 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:06:18] Production.INFO: count ==3454 [2025-03-30 17:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:06:05 - End Time 2025-03-30 17:06:05 [2025-03-30 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797597', 'tblTempUsageDetail_20' ) start [2025-03-30 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797597', 'tblTempUsageDetail_20' ) end [2025-03-30 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797597', 'tblTempVendorCDR_20' ) start [2025-03-30 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797597', 'tblTempVendorCDR_20' ) end [2025-03-30 17:06:19] Production.INFO: ProcessCDR(1,14797597,1,1,2) [2025-03-30 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797597', 'tblTempUsageDetail_20' ) start [2025-03-30 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797597', 'tblTempUsageDetail_20' ) end [2025-03-30 17:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:06:23] Production.INFO: ==20031== Releasing lock... [2025-03-30 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:06:23] Production.INFO: 54 MB #Memory Used# [2025-03-30 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:07:05 [end_date_ymd] => 2025-03-30 17:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:07:05' and `end` < '2025-03-30 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-03-30 17:07:18] Production.INFO: count ==3454 [2025-03-30 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:07:05 - End Time 2025-03-30 17:07:05 [2025-03-30 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797602', 'tblTempUsageDetail_20' ) start [2025-03-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797602', 'tblTempUsageDetail_20' ) end [2025-03-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797602', 'tblTempVendorCDR_20' ) start [2025-03-30 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797602', 'tblTempVendorCDR_20' ) end [2025-03-30 17:07:20] Production.INFO: ProcessCDR(1,14797602,1,1,2) [2025-03-30 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797602', 'tblTempUsageDetail_20' ) start [2025-03-30 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797602', 'tblTempUsageDetail_20' ) end [2025-03-30 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:07:23] Production.INFO: ==20102== Releasing lock... [2025-03-30 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:07:23] Production.INFO: 54 MB #Memory Used# [2025-03-30 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:08:05 [end_date_ymd] => 2025-03-30 17:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:08:05' and `end` < '2025-03-30 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-03-30 17:08:17] Production.INFO: count ==3512 [2025-03-30 17:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:08:05 - End Time 2025-03-30 17:08:05 [2025-03-30 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797607', 'tblTempUsageDetail_20' ) start [2025-03-30 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797607', 'tblTempUsageDetail_20' ) end [2025-03-30 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797607', 'tblTempVendorCDR_20' ) start [2025-03-30 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797607', 'tblTempVendorCDR_20' ) end [2025-03-30 17:08:19] Production.INFO: ProcessCDR(1,14797607,1,1,2) [2025-03-30 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797607', 'tblTempUsageDetail_20' ) start [2025-03-30 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797607', 'tblTempUsageDetail_20' ) end [2025-03-30 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:08:23] Production.INFO: ==20212== Releasing lock... [2025-03-30 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:08:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:09:05 [end_date_ymd] => 2025-03-30 17:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:09:05' and `end` < '2025-03-30 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-03-30 17:09:18] Production.INFO: count ==3515 [2025-03-30 17:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:09:05 - End Time 2025-03-30 17:09:05 [2025-03-30 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797612', 'tblTempUsageDetail_20' ) start [2025-03-30 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797612', 'tblTempUsageDetail_20' ) end [2025-03-30 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797612', 'tblTempVendorCDR_20' ) start [2025-03-30 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797612', 'tblTempVendorCDR_20' ) end [2025-03-30 17:09:19] Production.INFO: ProcessCDR(1,14797612,1,1,2) [2025-03-30 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797612', 'tblTempUsageDetail_20' ) start [2025-03-30 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797612', 'tblTempUsageDetail_20' ) end [2025-03-30 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:09:23] Production.INFO: ==20289== Releasing lock... [2025-03-30 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:09:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:10:06 [end_date_ymd] => 2025-03-30 17:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:10:06' and `end` < '2025-03-30 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-03-30 17:10:19] Production.INFO: count ==3567 [2025-03-30 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-30 14:10:06 - End Time 2025-03-30 17:10:06 [2025-03-30 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797618', 'tblTempUsageDetail_20' ) start [2025-03-30 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797618', 'tblTempUsageDetail_20' ) end [2025-03-30 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797618', 'tblTempVendorCDR_20' ) start [2025-03-30 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797618', 'tblTempVendorCDR_20' ) end [2025-03-30 17:10:21] Production.INFO: ProcessCDR(1,14797618,1,1,2) [2025-03-30 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797618', 'tblTempUsageDetail_20' ) start [2025-03-30 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797618', 'tblTempUsageDetail_20' ) end [2025-03-30 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:10:25] Production.INFO: ==20369== Releasing lock... [2025-03-30 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:10:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-30 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:11:05 [end_date_ymd] => 2025-03-30 17:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:11:05' and `end` < '2025-03-30 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-03-30 17:11:18] Production.INFO: count ==3637 [2025-03-30 17:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:11:05 - End Time 2025-03-30 17:11:05 [2025-03-30 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797623', 'tblTempUsageDetail_20' ) start [2025-03-30 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797623', 'tblTempUsageDetail_20' ) end [2025-03-30 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797623', 'tblTempVendorCDR_20' ) start [2025-03-30 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797623', 'tblTempVendorCDR_20' ) end [2025-03-30 17:11:20] Production.INFO: ProcessCDR(1,14797623,1,1,2) [2025-03-30 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797623', 'tblTempUsageDetail_20' ) start [2025-03-30 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797623', 'tblTempUsageDetail_20' ) end [2025-03-30 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:11:25] Production.INFO: ==20445== Releasing lock... [2025-03-30 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:11:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:12:06 [end_date_ymd] => 2025-03-30 17:12:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:12:06' and `end` < '2025-03-30 17:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:12:19] Production.INFO: count ==3635 [2025-03-30 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:12:06 - End Time 2025-03-30 17:12:06 [2025-03-30 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797628', 'tblTempUsageDetail_20' ) start [2025-03-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797628', 'tblTempUsageDetail_20' ) end [2025-03-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797628', 'tblTempVendorCDR_20' ) start [2025-03-30 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797628', 'tblTempVendorCDR_20' ) end [2025-03-30 17:12:20] Production.INFO: ProcessCDR(1,14797628,1,1,2) [2025-03-30 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797628', 'tblTempUsageDetail_20' ) start [2025-03-30 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797628', 'tblTempUsageDetail_20' ) end [2025-03-30 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:12:25] Production.INFO: ==20519== Releasing lock... [2025-03-30 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:12:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:13:05 [end_date_ymd] => 2025-03-30 17:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:13:05' and `end` < '2025-03-30 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-03-30 17:13:18] Production.INFO: count ==3628 [2025-03-30 17:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:13:05 - End Time 2025-03-30 17:13:05 [2025-03-30 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797633', 'tblTempUsageDetail_20' ) start [2025-03-30 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797633', 'tblTempUsageDetail_20' ) end [2025-03-30 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797633', 'tblTempVendorCDR_20' ) start [2025-03-30 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797633', 'tblTempVendorCDR_20' ) end [2025-03-30 17:13:20] Production.INFO: ProcessCDR(1,14797633,1,1,2) [2025-03-30 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797633', 'tblTempUsageDetail_20' ) start [2025-03-30 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797633', 'tblTempUsageDetail_20' ) end [2025-03-30 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:13:25] Production.INFO: ==20596== Releasing lock... [2025-03-30 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:13:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:14:05 [end_date_ymd] => 2025-03-30 17:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:14:05' and `end` < '2025-03-30 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-03-30 17:14:18] Production.INFO: count ==3634 [2025-03-30 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:14:05 - End Time 2025-03-30 17:14:05 [2025-03-30 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797638', 'tblTempUsageDetail_20' ) start [2025-03-30 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797638', 'tblTempUsageDetail_20' ) end [2025-03-30 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797638', 'tblTempVendorCDR_20' ) start [2025-03-30 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797638', 'tblTempVendorCDR_20' ) end [2025-03-30 17:14:20] Production.INFO: ProcessCDR(1,14797638,1,1,2) [2025-03-30 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797638', 'tblTempUsageDetail_20' ) start [2025-03-30 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797638', 'tblTempUsageDetail_20' ) end [2025-03-30 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:14:25] Production.INFO: ==20683== Releasing lock... [2025-03-30 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:14:25] Production.INFO: 55 MB #Memory Used# [2025-03-30 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:15:05 [end_date_ymd] => 2025-03-30 17:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:15:05' and `end` < '2025-03-30 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-03-30 17:15:18] Production.INFO: count ==3625 [2025-03-30 17:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:15:05 - End Time 2025-03-30 17:15:05 [2025-03-30 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797643', 'tblTempUsageDetail_20' ) start [2025-03-30 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797643', 'tblTempUsageDetail_20' ) end [2025-03-30 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797643', 'tblTempVendorCDR_20' ) start [2025-03-30 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797643', 'tblTempVendorCDR_20' ) end [2025-03-30 17:15:19] Production.INFO: ProcessCDR(1,14797643,1,1,2) [2025-03-30 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797643', 'tblTempUsageDetail_20' ) start [2025-03-30 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797643', 'tblTempUsageDetail_20' ) end [2025-03-30 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:15:25] Production.INFO: ==20760== Releasing lock... [2025-03-30 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:15:25] Production.INFO: 55 MB #Memory Used# [2025-03-30 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:16:06 [end_date_ymd] => 2025-03-30 17:16:06 [RateCDR] => 1 ) [2025-03-30 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:16:06' and `end` < '2025-03-30 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:16:19] Production.INFO: count ==3653 [2025-03-30 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:16:06 - End Time 2025-03-30 17:16:06 [2025-03-30 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797648', 'tblTempUsageDetail_20' ) start [2025-03-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797648', 'tblTempUsageDetail_20' ) end [2025-03-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797648', 'tblTempVendorCDR_20' ) start [2025-03-30 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797648', 'tblTempVendorCDR_20' ) end [2025-03-30 17:16:20] Production.INFO: ProcessCDR(1,14797648,1,1,2) [2025-03-30 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797648', 'tblTempUsageDetail_20' ) start [2025-03-30 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797648', 'tblTempUsageDetail_20' ) end [2025-03-30 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:16:26] Production.INFO: ==20843== Releasing lock... [2025-03-30 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:16:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:17:06 [end_date_ymd] => 2025-03-30 17:17:06 [RateCDR] => 1 ) [2025-03-30 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:17:06' and `end` < '2025-03-30 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:17:19] Production.INFO: count ==3658 [2025-03-30 17:17:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:17:06 - End Time 2025-03-30 17:17:06 [2025-03-30 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797653', 'tblTempUsageDetail_20' ) start [2025-03-30 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797653', 'tblTempUsageDetail_20' ) end [2025-03-30 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797653', 'tblTempVendorCDR_20' ) start [2025-03-30 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797653', 'tblTempVendorCDR_20' ) end [2025-03-30 17:17:20] Production.INFO: ProcessCDR(1,14797653,1,1,2) [2025-03-30 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797653', 'tblTempUsageDetail_20' ) start [2025-03-30 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797653', 'tblTempUsageDetail_20' ) end [2025-03-30 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:17:26] Production.INFO: ==20923== Releasing lock... [2025-03-30 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:17:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:18:05 [end_date_ymd] => 2025-03-30 17:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:18:05' and `end` < '2025-03-30 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-03-30 17:18:18] Production.INFO: count ==3653 [2025-03-30 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:18:05 - End Time 2025-03-30 17:18:05 [2025-03-30 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797658', 'tblTempUsageDetail_20' ) start [2025-03-30 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797658', 'tblTempUsageDetail_20' ) end [2025-03-30 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797658', 'tblTempVendorCDR_20' ) start [2025-03-30 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797658', 'tblTempVendorCDR_20' ) end [2025-03-30 17:18:20] Production.INFO: ProcessCDR(1,14797658,1,1,2) [2025-03-30 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797658', 'tblTempUsageDetail_20' ) start [2025-03-30 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797658', 'tblTempUsageDetail_20' ) end [2025-03-30 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:18:25] Production.INFO: ==21013== Releasing lock... [2025-03-30 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:18:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:19:05 [end_date_ymd] => 2025-03-30 17:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:19:05' and `end` < '2025-03-30 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-03-30 17:19:18] Production.INFO: count ==3653 [2025-03-30 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:19:05 - End Time 2025-03-30 17:19:05 [2025-03-30 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797663', 'tblTempUsageDetail_20' ) start [2025-03-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797663', 'tblTempUsageDetail_20' ) end [2025-03-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797663', 'tblTempVendorCDR_20' ) start [2025-03-30 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797663', 'tblTempVendorCDR_20' ) end [2025-03-30 17:19:20] Production.INFO: ProcessCDR(1,14797663,1,1,2) [2025-03-30 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797663', 'tblTempUsageDetail_20' ) start [2025-03-30 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797663', 'tblTempUsageDetail_20' ) end [2025-03-30 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:19:25] Production.INFO: ==21093== Releasing lock... [2025-03-30 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:19:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:20:06 [end_date_ymd] => 2025-03-30 17:20:06 [RateCDR] => 1 ) [2025-03-30 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:20:06' and `end` < '2025-03-30 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:20:19] Production.INFO: count ==3655 [2025-03-30 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-30 14:20:06 - End Time 2025-03-30 17:20:06 [2025-03-30 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797669', 'tblTempUsageDetail_20' ) start [2025-03-30 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797669', 'tblTempUsageDetail_20' ) end [2025-03-30 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797669', 'tblTempVendorCDR_20' ) start [2025-03-30 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797669', 'tblTempVendorCDR_20' ) end [2025-03-30 17:20:21] Production.INFO: ProcessCDR(1,14797669,1,1,2) [2025-03-30 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797669', 'tblTempUsageDetail_20' ) start [2025-03-30 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797669', 'tblTempUsageDetail_20' ) end [2025-03-30 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:20:26] Production.INFO: ==21178== Releasing lock... [2025-03-30 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:20:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:21:05 [end_date_ymd] => 2025-03-30 17:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:21:05' and `end` < '2025-03-30 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-03-30 17:21:17] Production.INFO: count ==3662 [2025-03-30 17:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:21:05 - End Time 2025-03-30 17:21:05 [2025-03-30 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797674', 'tblTempUsageDetail_20' ) start [2025-03-30 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797674', 'tblTempUsageDetail_20' ) end [2025-03-30 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797674', 'tblTempVendorCDR_20' ) start [2025-03-30 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797674', 'tblTempVendorCDR_20' ) end [2025-03-30 17:21:19] Production.INFO: ProcessCDR(1,14797674,1,1,2) [2025-03-30 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797674', 'tblTempUsageDetail_20' ) start [2025-03-30 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797674', 'tblTempUsageDetail_20' ) end [2025-03-30 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:21:24] Production.INFO: ==21260== Releasing lock... [2025-03-30 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:21:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:22:06 [end_date_ymd] => 2025-03-30 17:22:06 [RateCDR] => 1 ) [2025-03-30 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:22:06' and `end` < '2025-03-30 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:22:19] Production.INFO: count ==3665 [2025-03-30 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:22:06 - End Time 2025-03-30 17:22:06 [2025-03-30 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797679', 'tblTempUsageDetail_20' ) start [2025-03-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797679', 'tblTempUsageDetail_20' ) end [2025-03-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797679', 'tblTempVendorCDR_20' ) start [2025-03-30 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797679', 'tblTempVendorCDR_20' ) end [2025-03-30 17:22:20] Production.INFO: ProcessCDR(1,14797679,1,1,2) [2025-03-30 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797679', 'tblTempUsageDetail_20' ) start [2025-03-30 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797679', 'tblTempUsageDetail_20' ) end [2025-03-30 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:22:25] Production.INFO: ==21339== Releasing lock... [2025-03-30 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:22:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:23:05 [end_date_ymd] => 2025-03-30 17:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:23:05' and `end` < '2025-03-30 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-03-30 17:23:18] Production.INFO: count ==3663 [2025-03-30 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:23:05 - End Time 2025-03-30 17:23:05 [2025-03-30 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797684', 'tblTempUsageDetail_20' ) start [2025-03-30 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797684', 'tblTempUsageDetail_20' ) end [2025-03-30 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797684', 'tblTempVendorCDR_20' ) start [2025-03-30 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797684', 'tblTempVendorCDR_20' ) end [2025-03-30 17:23:20] Production.INFO: ProcessCDR(1,14797684,1,1,2) [2025-03-30 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797684', 'tblTempUsageDetail_20' ) start [2025-03-30 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797684', 'tblTempUsageDetail_20' ) end [2025-03-30 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:23:23] Production.INFO: ==21418== Releasing lock... [2025-03-30 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:23:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:24:05 [end_date_ymd] => 2025-03-30 17:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:24:05' and `end` < '2025-03-30 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-03-30 17:24:18] Production.INFO: count ==3664 [2025-03-30 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:24:05 - End Time 2025-03-30 17:24:05 [2025-03-30 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797689', 'tblTempUsageDetail_20' ) start [2025-03-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797689', 'tblTempUsageDetail_20' ) end [2025-03-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797689', 'tblTempVendorCDR_20' ) start [2025-03-30 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797689', 'tblTempVendorCDR_20' ) end [2025-03-30 17:24:20] Production.INFO: ProcessCDR(1,14797689,1,1,2) [2025-03-30 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797689', 'tblTempUsageDetail_20' ) start [2025-03-30 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797689', 'tblTempUsageDetail_20' ) end [2025-03-30 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:24:25] Production.INFO: ==21536== Releasing lock... [2025-03-30 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:24:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:25:05 [end_date_ymd] => 2025-03-30 17:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:25:05' and `end` < '2025-03-30 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-03-30 17:25:18] Production.INFO: count ==3672 [2025-03-30 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:25:05 - End Time 2025-03-30 17:25:05 [2025-03-30 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797694', 'tblTempUsageDetail_20' ) start [2025-03-30 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797694', 'tblTempUsageDetail_20' ) end [2025-03-30 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797694', 'tblTempVendorCDR_20' ) start [2025-03-30 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797694', 'tblTempVendorCDR_20' ) end [2025-03-30 17:25:20] Production.INFO: ProcessCDR(1,14797694,1,1,2) [2025-03-30 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797694', 'tblTempUsageDetail_20' ) start [2025-03-30 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797694', 'tblTempUsageDetail_20' ) end [2025-03-30 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:25:25] Production.INFO: ==21620== Releasing lock... [2025-03-30 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:25:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:26:05 [end_date_ymd] => 2025-03-30 17:26:05 [RateCDR] => 1 ) [2025-03-30 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:26:05' and `end` < '2025-03-30 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:26:17] Production.INFO: count ==3683 [2025-03-30 17:26:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:26:05 - End Time 2025-03-30 17:26:05 [2025-03-30 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797699', 'tblTempUsageDetail_20' ) start [2025-03-30 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797699', 'tblTempUsageDetail_20' ) end [2025-03-30 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797699', 'tblTempVendorCDR_20' ) start [2025-03-30 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797699', 'tblTempVendorCDR_20' ) end [2025-03-30 17:26:19] Production.INFO: ProcessCDR(1,14797699,1,1,2) [2025-03-30 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797699', 'tblTempUsageDetail_20' ) start [2025-03-30 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797699', 'tblTempUsageDetail_20' ) end [2025-03-30 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:26:24] Production.INFO: ==21703== Releasing lock... [2025-03-30 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:26:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:27:05 [end_date_ymd] => 2025-03-30 17:27:05 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:27:05' and `end` < '2025-03-30 17: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-03-30 17:27:18] Production.INFO: count ==3695 [2025-03-30 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:27:05 - End Time 2025-03-30 17:27:05 [2025-03-30 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797704', 'tblTempUsageDetail_20' ) start [2025-03-30 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797704', 'tblTempUsageDetail_20' ) end [2025-03-30 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797704', 'tblTempVendorCDR_20' ) start [2025-03-30 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797704', 'tblTempVendorCDR_20' ) end [2025-03-30 17:27:20] Production.INFO: ProcessCDR(1,14797704,1,1,2) [2025-03-30 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797704', 'tblTempUsageDetail_20' ) start [2025-03-30 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797704', 'tblTempUsageDetail_20' ) end [2025-03-30 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:27:25] Production.INFO: ==21782== Releasing lock... [2025-03-30 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:27:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:28:05 [end_date_ymd] => 2025-03-30 17:28:05 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:28:05' and `end` < '2025-03-30 17: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-03-30 17:28:17] Production.INFO: count ==3693 [2025-03-30 17:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:28:05 - End Time 2025-03-30 17:28:05 [2025-03-30 17:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797709', 'tblTempUsageDetail_20' ) start [2025-03-30 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797709', 'tblTempUsageDetail_20' ) end [2025-03-30 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797709', 'tblTempVendorCDR_20' ) start [2025-03-30 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797709', 'tblTempVendorCDR_20' ) end [2025-03-30 17:28:19] Production.INFO: ProcessCDR(1,14797709,1,1,2) [2025-03-30 17:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797709', 'tblTempUsageDetail_20' ) start [2025-03-30 17:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797709', 'tblTempUsageDetail_20' ) end [2025-03-30 17:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:28:24] Production.INFO: ==21862== Releasing lock... [2025-03-30 17:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:28:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:29:05 [end_date_ymd] => 2025-03-30 17:29:05 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:29:05' and `end` < '2025-03-30 17: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-03-30 17:29:18] Production.INFO: count ==3690 [2025-03-30 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:29:05 - End Time 2025-03-30 17:29:05 [2025-03-30 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797714', 'tblTempUsageDetail_20' ) start [2025-03-30 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797714', 'tblTempUsageDetail_20' ) end [2025-03-30 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797714', 'tblTempVendorCDR_20' ) start [2025-03-30 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797714', 'tblTempVendorCDR_20' ) end [2025-03-30 17:29:20] Production.INFO: ProcessCDR(1,14797714,1,1,2) [2025-03-30 17:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797714', 'tblTempUsageDetail_20' ) start [2025-03-30 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797714', 'tblTempUsageDetail_20' ) end [2025-03-30 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:29:23] Production.INFO: ==21944== Releasing lock... [2025-03-30 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:29:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:30:06 [end_date_ymd] => 2025-03-30 17:30:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:30:06' and `end` < '2025-03-30 17: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-03-30 17:30:19] Production.INFO: count ==3706 [2025-03-30 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-30 14:30:06 - End Time 2025-03-30 17:30:06 [2025-03-30 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797719', 'tblTempUsageDetail_20' ) start [2025-03-30 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797719', 'tblTempUsageDetail_20' ) end [2025-03-30 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797719', 'tblTempVendorCDR_20' ) start [2025-03-30 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797719', 'tblTempVendorCDR_20' ) end [2025-03-30 17:30:21] Production.INFO: ProcessCDR(1,14797719,1,1,2) [2025-03-30 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797719', 'tblTempUsageDetail_20' ) start [2025-03-30 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797719', 'tblTempUsageDetail_20' ) end [2025-03-30 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:30:26] Production.INFO: ==22028== Releasing lock... [2025-03-30 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:30:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:31:06 [end_date_ymd] => 2025-03-30 17:31:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:31:06' and `end` < '2025-03-30 17: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-03-30 17:31:19] Production.INFO: count ==3772 [2025-03-30 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:31:06 - End Time 2025-03-30 17:31:06 [2025-03-30 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797725', 'tblTempUsageDetail_20' ) start [2025-03-30 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797725', 'tblTempUsageDetail_20' ) end [2025-03-30 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797725', 'tblTempVendorCDR_20' ) start [2025-03-30 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797725', 'tblTempVendorCDR_20' ) end [2025-03-30 17:31:21] Production.INFO: ProcessCDR(1,14797725,1,1,2) [2025-03-30 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797725', 'tblTempUsageDetail_20' ) start [2025-03-30 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797725', 'tblTempUsageDetail_20' ) end [2025-03-30 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:31:26] Production.INFO: ==22126== Releasing lock... [2025-03-30 17:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:31:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:32:05 [end_date_ymd] => 2025-03-30 17:32:05 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:32:05' and `end` < '2025-03-30 17: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-03-30 17:32:18] Production.INFO: count ==3766 [2025-03-30 17:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:32:05 - End Time 2025-03-30 17:32:05 [2025-03-30 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797730', 'tblTempUsageDetail_20' ) start [2025-03-30 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797730', 'tblTempUsageDetail_20' ) end [2025-03-30 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797730', 'tblTempVendorCDR_20' ) start [2025-03-30 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797730', 'tblTempVendorCDR_20' ) end [2025-03-30 17:32:20] Production.INFO: ProcessCDR(1,14797730,1,1,2) [2025-03-30 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797730', 'tblTempUsageDetail_20' ) start [2025-03-30 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797730', 'tblTempUsageDetail_20' ) end [2025-03-30 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:32:26] Production.INFO: ==22213== Releasing lock... [2025-03-30 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:32:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:33:05 [end_date_ymd] => 2025-03-30 17:33:05 [RateCDR] => 1 ) [2025-03-30 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:33:05' and `end` < '2025-03-30 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:33:18] Production.INFO: count ==3775 [2025-03-30 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:33:05 - End Time 2025-03-30 17:33:05 [2025-03-30 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797735', 'tblTempUsageDetail_20' ) start [2025-03-30 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797735', 'tblTempUsageDetail_20' ) end [2025-03-30 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797735', 'tblTempVendorCDR_20' ) start [2025-03-30 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797735', 'tblTempVendorCDR_20' ) end [2025-03-30 17:33:20] Production.INFO: ProcessCDR(1,14797735,1,1,2) [2025-03-30 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797735', 'tblTempUsageDetail_20' ) start [2025-03-30 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797735', 'tblTempUsageDetail_20' ) end [2025-03-30 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:33:25] Production.INFO: ==22304== Releasing lock... [2025-03-30 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:33:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:34:05 [end_date_ymd] => 2025-03-30 17:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:34:05' and `end` < '2025-03-30 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-03-30 17:34:18] Production.INFO: count ==3769 [2025-03-30 17:34:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:34:05 - End Time 2025-03-30 17:34:05 [2025-03-30 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797740', 'tblTempUsageDetail_20' ) start [2025-03-30 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797740', 'tblTempUsageDetail_20' ) end [2025-03-30 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797740', 'tblTempVendorCDR_20' ) start [2025-03-30 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797740', 'tblTempVendorCDR_20' ) end [2025-03-30 17:34:19] Production.INFO: ProcessCDR(1,14797740,1,1,2) [2025-03-30 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797740', 'tblTempUsageDetail_20' ) start [2025-03-30 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797740', 'tblTempUsageDetail_20' ) end [2025-03-30 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:34:25] Production.INFO: ==22387== Releasing lock... [2025-03-30 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:34:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:35:05 [end_date_ymd] => 2025-03-30 17:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:35:05' and `end` < '2025-03-30 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-03-30 17:35:18] Production.INFO: count ==3779 [2025-03-30 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:35:05 - End Time 2025-03-30 17:35:05 [2025-03-30 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797745', 'tblTempUsageDetail_20' ) start [2025-03-30 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797745', 'tblTempUsageDetail_20' ) end [2025-03-30 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797745', 'tblTempVendorCDR_20' ) start [2025-03-30 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797745', 'tblTempVendorCDR_20' ) end [2025-03-30 17:35:20] Production.INFO: ProcessCDR(1,14797745,1,1,2) [2025-03-30 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797745', 'tblTempUsageDetail_20' ) start [2025-03-30 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797745', 'tblTempUsageDetail_20' ) end [2025-03-30 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:35:25] Production.INFO: ==22477== Releasing lock... [2025-03-30 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:35:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-30 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:36:05 [end_date_ymd] => 2025-03-30 17:36:05 [RateCDR] => 1 ) [2025-03-30 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:36:05' and `end` < '2025-03-30 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:36:18] Production.INFO: count ==3775 [2025-03-30 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:36:05 - End Time 2025-03-30 17:36:05 [2025-03-30 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797750', 'tblTempUsageDetail_20' ) start [2025-03-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797750', 'tblTempUsageDetail_20' ) end [2025-03-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797750', 'tblTempVendorCDR_20' ) start [2025-03-30 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797750', 'tblTempVendorCDR_20' ) end [2025-03-30 17:36:20] Production.INFO: ProcessCDR(1,14797750,1,1,2) [2025-03-30 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797750', 'tblTempUsageDetail_20' ) start [2025-03-30 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797750', 'tblTempUsageDetail_20' ) end [2025-03-30 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:36:24] Production.INFO: ==22562== Releasing lock... [2025-03-30 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:36:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-30 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:37:06 [end_date_ymd] => 2025-03-30 17:37:06 [RateCDR] => 1 ) [2025-03-30 17:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:37:06' and `end` < '2025-03-30 17:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:37:19] Production.INFO: count ==3765 [2025-03-30 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-30 14:37:06 - End Time 2025-03-30 17:37:06 [2025-03-30 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797755', 'tblTempUsageDetail_20' ) start [2025-03-30 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797755', 'tblTempUsageDetail_20' ) end [2025-03-30 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797755', 'tblTempVendorCDR_20' ) start [2025-03-30 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797755', 'tblTempVendorCDR_20' ) end [2025-03-30 17:37:21] Production.INFO: ProcessCDR(1,14797755,1,1,2) [2025-03-30 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797755', 'tblTempUsageDetail_20' ) start [2025-03-30 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797755', 'tblTempUsageDetail_20' ) end [2025-03-30 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:37:26] Production.INFO: ==22645== Releasing lock... [2025-03-30 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:37:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:38:05 [end_date_ymd] => 2025-03-30 17:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:38:05' and `end` < '2025-03-30 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-03-30 17:38:18] Production.INFO: count ==3774 [2025-03-30 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:38:05 - End Time 2025-03-30 17:38:05 [2025-03-30 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797760', 'tblTempUsageDetail_20' ) start [2025-03-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797760', 'tblTempUsageDetail_20' ) end [2025-03-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797760', 'tblTempVendorCDR_20' ) start [2025-03-30 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797760', 'tblTempVendorCDR_20' ) end [2025-03-30 17:38:20] Production.INFO: ProcessCDR(1,14797760,1,1,2) [2025-03-30 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797760', 'tblTempUsageDetail_20' ) start [2025-03-30 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797760', 'tblTempUsageDetail_20' ) end [2025-03-30 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:38:26] Production.INFO: ==22731== Releasing lock... [2025-03-30 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:38:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:39:05 [end_date_ymd] => 2025-03-30 17:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:39:05' and `end` < '2025-03-30 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-03-30 17:39:18] Production.INFO: count ==3764 [2025-03-30 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:39:05 - End Time 2025-03-30 17:39:05 [2025-03-30 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797765', 'tblTempUsageDetail_20' ) start [2025-03-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797765', 'tblTempUsageDetail_20' ) end [2025-03-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797765', 'tblTempVendorCDR_20' ) start [2025-03-30 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797765', 'tblTempVendorCDR_20' ) end [2025-03-30 17:39:20] Production.INFO: ProcessCDR(1,14797765,1,1,2) [2025-03-30 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797765', 'tblTempUsageDetail_20' ) start [2025-03-30 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797765', 'tblTempUsageDetail_20' ) end [2025-03-30 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:39:25] Production.INFO: ==22854== Releasing lock... [2025-03-30 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:39:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:40:05 [end_date_ymd] => 2025-03-30 17:40:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:40:05' and `end` < '2025-03-30 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-03-30 17:40:18] Production.INFO: count ==3748 [2025-03-30 17:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:40:05 - End Time 2025-03-30 17:40:05 [2025-03-30 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797770', 'tblTempUsageDetail_20' ) start [2025-03-30 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797770', 'tblTempUsageDetail_20' ) end [2025-03-30 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797770', 'tblTempVendorCDR_20' ) start [2025-03-30 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797770', 'tblTempVendorCDR_20' ) end [2025-03-30 17:40:20] Production.INFO: ProcessCDR(1,14797770,1,1,2) [2025-03-30 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797770', 'tblTempUsageDetail_20' ) start [2025-03-30 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797770', 'tblTempUsageDetail_20' ) end [2025-03-30 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:40:25] Production.INFO: ==22938== Releasing lock... [2025-03-30 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:40:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:41:06 [end_date_ymd] => 2025-03-30 17:41:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:41:06' and `end` < '2025-03-30 17: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-03-30 17:41:18] Production.INFO: count ==3785 [2025-03-30 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:41:06 - End Time 2025-03-30 17:41:06 [2025-03-30 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797776', 'tblTempUsageDetail_20' ) start [2025-03-30 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797776', 'tblTempUsageDetail_20' ) end [2025-03-30 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797776', 'tblTempVendorCDR_20' ) start [2025-03-30 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797776', 'tblTempVendorCDR_20' ) end [2025-03-30 17:41:20] Production.INFO: ProcessCDR(1,14797776,1,1,2) [2025-03-30 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797776', 'tblTempUsageDetail_20' ) start [2025-03-30 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797776', 'tblTempUsageDetail_20' ) end [2025-03-30 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:41:26] Production.INFO: ==23031== Releasing lock... [2025-03-30 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:41:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-30 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:42:05 [end_date_ymd] => 2025-03-30 17:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:42:05' and `end` < '2025-03-30 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-03-30 17:42:18] Production.INFO: count ==3782 [2025-03-30 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:42:05 - End Time 2025-03-30 17:42:05 [2025-03-30 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797781', 'tblTempUsageDetail_20' ) start [2025-03-30 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797781', 'tblTempUsageDetail_20' ) end [2025-03-30 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797781', 'tblTempVendorCDR_20' ) start [2025-03-30 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797781', 'tblTempVendorCDR_20' ) end [2025-03-30 17:42:20] Production.INFO: ProcessCDR(1,14797781,1,1,2) [2025-03-30 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797781', 'tblTempUsageDetail_20' ) start [2025-03-30 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797781', 'tblTempUsageDetail_20' ) end [2025-03-30 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:42:24] Production.INFO: ==23117== Releasing lock... [2025-03-30 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:42:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-30 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:43:05 [end_date_ymd] => 2025-03-30 17:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:43:05' and `end` < '2025-03-30 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-03-30 17:43:18] Production.INFO: count ==3746 [2025-03-30 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:43:05 - End Time 2025-03-30 17:43:05 [2025-03-30 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797786', 'tblTempUsageDetail_20' ) start [2025-03-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797786', 'tblTempUsageDetail_20' ) end [2025-03-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797786', 'tblTempVendorCDR_20' ) start [2025-03-30 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797786', 'tblTempVendorCDR_20' ) end [2025-03-30 17:43:20] Production.INFO: ProcessCDR(1,14797786,1,1,2) [2025-03-30 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797786', 'tblTempUsageDetail_20' ) start [2025-03-30 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797786', 'tblTempUsageDetail_20' ) end [2025-03-30 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:43:23] Production.INFO: ==23198== Releasing lock... [2025-03-30 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:43:23] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:44:05 [end_date_ymd] => 2025-03-30 17:44:05 [RateCDR] => 1 ) [2025-03-30 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:44:05' and `end` < '2025-03-30 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:44:18] Production.INFO: count ==3731 [2025-03-30 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:44:05 - End Time 2025-03-30 17:44:05 [2025-03-30 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797791', 'tblTempUsageDetail_20' ) start [2025-03-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797791', 'tblTempUsageDetail_20' ) end [2025-03-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797791', 'tblTempVendorCDR_20' ) start [2025-03-30 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797791', 'tblTempVendorCDR_20' ) end [2025-03-30 17:44:20] Production.INFO: ProcessCDR(1,14797791,1,1,2) [2025-03-30 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797791', 'tblTempUsageDetail_20' ) start [2025-03-30 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797791', 'tblTempUsageDetail_20' ) end [2025-03-30 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:44:25] Production.INFO: ==23278== Releasing lock... [2025-03-30 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:44:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:45:05 [end_date_ymd] => 2025-03-30 17:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:45:05' and `end` < '2025-03-30 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-03-30 17:45:18] Production.INFO: count ==3738 [2025-03-30 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:45:05 - End Time 2025-03-30 17:45:05 [2025-03-30 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797796', 'tblTempUsageDetail_20' ) start [2025-03-30 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797796', 'tblTempUsageDetail_20' ) end [2025-03-30 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797796', 'tblTempVendorCDR_20' ) start [2025-03-30 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797796', 'tblTempVendorCDR_20' ) end [2025-03-30 17:45:20] Production.INFO: ProcessCDR(1,14797796,1,1,2) [2025-03-30 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797796', 'tblTempUsageDetail_20' ) start [2025-03-30 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797796', 'tblTempUsageDetail_20' ) end [2025-03-30 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:45:23] Production.INFO: ==23358== Releasing lock... [2025-03-30 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:45:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:46:06 [end_date_ymd] => 2025-03-30 17:46:06 [RateCDR] => 1 ) [2025-03-30 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:46:06' and `end` < '2025-03-30 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:46:19] Production.INFO: count ==3744 [2025-03-30 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:46:06 - End Time 2025-03-30 17:46:06 [2025-03-30 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797801', 'tblTempUsageDetail_20' ) start [2025-03-30 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797801', 'tblTempUsageDetail_20' ) end [2025-03-30 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797801', 'tblTempVendorCDR_20' ) start [2025-03-30 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797801', 'tblTempVendorCDR_20' ) end [2025-03-30 17:46:20] Production.INFO: ProcessCDR(1,14797801,1,1,2) [2025-03-30 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797801', 'tblTempUsageDetail_20' ) start [2025-03-30 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797801', 'tblTempUsageDetail_20' ) end [2025-03-30 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:46:25] Production.INFO: ==23441== Releasing lock... [2025-03-30 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:46:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:47:05 [end_date_ymd] => 2025-03-30 17:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:47:05' and `end` < '2025-03-30 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-03-30 17:47:18] Production.INFO: count ==3746 [2025-03-30 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:47:05 - End Time 2025-03-30 17:47:05 [2025-03-30 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797806', 'tblTempUsageDetail_20' ) start [2025-03-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797806', 'tblTempUsageDetail_20' ) end [2025-03-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797806', 'tblTempVendorCDR_20' ) start [2025-03-30 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797806', 'tblTempVendorCDR_20' ) end [2025-03-30 17:47:20] Production.INFO: ProcessCDR(1,14797806,1,1,2) [2025-03-30 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797806', 'tblTempUsageDetail_20' ) start [2025-03-30 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797806', 'tblTempUsageDetail_20' ) end [2025-03-30 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:47:25] Production.INFO: ==23527== Releasing lock... [2025-03-30 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:47:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:48:06 [end_date_ymd] => 2025-03-30 17:48:06 [RateCDR] => 1 ) [2025-03-30 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:48:06' and `end` < '2025-03-30 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:48:19] Production.INFO: count ==3730 [2025-03-30 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:48:06 - End Time 2025-03-30 17:48:06 [2025-03-30 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797811', 'tblTempUsageDetail_20' ) start [2025-03-30 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797811', 'tblTempUsageDetail_20' ) end [2025-03-30 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797811', 'tblTempVendorCDR_20' ) start [2025-03-30 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797811', 'tblTempVendorCDR_20' ) end [2025-03-30 17:48:20] Production.INFO: ProcessCDR(1,14797811,1,1,2) [2025-03-30 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797811', 'tblTempUsageDetail_20' ) start [2025-03-30 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797811', 'tblTempUsageDetail_20' ) end [2025-03-30 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:48:25] Production.INFO: ==23609== Releasing lock... [2025-03-30 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:48:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:49:05 [end_date_ymd] => 2025-03-30 17:49:05 [RateCDR] => 1 ) [2025-03-30 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:49:05' and `end` < '2025-03-30 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:49:18] Production.INFO: count ==3729 [2025-03-30 17:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:49:05 - End Time 2025-03-30 17:49:05 [2025-03-30 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797816', 'tblTempUsageDetail_20' ) start [2025-03-30 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797816', 'tblTempUsageDetail_20' ) end [2025-03-30 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797816', 'tblTempVendorCDR_20' ) start [2025-03-30 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797816', 'tblTempVendorCDR_20' ) end [2025-03-30 17:49:19] Production.INFO: ProcessCDR(1,14797816,1,1,2) [2025-03-30 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797816', 'tblTempUsageDetail_20' ) start [2025-03-30 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797816', 'tblTempUsageDetail_20' ) end [2025-03-30 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:49:23] Production.INFO: ==23690== Releasing lock... [2025-03-30 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:49:23] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:50:06 [end_date_ymd] => 2025-03-30 17:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:50:06' and `end` < '2025-03-30 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-03-30 17:50:19] Production.INFO: count ==3729 [2025-03-30 17:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:50:06 - End Time 2025-03-30 17:50:06 [2025-03-30 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797821', 'tblTempUsageDetail_20' ) start [2025-03-30 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797821', 'tblTempUsageDetail_20' ) end [2025-03-30 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797821', 'tblTempVendorCDR_20' ) start [2025-03-30 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797821', 'tblTempVendorCDR_20' ) end [2025-03-30 17:50:21] Production.INFO: ProcessCDR(1,14797821,1,1,2) [2025-03-30 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797821', 'tblTempUsageDetail_20' ) start [2025-03-30 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797821', 'tblTempUsageDetail_20' ) end [2025-03-30 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:50:26] Production.INFO: ==23773== Releasing lock... [2025-03-30 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:50:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:51:05 [end_date_ymd] => 2025-03-30 17:51:05 [RateCDR] => 1 ) [2025-03-30 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:51:05' and `end` < '2025-03-30 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:51:18] Production.INFO: count ==3737 [2025-03-30 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:51:05 - End Time 2025-03-30 17:51:05 [2025-03-30 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797827', 'tblTempUsageDetail_20' ) start [2025-03-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797827', 'tblTempUsageDetail_20' ) end [2025-03-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797827', 'tblTempVendorCDR_20' ) start [2025-03-30 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797827', 'tblTempVendorCDR_20' ) end [2025-03-30 17:51:20] Production.INFO: ProcessCDR(1,14797827,1,1,2) [2025-03-30 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797827', 'tblTempUsageDetail_20' ) start [2025-03-30 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797827', 'tblTempUsageDetail_20' ) end [2025-03-30 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:51:25] Production.INFO: ==23855== Releasing lock... [2025-03-30 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:51:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:52:06 [end_date_ymd] => 2025-03-30 17:52:06 [RateCDR] => 1 ) [2025-03-30 17: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-03-30 14:52:06' and `end` < '2025-03-30 17: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-03-30 17:52:19] Production.INFO: count ==3727 [2025-03-30 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:52:06 - End Time 2025-03-30 17:52:06 [2025-03-30 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797832', 'tblTempUsageDetail_20' ) start [2025-03-30 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797832', 'tblTempUsageDetail_20' ) end [2025-03-30 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797832', 'tblTempVendorCDR_20' ) start [2025-03-30 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797832', 'tblTempVendorCDR_20' ) end [2025-03-30 17:52:20] Production.INFO: ProcessCDR(1,14797832,1,1,2) [2025-03-30 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797832', 'tblTempUsageDetail_20' ) start [2025-03-30 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797832', 'tblTempUsageDetail_20' ) end [2025-03-30 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:52:26] Production.INFO: ==23932== Releasing lock... [2025-03-30 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:52:26] Production.INFO: 56 MB #Memory Used# [2025-03-30 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:53:05 [end_date_ymd] => 2025-03-30 17:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:53:05' and `end` < '2025-03-30 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-03-30 17:53:18] Production.INFO: count ==3694 [2025-03-30 17:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:53:05 - End Time 2025-03-30 17:53:05 [2025-03-30 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797837', 'tblTempUsageDetail_20' ) start [2025-03-30 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797837', 'tblTempUsageDetail_20' ) end [2025-03-30 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797837', 'tblTempVendorCDR_20' ) start [2025-03-30 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797837', 'tblTempVendorCDR_20' ) end [2025-03-30 17:53:20] Production.INFO: ProcessCDR(1,14797837,1,1,2) [2025-03-30 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797837', 'tblTempUsageDetail_20' ) start [2025-03-30 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797837', 'tblTempUsageDetail_20' ) end [2025-03-30 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:53:25] Production.INFO: ==24016== Releasing lock... [2025-03-30 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:53:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:54:05 [end_date_ymd] => 2025-03-30 17:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:54:05' and `end` < '2025-03-30 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-03-30 17:54:18] Production.INFO: count ==3680 [2025-03-30 17:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:54:05 - End Time 2025-03-30 17:54:05 [2025-03-30 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797840', 'tblTempUsageDetail_20' ) start [2025-03-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797840', 'tblTempUsageDetail_20' ) end [2025-03-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797840', 'tblTempVendorCDR_20' ) start [2025-03-30 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797840', 'tblTempVendorCDR_20' ) end [2025-03-30 17:54:19] Production.INFO: ProcessCDR(1,14797840,1,1,2) [2025-03-30 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797840', 'tblTempUsageDetail_20' ) start [2025-03-30 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797840', 'tblTempUsageDetail_20' ) end [2025-03-30 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:54:23] Production.INFO: ==24099== Releasing lock... [2025-03-30 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:54:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:55:05 [end_date_ymd] => 2025-03-30 17:55:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:55:05' and `end` < '2025-03-30 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-03-30 17:55:18] Production.INFO: count ==3680 [2025-03-30 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:55:05 - End Time 2025-03-30 17:55:05 [2025-03-30 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797847', 'tblTempUsageDetail_20' ) start [2025-03-30 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797847', 'tblTempUsageDetail_20' ) end [2025-03-30 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797847', 'tblTempVendorCDR_20' ) start [2025-03-30 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797847', 'tblTempVendorCDR_20' ) end [2025-03-30 17:55:20] Production.INFO: ProcessCDR(1,14797847,1,1,2) [2025-03-30 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797847', 'tblTempUsageDetail_20' ) start [2025-03-30 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797847', 'tblTempUsageDetail_20' ) end [2025-03-30 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:55:25] Production.INFO: ==24214== Releasing lock... [2025-03-30 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:55:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:56:05 [end_date_ymd] => 2025-03-30 17:56:05 [RateCDR] => 1 ) [2025-03-30 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:56:05' and `end` < '2025-03-30 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:56:18] Production.INFO: count ==3697 [2025-03-30 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:56:05 - End Time 2025-03-30 17:56:05 [2025-03-30 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797852', 'tblTempUsageDetail_20' ) start [2025-03-30 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797852', 'tblTempUsageDetail_20' ) end [2025-03-30 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797852', 'tblTempVendorCDR_20' ) start [2025-03-30 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797852', 'tblTempVendorCDR_20' ) end [2025-03-30 17:56:20] Production.INFO: ProcessCDR(1,14797852,1,1,2) [2025-03-30 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797852', 'tblTempUsageDetail_20' ) start [2025-03-30 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797852', 'tblTempUsageDetail_20' ) end [2025-03-30 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:56:25] Production.INFO: ==24300== Releasing lock... [2025-03-30 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:56:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:57:05 [end_date_ymd] => 2025-03-30 17:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:57:05' and `end` < '2025-03-30 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-03-30 17:57:18] Production.INFO: count ==3706 [2025-03-30 17:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 14:57:05 - End Time 2025-03-30 17:57:05 [2025-03-30 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797857', 'tblTempUsageDetail_20' ) start [2025-03-30 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797857', 'tblTempUsageDetail_20' ) end [2025-03-30 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797857', 'tblTempVendorCDR_20' ) start [2025-03-30 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797857', 'tblTempVendorCDR_20' ) end [2025-03-30 17:57:19] Production.INFO: ProcessCDR(1,14797857,1,1,2) [2025-03-30 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797857', 'tblTempUsageDetail_20' ) start [2025-03-30 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797857', 'tblTempUsageDetail_20' ) end [2025-03-30 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:57:25] Production.INFO: ==24377== Releasing lock... [2025-03-30 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:57:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:58:05 [end_date_ymd] => 2025-03-30 17:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 14:58:05' and `end` < '2025-03-30 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-03-30 17:58:18] Production.INFO: count ==3712 [2025-03-30 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-30 14:58:05 - End Time 2025-03-30 17:58:05 [2025-03-30 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797862', 'tblTempUsageDetail_20' ) start [2025-03-30 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797862', 'tblTempUsageDetail_20' ) end [2025-03-30 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797862', 'tblTempVendorCDR_20' ) start [2025-03-30 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797862', 'tblTempVendorCDR_20' ) end [2025-03-30 17:58:20] Production.INFO: ProcessCDR(1,14797862,1,1,2) [2025-03-30 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797862', 'tblTempUsageDetail_20' ) start [2025-03-30 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797862', 'tblTempUsageDetail_20' ) end [2025-03-30 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:58:25] Production.INFO: ==24462== Releasing lock... [2025-03-30 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:58:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-30 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 14:59:06 [end_date_ymd] => 2025-03-30 17:59:06 [RateCDR] => 1 ) [2025-03-30 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 14:59:06' and `end` < '2025-03-30 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 17:59:19] Production.INFO: count ==3670 [2025-03-30 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-30 14:59:06 - End Time 2025-03-30 17:59:06 [2025-03-30 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797867', 'tblTempUsageDetail_20' ) start [2025-03-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797867', 'tblTempUsageDetail_20' ) end [2025-03-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797867', 'tblTempVendorCDR_20' ) start [2025-03-30 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797867', 'tblTempVendorCDR_20' ) end [2025-03-30 17:59:21] Production.INFO: ProcessCDR(1,14797867,1,1,2) [2025-03-30 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797867', 'tblTempUsageDetail_20' ) start [2025-03-30 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797867', 'tblTempUsageDetail_20' ) end [2025-03-30 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 17:59:26] Production.INFO: ==24537== Releasing lock... [2025-03-30 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 17:59:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:00:06 [end_date_ymd] => 2025-03-30 18:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:00:06' and `end` < '2025-03-30 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-03-30 18:00:19] Production.INFO: count ==3622 [2025-03-30 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:00:06 - End Time 2025-03-30 18:00:06 [2025-03-30 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797872', 'tblTempUsageDetail_20' ) start [2025-03-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797872', 'tblTempUsageDetail_20' ) end [2025-03-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797872', 'tblTempVendorCDR_20' ) start [2025-03-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797872', 'tblTempVendorCDR_20' ) end [2025-03-30 18:00:21] Production.INFO: ProcessCDR(1,14797872,1,1,2) [2025-03-30 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797872', 'tblTempUsageDetail_20' ) start [2025-03-30 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797872', 'tblTempUsageDetail_20' ) end [2025-03-30 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:00:25] Production.INFO: ==24620== Releasing lock... [2025-03-30 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:00:25] Production.INFO: 55 MB #Memory Used# [2025-03-30 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:01:06 [end_date_ymd] => 2025-03-30 18:01:06 [RateCDR] => 1 ) [2025-03-30 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:01:06' and `end` < '2025-03-30 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:01:19] Production.INFO: count ==3671 [2025-03-30 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:01:06 - End Time 2025-03-30 18:01:06 [2025-03-30 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797878', 'tblTempUsageDetail_20' ) start [2025-03-30 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797878', 'tblTempUsageDetail_20' ) end [2025-03-30 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797878', 'tblTempVendorCDR_20' ) start [2025-03-30 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797878', 'tblTempVendorCDR_20' ) end [2025-03-30 18:01:21] Production.INFO: ProcessCDR(1,14797878,1,1,2) [2025-03-30 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797878', 'tblTempUsageDetail_20' ) start [2025-03-30 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797878', 'tblTempUsageDetail_20' ) end [2025-03-30 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:01:26] Production.INFO: ==24718== Releasing lock... [2025-03-30 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:01:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-30 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:02:06 [end_date_ymd] => 2025-03-30 18:02:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:02:06' and `end` < '2025-03-30 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-03-30 18:02:18] Production.INFO: count ==4036 [2025-03-30 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:02:06 - End Time 2025-03-30 18:02:06 [2025-03-30 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797883', 'tblTempUsageDetail_20' ) start [2025-03-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797883', 'tblTempUsageDetail_20' ) end [2025-03-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797883', 'tblTempVendorCDR_20' ) start [2025-03-30 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797883', 'tblTempVendorCDR_20' ) end [2025-03-30 18:02:21] Production.INFO: ProcessCDR(1,14797883,1,1,2) [2025-03-30 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797883', 'tblTempUsageDetail_20' ) start [2025-03-30 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797883', 'tblTempUsageDetail_20' ) end [2025-03-30 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:02:26] Production.INFO: ==24797== Releasing lock... [2025-03-30 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:02:26] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:03:05 [end_date_ymd] => 2025-03-30 18:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:03:05' and `end` < '2025-03-30 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-03-30 18:03:18] Production.INFO: count ==4063 [2025-03-30 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:03:05 - End Time 2025-03-30 18:03:05 [2025-03-30 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797888', 'tblTempUsageDetail_20' ) start [2025-03-30 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797888', 'tblTempUsageDetail_20' ) end [2025-03-30 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797888', 'tblTempVendorCDR_20' ) start [2025-03-30 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797888', 'tblTempVendorCDR_20' ) end [2025-03-30 18:03:20] Production.INFO: ProcessCDR(1,14797888,1,1,2) [2025-03-30 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797888', 'tblTempUsageDetail_20' ) start [2025-03-30 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797888', 'tblTempUsageDetail_20' ) end [2025-03-30 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:03:24] Production.INFO: ==24880== Releasing lock... [2025-03-30 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:03:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:04:05 [end_date_ymd] => 2025-03-30 18:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:04:05' and `end` < '2025-03-30 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-03-30 18:04:18] Production.INFO: count ==4071 [2025-03-30 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:04:05 - End Time 2025-03-30 18:04:05 [2025-03-30 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797893', 'tblTempUsageDetail_20' ) start [2025-03-30 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797893', 'tblTempUsageDetail_20' ) end [2025-03-30 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797893', 'tblTempVendorCDR_20' ) start [2025-03-30 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797893', 'tblTempVendorCDR_20' ) end [2025-03-30 18:04:20] Production.INFO: ProcessCDR(1,14797893,1,1,2) [2025-03-30 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797893', 'tblTempUsageDetail_20' ) start [2025-03-30 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797893', 'tblTempUsageDetail_20' ) end [2025-03-30 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:04:25] Production.INFO: ==24959== Releasing lock... [2025-03-30 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:04:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:05:06 [end_date_ymd] => 2025-03-30 18:05:06 [RateCDR] => 1 ) [2025-03-30 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:05:06' and `end` < '2025-03-30 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:05:18] Production.INFO: count ==4201 [2025-03-30 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:05:06 - End Time 2025-03-30 18:05:06 [2025-03-30 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797898', 'tblTempUsageDetail_20' ) start [2025-03-30 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797898', 'tblTempUsageDetail_20' ) end [2025-03-30 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797898', 'tblTempVendorCDR_20' ) start [2025-03-30 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797898', 'tblTempVendorCDR_20' ) end [2025-03-30 18:05:21] Production.INFO: ProcessCDR(1,14797898,1,1,2) [2025-03-30 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797898', 'tblTempUsageDetail_20' ) start [2025-03-30 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797898', 'tblTempUsageDetail_20' ) end [2025-03-30 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:05:26] Production.INFO: ==25033== Releasing lock... [2025-03-30 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:05:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-30 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:06:05 [end_date_ymd] => 2025-03-30 18:06:05 [RateCDR] => 1 ) [2025-03-30 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:06:05' and `end` < '2025-03-30 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:06:18] Production.INFO: count ==4201 [2025-03-30 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:06:05 - End Time 2025-03-30 18:06:05 [2025-03-30 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797903', 'tblTempUsageDetail_20' ) start [2025-03-30 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797903', 'tblTempUsageDetail_20' ) end [2025-03-30 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797903', 'tblTempVendorCDR_20' ) start [2025-03-30 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797903', 'tblTempVendorCDR_20' ) end [2025-03-30 18:06:20] Production.INFO: ProcessCDR(1,14797903,1,1,2) [2025-03-30 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797903', 'tblTempUsageDetail_20' ) start [2025-03-30 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797903', 'tblTempUsageDetail_20' ) end [2025-03-30 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:06:24] Production.INFO: ==25109== Releasing lock... [2025-03-30 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:06:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-30 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:07:05 [end_date_ymd] => 2025-03-30 18:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:07:05' and `end` < '2025-03-30 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-03-30 18:07:18] Production.INFO: count ==4200 [2025-03-30 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:07:05 - End Time 2025-03-30 18:07:05 [2025-03-30 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797908', 'tblTempUsageDetail_20' ) start [2025-03-30 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797908', 'tblTempUsageDetail_20' ) end [2025-03-30 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797908', 'tblTempVendorCDR_20' ) start [2025-03-30 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797908', 'tblTempVendorCDR_20' ) end [2025-03-30 18:07:20] Production.INFO: ProcessCDR(1,14797908,1,1,2) [2025-03-30 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797908', 'tblTempUsageDetail_20' ) start [2025-03-30 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797908', 'tblTempUsageDetail_20' ) end [2025-03-30 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:07:25] Production.INFO: ==25186== Releasing lock... [2025-03-30 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:07:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-30 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:08:05 [end_date_ymd] => 2025-03-30 18:08:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:08:05' and `end` < '2025-03-30 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-03-30 18:08:18] Production.INFO: count ==4187 [2025-03-30 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:08:05 - End Time 2025-03-30 18:08:05 [2025-03-30 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797913', 'tblTempUsageDetail_20' ) start [2025-03-30 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797913', 'tblTempUsageDetail_20' ) end [2025-03-30 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797913', 'tblTempVendorCDR_20' ) start [2025-03-30 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797913', 'tblTempVendorCDR_20' ) end [2025-03-30 18:08:20] Production.INFO: ProcessCDR(1,14797913,1,1,2) [2025-03-30 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797913', 'tblTempUsageDetail_20' ) start [2025-03-30 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797913', 'tblTempUsageDetail_20' ) end [2025-03-30 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:08:25] Production.INFO: ==25262== Releasing lock... [2025-03-30 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:08:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-30 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:09:05 [end_date_ymd] => 2025-03-30 18:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:09:05' and `end` < '2025-03-30 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-03-30 18:09:18] Production.INFO: count ==4158 [2025-03-30 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:09:05 - End Time 2025-03-30 18:09:05 [2025-03-30 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797918', 'tblTempUsageDetail_20' ) start [2025-03-30 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797918', 'tblTempUsageDetail_20' ) end [2025-03-30 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797918', 'tblTempVendorCDR_20' ) start [2025-03-30 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797918', 'tblTempVendorCDR_20' ) end [2025-03-30 18:09:20] Production.INFO: ProcessCDR(1,14797918,1,1,2) [2025-03-30 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797918', 'tblTempUsageDetail_20' ) start [2025-03-30 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797918', 'tblTempUsageDetail_20' ) end [2025-03-30 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:09:25] Production.INFO: ==25341== Releasing lock... [2025-03-30 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:09:25] Production.INFO: 59 MB #Memory Used# [2025-03-30 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:10:06 [end_date_ymd] => 2025-03-30 18:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:10:06' and `end` < '2025-03-30 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-03-30 18:10:19] Production.INFO: count ==4122 [2025-03-30 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:10:06 - End Time 2025-03-30 18:10:06 [2025-03-30 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797923', 'tblTempUsageDetail_20' ) start [2025-03-30 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797923', 'tblTempUsageDetail_20' ) end [2025-03-30 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797923', 'tblTempVendorCDR_20' ) start [2025-03-30 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797923', 'tblTempVendorCDR_20' ) end [2025-03-30 18:10:21] Production.INFO: ProcessCDR(1,14797923,1,1,2) [2025-03-30 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797923', 'tblTempUsageDetail_20' ) start [2025-03-30 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797923', 'tblTempUsageDetail_20' ) end [2025-03-30 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:10:25] Production.INFO: ==25456== Releasing lock... [2025-03-30 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:10:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-30 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:11:05 [end_date_ymd] => 2025-03-30 18:11:05 [RateCDR] => 1 ) [2025-03-30 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:11:05' and `end` < '2025-03-30 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:11:18] Production.INFO: count ==4079 [2025-03-30 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:11:05 - End Time 2025-03-30 18:11:05 [2025-03-30 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797929', 'tblTempUsageDetail_20' ) start [2025-03-30 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797929', 'tblTempUsageDetail_20' ) end [2025-03-30 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797929', 'tblTempVendorCDR_20' ) start [2025-03-30 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797929', 'tblTempVendorCDR_20' ) end [2025-03-30 18:11:20] Production.INFO: ProcessCDR(1,14797929,1,1,2) [2025-03-30 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797929', 'tblTempUsageDetail_20' ) start [2025-03-30 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797929', 'tblTempUsageDetail_20' ) end [2025-03-30 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:11:24] Production.INFO: ==25536== Releasing lock... [2025-03-30 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:11:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:12:06 [end_date_ymd] => 2025-03-30 18:12:06 [RateCDR] => 1 ) [2025-03-30 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:12:06' and `end` < '2025-03-30 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:12:19] Production.INFO: count ==4042 [2025-03-30 18:12:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:12:06 - End Time 2025-03-30 18:12:06 [2025-03-30 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797934', 'tblTempUsageDetail_20' ) start [2025-03-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797934', 'tblTempUsageDetail_20' ) end [2025-03-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797934', 'tblTempVendorCDR_20' ) start [2025-03-30 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797934', 'tblTempVendorCDR_20' ) end [2025-03-30 18:12:21] Production.INFO: ProcessCDR(1,14797934,1,1,2) [2025-03-30 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797934', 'tblTempUsageDetail_20' ) start [2025-03-30 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797934', 'tblTempUsageDetail_20' ) end [2025-03-30 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:12:24] Production.INFO: ==25613== Releasing lock... [2025-03-30 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:12:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:13:05 [end_date_ymd] => 2025-03-30 18:13:05 [RateCDR] => 1 ) [2025-03-30 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:13:05' and `end` < '2025-03-30 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:13:18] Production.INFO: count ==4032 [2025-03-30 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:13:05 - End Time 2025-03-30 18:13:05 [2025-03-30 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797939', 'tblTempUsageDetail_20' ) start [2025-03-30 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797939', 'tblTempUsageDetail_20' ) end [2025-03-30 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797939', 'tblTempVendorCDR_20' ) start [2025-03-30 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797939', 'tblTempVendorCDR_20' ) end [2025-03-30 18:13:20] Production.INFO: ProcessCDR(1,14797939,1,1,2) [2025-03-30 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797939', 'tblTempUsageDetail_20' ) start [2025-03-30 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797939', 'tblTempUsageDetail_20' ) end [2025-03-30 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:13:23] Production.INFO: ==25690== Releasing lock... [2025-03-30 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:13:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:14:05 [end_date_ymd] => 2025-03-30 18:14:05 [RateCDR] => 1 ) [2025-03-30 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:14:05' and `end` < '2025-03-30 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:14:19] Production.INFO: count ==4001 [2025-03-30 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:14:05 - End Time 2025-03-30 18:14:05 [2025-03-30 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797944', 'tblTempUsageDetail_20' ) start [2025-03-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797944', 'tblTempUsageDetail_20' ) end [2025-03-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797944', 'tblTempVendorCDR_20' ) start [2025-03-30 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797944', 'tblTempVendorCDR_20' ) end [2025-03-30 18:14:21] Production.INFO: ProcessCDR(1,14797944,1,1,2) [2025-03-30 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797944', 'tblTempUsageDetail_20' ) start [2025-03-30 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797944', 'tblTempUsageDetail_20' ) end [2025-03-30 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:14:26] Production.INFO: ==25764== Releasing lock... [2025-03-30 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:14:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:15:05 [end_date_ymd] => 2025-03-30 18:15:05 [RateCDR] => 1 ) [2025-03-30 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:15:05' and `end` < '2025-03-30 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:15:18] Production.INFO: count ==4009 [2025-03-30 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:15:05 - End Time 2025-03-30 18:15:05 [2025-03-30 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797949', 'tblTempUsageDetail_20' ) start [2025-03-30 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797949', 'tblTempUsageDetail_20' ) end [2025-03-30 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797949', 'tblTempVendorCDR_20' ) start [2025-03-30 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797949', 'tblTempVendorCDR_20' ) end [2025-03-30 18:15:20] Production.INFO: ProcessCDR(1,14797949,1,1,2) [2025-03-30 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797949', 'tblTempUsageDetail_20' ) start [2025-03-30 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797949', 'tblTempUsageDetail_20' ) end [2025-03-30 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:15:24] Production.INFO: ==25837== Releasing lock... [2025-03-30 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:15:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:16:06 [end_date_ymd] => 2025-03-30 18:16:06 [RateCDR] => 1 ) [2025-03-30 18: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-03-30 15:16:06' and `end` < '2025-03-30 18: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-03-30 18:16:19] Production.INFO: count ==4012 [2025-03-30 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:16:06 - End Time 2025-03-30 18:16:06 [2025-03-30 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797954', 'tblTempUsageDetail_20' ) start [2025-03-30 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797954', 'tblTempUsageDetail_20' ) end [2025-03-30 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797954', 'tblTempVendorCDR_20' ) start [2025-03-30 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797954', 'tblTempVendorCDR_20' ) end [2025-03-30 18:16:21] Production.INFO: ProcessCDR(1,14797954,1,1,2) [2025-03-30 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797954', 'tblTempUsageDetail_20' ) start [2025-03-30 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797954', 'tblTempUsageDetail_20' ) end [2025-03-30 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:16:26] Production.INFO: ==25912== Releasing lock... [2025-03-30 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:16:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:17:05 [end_date_ymd] => 2025-03-30 18:17:05 [RateCDR] => 1 ) [2025-03-30 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:17:05' and `end` < '2025-03-30 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:17:18] Production.INFO: count ==4018 [2025-03-30 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:17:05 - End Time 2025-03-30 18:17:05 [2025-03-30 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797959', 'tblTempUsageDetail_20' ) start [2025-03-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797959', 'tblTempUsageDetail_20' ) end [2025-03-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797959', 'tblTempVendorCDR_20' ) start [2025-03-30 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797959', 'tblTempVendorCDR_20' ) end [2025-03-30 18:17:20] Production.INFO: ProcessCDR(1,14797959,1,1,2) [2025-03-30 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797959', 'tblTempUsageDetail_20' ) start [2025-03-30 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797959', 'tblTempUsageDetail_20' ) end [2025-03-30 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:17:23] Production.INFO: ==25982== Releasing lock... [2025-03-30 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:17:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:18:05 [end_date_ymd] => 2025-03-30 18:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:18:05' and `end` < '2025-03-30 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-03-30 18:18:18] Production.INFO: count ==4020 [2025-03-30 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:18:05 - End Time 2025-03-30 18:18:05 [2025-03-30 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797964', 'tblTempUsageDetail_20' ) start [2025-03-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797964', 'tblTempUsageDetail_20' ) end [2025-03-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797964', 'tblTempVendorCDR_20' ) start [2025-03-30 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797964', 'tblTempVendorCDR_20' ) end [2025-03-30 18:18:20] Production.INFO: ProcessCDR(1,14797964,1,1,2) [2025-03-30 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797964', 'tblTempUsageDetail_20' ) start [2025-03-30 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797964', 'tblTempUsageDetail_20' ) end [2025-03-30 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:18:24] Production.INFO: ==26055== Releasing lock... [2025-03-30 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:18:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:19:05 [end_date_ymd] => 2025-03-30 18:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:19:05' and `end` < '2025-03-30 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-03-30 18:19:18] Production.INFO: count ==4028 [2025-03-30 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:19:05 - End Time 2025-03-30 18:19:05 [2025-03-30 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797969', 'tblTempUsageDetail_20' ) start [2025-03-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797969', 'tblTempUsageDetail_20' ) end [2025-03-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797969', 'tblTempVendorCDR_20' ) start [2025-03-30 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797969', 'tblTempVendorCDR_20' ) end [2025-03-30 18:19:20] Production.INFO: ProcessCDR(1,14797969,1,1,2) [2025-03-30 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797969', 'tblTempUsageDetail_20' ) start [2025-03-30 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797969', 'tblTempUsageDetail_20' ) end [2025-03-30 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:19:25] Production.INFO: ==26133== Releasing lock... [2025-03-30 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:19:25] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:20:06 [end_date_ymd] => 2025-03-30 18:20:06 [RateCDR] => 1 ) [2025-03-30 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:20:06' and `end` < '2025-03-30 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:20:19] Production.INFO: count ==4027 [2025-03-30 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:20:06 - End Time 2025-03-30 18:20:06 [2025-03-30 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797975', 'tblTempUsageDetail_20' ) start [2025-03-30 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797975', 'tblTempUsageDetail_20' ) end [2025-03-30 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797975', 'tblTempVendorCDR_20' ) start [2025-03-30 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797975', 'tblTempVendorCDR_20' ) end [2025-03-30 18:20:21] Production.INFO: ProcessCDR(1,14797975,1,1,2) [2025-03-30 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797975', 'tblTempUsageDetail_20' ) start [2025-03-30 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797975', 'tblTempUsageDetail_20' ) end [2025-03-30 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:20:26] Production.INFO: ==26208== Releasing lock... [2025-03-30 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:20:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:21:05 [end_date_ymd] => 2025-03-30 18:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:21:05' and `end` < '2025-03-30 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-03-30 18:21:18] Production.INFO: count ==4048 [2025-03-30 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 15:21:05 - End Time 2025-03-30 18:21:05 [2025-03-30 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797980', 'tblTempUsageDetail_20' ) start [2025-03-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797980', 'tblTempUsageDetail_20' ) end [2025-03-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797980', 'tblTempVendorCDR_20' ) start [2025-03-30 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797980', 'tblTempVendorCDR_20' ) end [2025-03-30 18:21:20] Production.INFO: ProcessCDR(1,14797980,1,1,2) [2025-03-30 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797980', 'tblTempUsageDetail_20' ) start [2025-03-30 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797980', 'tblTempUsageDetail_20' ) end [2025-03-30 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:21:25] Production.INFO: ==26284== Releasing lock... [2025-03-30 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:21:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:22:06 [end_date_ymd] => 2025-03-30 18:22:06 [RateCDR] => 1 ) [2025-03-30 18:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:22:06' and `end` < '2025-03-30 18:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:22:19] Production.INFO: count ==4047 [2025-03-30 18:22:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:22:06 - End Time 2025-03-30 18:22:06 [2025-03-30 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797985', 'tblTempUsageDetail_20' ) start [2025-03-30 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797985', 'tblTempUsageDetail_20' ) end [2025-03-30 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797985', 'tblTempVendorCDR_20' ) start [2025-03-30 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797985', 'tblTempVendorCDR_20' ) end [2025-03-30 18:22:21] Production.INFO: ProcessCDR(1,14797985,1,1,2) [2025-03-30 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797985', 'tblTempUsageDetail_20' ) start [2025-03-30 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797985', 'tblTempUsageDetail_20' ) end [2025-03-30 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:22:26] Production.INFO: ==26356== Releasing lock... [2025-03-30 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:22:26] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:23:05 [end_date_ymd] => 2025-03-30 18:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:23:05' and `end` < '2025-03-30 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-03-30 18:23:18] Production.INFO: count ==4042 [2025-03-30 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 15:23:05 - End Time 2025-03-30 18:23:05 [2025-03-30 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797990', 'tblTempUsageDetail_20' ) start [2025-03-30 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797990', 'tblTempUsageDetail_20' ) end [2025-03-30 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797990', 'tblTempVendorCDR_20' ) start [2025-03-30 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797990', 'tblTempVendorCDR_20' ) end [2025-03-30 18:23:20] Production.INFO: ProcessCDR(1,14797990,1,1,2) [2025-03-30 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797990', 'tblTempUsageDetail_20' ) start [2025-03-30 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797990', 'tblTempUsageDetail_20' ) end [2025-03-30 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:23:23] Production.INFO: ==26428== Releasing lock... [2025-03-30 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:23:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:24:06 [end_date_ymd] => 2025-03-30 18:24:06 [RateCDR] => 1 ) [2025-03-30 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:24:06' and `end` < '2025-03-30 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:24:19] Production.INFO: count ==4040 [2025-03-30 18:24:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:24:06 - End Time 2025-03-30 18:24:06 [2025-03-30 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797995', 'tblTempUsageDetail_20' ) start [2025-03-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14797995', 'tblTempUsageDetail_20' ) end [2025-03-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797995', 'tblTempVendorCDR_20' ) start [2025-03-30 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14797995', 'tblTempVendorCDR_20' ) end [2025-03-30 18:24:21] Production.INFO: ProcessCDR(1,14797995,1,1,2) [2025-03-30 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14797995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14797995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14797995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14797995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797995', 'tblTempUsageDetail_20' ) start [2025-03-30 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14797995', 'tblTempUsageDetail_20' ) end [2025-03-30 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:24:24] Production.INFO: ==26498== Releasing lock... [2025-03-30 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:24:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:25:05 [end_date_ymd] => 2025-03-30 18:25:05 [RateCDR] => 1 ) [2025-03-30 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:25:05' and `end` < '2025-03-30 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:25:18] Production.INFO: count ==4158 [2025-03-30 18:25:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:25:05 - End Time 2025-03-30 18:25:05 [2025-03-30 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798000', 'tblTempUsageDetail_20' ) start [2025-03-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798000', 'tblTempUsageDetail_20' ) end [2025-03-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798000', 'tblTempVendorCDR_20' ) start [2025-03-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798000', 'tblTempVendorCDR_20' ) end [2025-03-30 18:25:20] Production.INFO: ProcessCDR(1,14798000,1,1,2) [2025-03-30 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798000', 'tblTempUsageDetail_20' ) start [2025-03-30 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798000', 'tblTempUsageDetail_20' ) end [2025-03-30 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:25:24] Production.INFO: ==26575== Releasing lock... [2025-03-30 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:25:24] Production.INFO: 59 MB #Memory Used# [2025-03-30 18:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:26:22 [end_date_ymd] => 2025-03-30 18:26:22 [RateCDR] => 1 ) [2025-03-30 18: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-03-30 15:26:22' and `end` < '2025-03-30 18: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-03-30 18:26:35] Production.INFO: count ==4160 [2025-03-30 18:27:39] Production.ERROR: pbx CDR StartTime 2025-03-30 15:26:22 - End Time 2025-03-30 18:26:22 [2025-03-30 18:27:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:27:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798005', 'tblTempUsageDetail_20' ) start [2025-03-30 18:27:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798005', 'tblTempUsageDetail_20' ) end [2025-03-30 18:27:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798005', 'tblTempVendorCDR_20' ) start [2025-03-30 18:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798005', 'tblTempVendorCDR_20' ) end [2025-03-30 18:27:45] Production.INFO: ProcessCDR(1,14798005,1,1,2) [2025-03-30 18:27:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:27:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:27:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798005', 'tblTempUsageDetail_20' ) start [2025-03-30 18:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798005', 'tblTempUsageDetail_20' ) end [2025-03-30 18:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:28:29] Production.INFO: ==26692== Releasing lock... [2025-03-30 18:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:28:29] Production.INFO: 59 MB #Memory Used# [2025-03-30 18:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:29:23 [end_date_ymd] => 2025-03-30 18:29:23 [RateCDR] => 1 ) [2025-03-30 18:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:29:23' and `end` < '2025-03-30 18:29:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:29:36] Production.INFO: count ==4157 [2025-03-30 18:30:25] Production.ERROR: pbx CDR StartTime 2025-03-30 15:29:23 - End Time 2025-03-30 18:29:23 [2025-03-30 18:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798015', 'tblTempUsageDetail_20' ) start [2025-03-30 18:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798015', 'tblTempUsageDetail_20' ) end [2025-03-30 18:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798015', 'tblTempVendorCDR_20' ) start [2025-03-30 18:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798015', 'tblTempVendorCDR_20' ) end [2025-03-30 18:30:42] Production.INFO: ProcessCDR(1,14798015,1,1,2) [2025-03-30 18:30:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:30:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:30:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798015', 'tblTempUsageDetail_20' ) start [2025-03-30 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798015', 'tblTempUsageDetail_20' ) end [2025-03-30 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:32:22] Production.INFO: ==26883== Releasing lock... [2025-03-30 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:32:22] Production.INFO: 59 MB #Memory Used# [2025-03-30 18:33:37] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:33:36 [end_date_ymd] => 2025-03-30 18:33:36 [RateCDR] => 1 ) [2025-03-30 18:33:37] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:33:36' and `end` < '2025-03-30 18:33:36' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:33:50] Production.INFO: count ==4146 [2025-03-30 18:35:30] Production.ERROR: pbx CDR StartTime 2025-03-30 15:33:36 - End Time 2025-03-30 18:33:36 [2025-03-30 18:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798030', 'tblTempUsageDetail_20' ) start [2025-03-30 18:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798030', 'tblTempUsageDetail_20' ) end [2025-03-30 18:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798030', 'tblTempVendorCDR_20' ) start [2025-03-30 18:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798030', 'tblTempVendorCDR_20' ) end [2025-03-30 18:35:31] Production.INFO: ProcessCDR(1,14798030,1,1,2) [2025-03-30 18:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:35:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:35:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:36:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:36:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798030', 'tblTempUsageDetail_20' ) start [2025-03-30 18:36:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798030', 'tblTempUsageDetail_20' ) end [2025-03-30 18:36:45] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:36:45] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:36:45] Production.INFO: ==27152== Releasing lock... [2025-03-30 18:36:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:36:45] Production.INFO: 59 MB #Memory Used# [2025-03-30 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:37:05 [end_date_ymd] => 2025-03-30 18:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:37:05' and `end` < '2025-03-30 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-03-30 18:37:18] Production.INFO: count ==4309 [2025-03-30 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:37:05 - End Time 2025-03-30 18:37:05 [2025-03-30 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798045', 'tblTempUsageDetail_20' ) start [2025-03-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798045', 'tblTempUsageDetail_20' ) end [2025-03-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798045', 'tblTempVendorCDR_20' ) start [2025-03-30 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798045', 'tblTempVendorCDR_20' ) end [2025-03-30 18:37:20] Production.INFO: ProcessCDR(1,14798045,1,1,2) [2025-03-30 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798045', 'tblTempUsageDetail_20' ) start [2025-03-30 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798045', 'tblTempUsageDetail_20' ) end [2025-03-30 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:37:26] Production.INFO: ==27429== Releasing lock... [2025-03-30 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:37:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-30 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:38:05 [end_date_ymd] => 2025-03-30 18:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:38:05' and `end` < '2025-03-30 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-03-30 18:38:18] Production.INFO: count ==4305 [2025-03-30 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:38:05 - End Time 2025-03-30 18:38:05 [2025-03-30 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798050', 'tblTempUsageDetail_20' ) start [2025-03-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798050', 'tblTempUsageDetail_20' ) end [2025-03-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798050', 'tblTempVendorCDR_20' ) start [2025-03-30 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798050', 'tblTempVendorCDR_20' ) end [2025-03-30 18:38:20] Production.INFO: ProcessCDR(1,14798050,1,1,2) [2025-03-30 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798050', 'tblTempUsageDetail_20' ) start [2025-03-30 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798050', 'tblTempUsageDetail_20' ) end [2025-03-30 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:38:26] Production.INFO: ==27503== Releasing lock... [2025-03-30 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:38:26] Production.INFO: 60 MB #Memory Used# [2025-03-30 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:39:04 [end_date_ymd] => 2025-03-30 18:39:04 [RateCDR] => 1 ) [2025-03-30 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:39:04' and `end` < '2025-03-30 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:39:17] Production.INFO: count ==4300 [2025-03-30 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 15:39:04 - End Time 2025-03-30 18:39:04 [2025-03-30 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798055', 'tblTempUsageDetail_20' ) start [2025-03-30 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798055', 'tblTempUsageDetail_20' ) end [2025-03-30 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798055', 'tblTempVendorCDR_20' ) start [2025-03-30 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798055', 'tblTempVendorCDR_20' ) end [2025-03-30 18:39:20] Production.INFO: ProcessCDR(1,14798055,1,1,2) [2025-03-30 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798055', 'tblTempUsageDetail_20' ) start [2025-03-30 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798055', 'tblTempUsageDetail_20' ) end [2025-03-30 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:39:25] Production.INFO: ==27581== Releasing lock... [2025-03-30 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:39:25] Production.INFO: 60 MB #Memory Used# [2025-03-30 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:40:06 [end_date_ymd] => 2025-03-30 18:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:40:06' and `end` < '2025-03-30 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-03-30 18:40:19] Production.INFO: count ==4313 [2025-03-30 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:40:06 - End Time 2025-03-30 18:40:06 [2025-03-30 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798061', 'tblTempUsageDetail_20' ) start [2025-03-30 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798061', 'tblTempUsageDetail_20' ) end [2025-03-30 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798061', 'tblTempVendorCDR_20' ) start [2025-03-30 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798061', 'tblTempVendorCDR_20' ) end [2025-03-30 18:40:21] Production.INFO: ProcessCDR(1,14798061,1,1,2) [2025-03-30 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798061', 'tblTempUsageDetail_20' ) start [2025-03-30 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798061', 'tblTempUsageDetail_20' ) end [2025-03-30 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:40:25] Production.INFO: ==27658== Releasing lock... [2025-03-30 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:40:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-30 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:41:05 [end_date_ymd] => 2025-03-30 18:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:41:05' and `end` < '2025-03-30 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-03-30 18:41:19] Production.INFO: count ==4331 [2025-03-30 18:41:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:41:05 - End Time 2025-03-30 18:41:05 [2025-03-30 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798066', 'tblTempUsageDetail_20' ) start [2025-03-30 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798066', 'tblTempUsageDetail_20' ) end [2025-03-30 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798066', 'tblTempVendorCDR_20' ) start [2025-03-30 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798066', 'tblTempVendorCDR_20' ) end [2025-03-30 18:41:21] Production.INFO: ProcessCDR(1,14798066,1,1,2) [2025-03-30 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798066', 'tblTempUsageDetail_20' ) start [2025-03-30 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798066', 'tblTempUsageDetail_20' ) end [2025-03-30 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:41:24] Production.INFO: ==27774== Releasing lock... [2025-03-30 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:41:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-30 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:42:05 [end_date_ymd] => 2025-03-30 18:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:42:05' and `end` < '2025-03-30 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:42:18] Production.INFO: count ==4356 [2025-03-30 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:42:05 - End Time 2025-03-30 18:42:05 [2025-03-30 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798071', 'tblTempUsageDetail_20' ) start [2025-03-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798071', 'tblTempUsageDetail_20' ) end [2025-03-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798071', 'tblTempVendorCDR_20' ) start [2025-03-30 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798071', 'tblTempVendorCDR_20' ) end [2025-03-30 18:42:20] Production.INFO: ProcessCDR(1,14798071,1,1,2) [2025-03-30 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798071', 'tblTempUsageDetail_20' ) start [2025-03-30 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798071', 'tblTempUsageDetail_20' ) end [2025-03-30 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:42:25] Production.INFO: ==27846== Releasing lock... [2025-03-30 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:42:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:43:05 [end_date_ymd] => 2025-03-30 18:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:43:05' and `end` < '2025-03-30 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-03-30 18:43:18] Production.INFO: count ==4360 [2025-03-30 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:43:05 - End Time 2025-03-30 18:43:05 [2025-03-30 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798076', 'tblTempUsageDetail_20' ) start [2025-03-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798076', 'tblTempUsageDetail_20' ) end [2025-03-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798076', 'tblTempVendorCDR_20' ) start [2025-03-30 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798076', 'tblTempVendorCDR_20' ) end [2025-03-30 18:43:20] Production.INFO: ProcessCDR(1,14798076,1,1,2) [2025-03-30 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798076', 'tblTempUsageDetail_20' ) start [2025-03-30 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798076', 'tblTempUsageDetail_20' ) end [2025-03-30 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:43:26] Production.INFO: ==27915== Releasing lock... [2025-03-30 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:43:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:44:05 [end_date_ymd] => 2025-03-30 18:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:44:05' and `end` < '2025-03-30 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-03-30 18:44:18] Production.INFO: count ==4359 [2025-03-30 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:44:05 - End Time 2025-03-30 18:44:05 [2025-03-30 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798081', 'tblTempUsageDetail_20' ) start [2025-03-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798081', 'tblTempUsageDetail_20' ) end [2025-03-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798081', 'tblTempVendorCDR_20' ) start [2025-03-30 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798081', 'tblTempVendorCDR_20' ) end [2025-03-30 18:44:20] Production.INFO: ProcessCDR(1,14798081,1,1,2) [2025-03-30 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798081', 'tblTempUsageDetail_20' ) start [2025-03-30 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798081', 'tblTempUsageDetail_20' ) end [2025-03-30 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:44:24] Production.INFO: ==27990== Releasing lock... [2025-03-30 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:44:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:45:06 [end_date_ymd] => 2025-03-30 18:45:06 [RateCDR] => 1 ) [2025-03-30 18: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-03-30 15:45:06' and `end` < '2025-03-30 18: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-03-30 18:45:18] Production.INFO: count ==4367 [2025-03-30 18:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:45:06 - End Time 2025-03-30 18:45:06 [2025-03-30 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798086', 'tblTempUsageDetail_20' ) start [2025-03-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798086', 'tblTempUsageDetail_20' ) end [2025-03-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798086', 'tblTempVendorCDR_20' ) start [2025-03-30 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798086', 'tblTempVendorCDR_20' ) end [2025-03-30 18:45:21] Production.INFO: ProcessCDR(1,14798086,1,1,2) [2025-03-30 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798086', 'tblTempUsageDetail_20' ) start [2025-03-30 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798086', 'tblTempUsageDetail_20' ) end [2025-03-30 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:45:26] Production.INFO: ==28065== Releasing lock... [2025-03-30 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:45:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:46:05 [end_date_ymd] => 2025-03-30 18:46:05 [RateCDR] => 1 ) [2025-03-30 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:46:05' and `end` < '2025-03-30 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:46:18] Production.INFO: count ==4359 [2025-03-30 18:46:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:46:05 - End Time 2025-03-30 18:46:05 [2025-03-30 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798091', 'tblTempUsageDetail_20' ) start [2025-03-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798091', 'tblTempUsageDetail_20' ) end [2025-03-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798091', 'tblTempVendorCDR_20' ) start [2025-03-30 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798091', 'tblTempVendorCDR_20' ) end [2025-03-30 18:46:20] Production.INFO: ProcessCDR(1,14798091,1,1,2) [2025-03-30 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798091', 'tblTempUsageDetail_20' ) start [2025-03-30 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798091', 'tblTempUsageDetail_20' ) end [2025-03-30 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:46:24] Production.INFO: ==28135== Releasing lock... [2025-03-30 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:46:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:47:05 [end_date_ymd] => 2025-03-30 18:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:47:05' and `end` < '2025-03-30 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-03-30 18:47:18] Production.INFO: count ==4350 [2025-03-30 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:47:05 - End Time 2025-03-30 18:47:05 [2025-03-30 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798096', 'tblTempUsageDetail_20' ) start [2025-03-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798096', 'tblTempUsageDetail_20' ) end [2025-03-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798096', 'tblTempVendorCDR_20' ) start [2025-03-30 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798096', 'tblTempVendorCDR_20' ) end [2025-03-30 18:47:20] Production.INFO: ProcessCDR(1,14798096,1,1,2) [2025-03-30 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798096', 'tblTempUsageDetail_20' ) start [2025-03-30 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798096', 'tblTempUsageDetail_20' ) end [2025-03-30 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:47:25] Production.INFO: ==28208== Releasing lock... [2025-03-30 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:47:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:48:05 [end_date_ymd] => 2025-03-30 18:48:05 [RateCDR] => 1 ) [2025-03-30 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:48:05' and `end` < '2025-03-30 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:48:18] Production.INFO: count ==4357 [2025-03-30 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:48:05 - End Time 2025-03-30 18:48:05 [2025-03-30 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798101', 'tblTempUsageDetail_20' ) start [2025-03-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798101', 'tblTempUsageDetail_20' ) end [2025-03-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798101', 'tblTempVendorCDR_20' ) start [2025-03-30 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798101', 'tblTempVendorCDR_20' ) end [2025-03-30 18:48:20] Production.INFO: ProcessCDR(1,14798101,1,1,2) [2025-03-30 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798101', 'tblTempUsageDetail_20' ) start [2025-03-30 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798101', 'tblTempUsageDetail_20' ) end [2025-03-30 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:48:24] Production.INFO: ==28280== Releasing lock... [2025-03-30 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:48:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:49:06 [end_date_ymd] => 2025-03-30 18:49:06 [RateCDR] => 1 ) [2025-03-30 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:49:06' and `end` < '2025-03-30 18:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:49:18] Production.INFO: count ==4363 [2025-03-30 18:49:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:49:06 - End Time 2025-03-30 18:49:06 [2025-03-30 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798106', 'tblTempUsageDetail_20' ) start [2025-03-30 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798106', 'tblTempUsageDetail_20' ) end [2025-03-30 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798106', 'tblTempVendorCDR_20' ) start [2025-03-30 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798106', 'tblTempVendorCDR_20' ) end [2025-03-30 18:49:21] Production.INFO: ProcessCDR(1,14798106,1,1,2) [2025-03-30 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798106', 'tblTempUsageDetail_20' ) start [2025-03-30 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798106', 'tblTempUsageDetail_20' ) end [2025-03-30 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:49:24] Production.INFO: ==28353== Releasing lock... [2025-03-30 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:49:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:50:06 [end_date_ymd] => 2025-03-30 18:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:50:06' and `end` < '2025-03-30 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-03-30 18:50:19] Production.INFO: count ==4365 [2025-03-30 18:50:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:50:06 - End Time 2025-03-30 18:50:06 [2025-03-30 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798112', 'tblTempUsageDetail_20' ) start [2025-03-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798112', 'tblTempUsageDetail_20' ) end [2025-03-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798112', 'tblTempVendorCDR_20' ) start [2025-03-30 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798112', 'tblTempVendorCDR_20' ) end [2025-03-30 18:50:21] Production.INFO: ProcessCDR(1,14798112,1,1,2) [2025-03-30 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798112', 'tblTempUsageDetail_20' ) start [2025-03-30 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798112', 'tblTempUsageDetail_20' ) end [2025-03-30 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:50:25] Production.INFO: ==28427== Releasing lock... [2025-03-30 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:50:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-30 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:51:06 [end_date_ymd] => 2025-03-30 18:51:06 [RateCDR] => 1 ) [2025-03-30 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:51:06' and `end` < '2025-03-30 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:51:19] Production.INFO: count ==4357 [2025-03-30 18:51:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:51:06 - End Time 2025-03-30 18:51:06 [2025-03-30 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798117', 'tblTempUsageDetail_20' ) start [2025-03-30 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798117', 'tblTempUsageDetail_20' ) end [2025-03-30 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798117', 'tblTempVendorCDR_20' ) start [2025-03-30 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798117', 'tblTempVendorCDR_20' ) end [2025-03-30 18:51:21] Production.INFO: ProcessCDR(1,14798117,1,1,2) [2025-03-30 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798117', 'tblTempUsageDetail_20' ) start [2025-03-30 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798117', 'tblTempUsageDetail_20' ) end [2025-03-30 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:51:25] Production.INFO: ==28507== Releasing lock... [2025-03-30 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:51:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:52:05 [end_date_ymd] => 2025-03-30 18:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:52:05' and `end` < '2025-03-30 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-03-30 18:52:18] Production.INFO: count ==4398 [2025-03-30 18:52:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:52:05 - End Time 2025-03-30 18:52:05 [2025-03-30 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798122', 'tblTempUsageDetail_20' ) start [2025-03-30 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798122', 'tblTempUsageDetail_20' ) end [2025-03-30 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798122', 'tblTempVendorCDR_20' ) start [2025-03-30 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798122', 'tblTempVendorCDR_20' ) end [2025-03-30 18:52:20] Production.INFO: ProcessCDR(1,14798122,1,1,2) [2025-03-30 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798122', 'tblTempUsageDetail_20' ) start [2025-03-30 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798122', 'tblTempUsageDetail_20' ) end [2025-03-30 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:52:24] Production.INFO: ==28584== Releasing lock... [2025-03-30 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:52:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-30 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:53:05 [end_date_ymd] => 2025-03-30 18:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:53:05' and `end` < '2025-03-30 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-03-30 18:53:18] Production.INFO: count ==4396 [2025-03-30 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:53:05 - End Time 2025-03-30 18:53:05 [2025-03-30 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798127', 'tblTempUsageDetail_20' ) start [2025-03-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798127', 'tblTempUsageDetail_20' ) end [2025-03-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798127', 'tblTempVendorCDR_20' ) start [2025-03-30 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798127', 'tblTempVendorCDR_20' ) end [2025-03-30 18:53:20] Production.INFO: ProcessCDR(1,14798127,1,1,2) [2025-03-30 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798127', 'tblTempUsageDetail_20' ) start [2025-03-30 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798127', 'tblTempUsageDetail_20' ) end [2025-03-30 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:53:24] Production.INFO: ==28664== Releasing lock... [2025-03-30 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:53:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-30 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:54:05 [end_date_ymd] => 2025-03-30 18:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:54:05' and `end` < '2025-03-30 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-03-30 18:54:18] Production.INFO: count ==4497 [2025-03-30 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-30 15:54:05 - End Time 2025-03-30 18:54:05 [2025-03-30 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798132', 'tblTempUsageDetail_20' ) start [2025-03-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798132', 'tblTempUsageDetail_20' ) end [2025-03-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798132', 'tblTempVendorCDR_20' ) start [2025-03-30 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798132', 'tblTempVendorCDR_20' ) end [2025-03-30 18:54:20] Production.INFO: ProcessCDR(1,14798132,1,1,2) [2025-03-30 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798132', 'tblTempUsageDetail_20' ) start [2025-03-30 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798132', 'tblTempUsageDetail_20' ) end [2025-03-30 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:54:24] Production.INFO: ==28739== Releasing lock... [2025-03-30 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:54:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:55:06 [end_date_ymd] => 2025-03-30 18:55:06 [RateCDR] => 1 ) [2025-03-30 18: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-03-30 15:55:06' and `end` < '2025-03-30 18: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-03-30 18:55:19] Production.INFO: count ==4497 [2025-03-30 18:55:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:55:06 - End Time 2025-03-30 18:55:06 [2025-03-30 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798137', 'tblTempUsageDetail_20' ) start [2025-03-30 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798137', 'tblTempUsageDetail_20' ) end [2025-03-30 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798137', 'tblTempVendorCDR_20' ) start [2025-03-30 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798137', 'tblTempVendorCDR_20' ) end [2025-03-30 18:55:21] Production.INFO: ProcessCDR(1,14798137,1,1,2) [2025-03-30 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798137', 'tblTempUsageDetail_20' ) start [2025-03-30 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798137', 'tblTempUsageDetail_20' ) end [2025-03-30 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:55:25] Production.INFO: ==28814== Releasing lock... [2025-03-30 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:55:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:56:05 [end_date_ymd] => 2025-03-30 18:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:56:05' and `end` < '2025-03-30 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-03-30 18:56:18] Production.INFO: count ==4534 [2025-03-30 18:56:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:56:05 - End Time 2025-03-30 18:56:05 [2025-03-30 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798142', 'tblTempUsageDetail_20' ) start [2025-03-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798142', 'tblTempUsageDetail_20' ) end [2025-03-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798142', 'tblTempVendorCDR_20' ) start [2025-03-30 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798142', 'tblTempVendorCDR_20' ) end [2025-03-30 18:56:21] Production.INFO: ProcessCDR(1,14798142,1,1,2) [2025-03-30 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798142', 'tblTempUsageDetail_20' ) start [2025-03-30 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798142', 'tblTempUsageDetail_20' ) end [2025-03-30 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:56:24] Production.INFO: ==28889== Releasing lock... [2025-03-30 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:56:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-30 18:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:57:06 [end_date_ymd] => 2025-03-30 18:57:06 [RateCDR] => 1 ) [2025-03-30 18:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:57:06' and `end` < '2025-03-30 18: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-03-30 18:57:19] Production.INFO: count ==4615 [2025-03-30 18:57:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:57:06 - End Time 2025-03-30 18:57:06 [2025-03-30 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798147', 'tblTempUsageDetail_20' ) start [2025-03-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798147', 'tblTempUsageDetail_20' ) end [2025-03-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798147', 'tblTempVendorCDR_20' ) start [2025-03-30 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798147', 'tblTempVendorCDR_20' ) end [2025-03-30 18:57:21] Production.INFO: ProcessCDR(1,14798147,1,1,2) [2025-03-30 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798147', 'tblTempUsageDetail_20' ) start [2025-03-30 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798147', 'tblTempUsageDetail_20' ) end [2025-03-30 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:57:25] Production.INFO: ==29000== Releasing lock... [2025-03-30 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:57:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:58:05 [end_date_ymd] => 2025-03-30 18:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 15:58:05' and `end` < '2025-03-30 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-03-30 18:58:18] Production.INFO: count ==4621 [2025-03-30 18:58:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:58:05 - End Time 2025-03-30 18:58:05 [2025-03-30 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798152', 'tblTempUsageDetail_20' ) start [2025-03-30 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798152', 'tblTempUsageDetail_20' ) end [2025-03-30 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798152', 'tblTempVendorCDR_20' ) start [2025-03-30 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798152', 'tblTempVendorCDR_20' ) end [2025-03-30 18:58:21] Production.INFO: ProcessCDR(1,14798152,1,1,2) [2025-03-30 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798152', 'tblTempUsageDetail_20' ) start [2025-03-30 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798152', 'tblTempUsageDetail_20' ) end [2025-03-30 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:58:25] Production.INFO: ==29076== Releasing lock... [2025-03-30 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:58:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 15:59:05 [end_date_ymd] => 2025-03-30 18:59:05 [RateCDR] => 1 ) [2025-03-30 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 15:59:05' and `end` < '2025-03-30 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 18:59:18] Production.INFO: count ==4620 [2025-03-30 18:59:21] Production.ERROR: pbx CDR StartTime 2025-03-30 15:59:05 - End Time 2025-03-30 18:59:05 [2025-03-30 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798157', 'tblTempUsageDetail_20' ) start [2025-03-30 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798157', 'tblTempUsageDetail_20' ) end [2025-03-30 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798157', 'tblTempVendorCDR_20' ) start [2025-03-30 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798157', 'tblTempVendorCDR_20' ) end [2025-03-30 18:59:21] Production.INFO: ProcessCDR(1,14798157,1,1,2) [2025-03-30 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798157', 'tblTempUsageDetail_20' ) start [2025-03-30 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798157', 'tblTempUsageDetail_20' ) end [2025-03-30 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 18:59:24] Production.INFO: ==29149== Releasing lock... [2025-03-30 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 18:59:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:00:06 [end_date_ymd] => 2025-03-30 19:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:00:06' and `end` < '2025-03-30 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-03-30 19:00:19] Production.INFO: count ==4584 [2025-03-30 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:00:06 - End Time 2025-03-30 19:00:06 [2025-03-30 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798163', 'tblTempUsageDetail_20' ) start [2025-03-30 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798163', 'tblTempUsageDetail_20' ) end [2025-03-30 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798163', 'tblTempVendorCDR_20' ) start [2025-03-30 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798163', 'tblTempVendorCDR_20' ) end [2025-03-30 19:00:22] Production.INFO: ProcessCDR(1,14798163,1,1,2) [2025-03-30 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798163', 'tblTempUsageDetail_20' ) start [2025-03-30 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798163', 'tblTempUsageDetail_20' ) end [2025-03-30 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:00:25] Production.INFO: ==29223== Releasing lock... [2025-03-30 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:00:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:01:06 [end_date_ymd] => 2025-03-30 19:01:06 [RateCDR] => 1 ) [2025-03-30 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:01:06' and `end` < '2025-03-30 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:01:19] Production.INFO: count ==4642 [2025-03-30 19:01:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:01:06 - End Time 2025-03-30 19:01:06 [2025-03-30 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798168', 'tblTempUsageDetail_20' ) start [2025-03-30 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798168', 'tblTempUsageDetail_20' ) end [2025-03-30 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798168', 'tblTempVendorCDR_20' ) start [2025-03-30 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798168', 'tblTempVendorCDR_20' ) end [2025-03-30 19:01:21] Production.INFO: ProcessCDR(1,14798168,1,1,2) [2025-03-30 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798168', 'tblTempUsageDetail_20' ) start [2025-03-30 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798168', 'tblTempUsageDetail_20' ) end [2025-03-30 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:01:25] Production.INFO: ==29331== Releasing lock... [2025-03-30 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:01:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:02:05 [end_date_ymd] => 2025-03-30 19:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:02:05' and `end` < '2025-03-30 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-03-30 19:02:18] Production.INFO: count ==4646 [2025-03-30 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:02:05 - End Time 2025-03-30 19:02:05 [2025-03-30 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798173', 'tblTempUsageDetail_20' ) start [2025-03-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798173', 'tblTempUsageDetail_20' ) end [2025-03-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798173', 'tblTempVendorCDR_20' ) start [2025-03-30 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798173', 'tblTempVendorCDR_20' ) end [2025-03-30 19:02:20] Production.INFO: ProcessCDR(1,14798173,1,1,2) [2025-03-30 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798173', 'tblTempUsageDetail_20' ) start [2025-03-30 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798173', 'tblTempUsageDetail_20' ) end [2025-03-30 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:02:24] Production.INFO: ==29459== Releasing lock... [2025-03-30 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:02:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-30 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:03:06 [end_date_ymd] => 2025-03-30 19:03:06 [RateCDR] => 1 ) [2025-03-30 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:03:06' and `end` < '2025-03-30 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:03:19] Production.INFO: count ==4580 [2025-03-30 19:03:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:03:06 - End Time 2025-03-30 19:03:06 [2025-03-30 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798178', 'tblTempUsageDetail_20' ) start [2025-03-30 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798178', 'tblTempUsageDetail_20' ) end [2025-03-30 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798178', 'tblTempVendorCDR_20' ) start [2025-03-30 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798178', 'tblTempVendorCDR_20' ) end [2025-03-30 19:03:21] Production.INFO: ProcessCDR(1,14798178,1,1,2) [2025-03-30 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798178', 'tblTempUsageDetail_20' ) start [2025-03-30 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798178', 'tblTempUsageDetail_20' ) end [2025-03-30 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:03:25] Production.INFO: ==29532== Releasing lock... [2025-03-30 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:03:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:04:05 [end_date_ymd] => 2025-03-30 19:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:04:05' and `end` < '2025-03-30 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-03-30 19:04:18] Production.INFO: count ==4742 [2025-03-30 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:04:05 - End Time 2025-03-30 19:04:05 [2025-03-30 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798183', 'tblTempUsageDetail_20' ) start [2025-03-30 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798183', 'tblTempUsageDetail_20' ) end [2025-03-30 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798183', 'tblTempVendorCDR_20' ) start [2025-03-30 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798183', 'tblTempVendorCDR_20' ) end [2025-03-30 19:04:21] Production.INFO: ProcessCDR(1,14798183,1,1,2) [2025-03-30 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798183', 'tblTempUsageDetail_20' ) start [2025-03-30 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798183', 'tblTempUsageDetail_20' ) end [2025-03-30 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:04:24] Production.INFO: ==29607== Releasing lock... [2025-03-30 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:04:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:05:05 [end_date_ymd] => 2025-03-30 19:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:05:05' and `end` < '2025-03-30 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-03-30 19:05:18] Production.INFO: count ==4702 [2025-03-30 19:05:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:05:05 - End Time 2025-03-30 19:05:05 [2025-03-30 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798188', 'tblTempUsageDetail_20' ) start [2025-03-30 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798188', 'tblTempUsageDetail_20' ) end [2025-03-30 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798188', 'tblTempVendorCDR_20' ) start [2025-03-30 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798188', 'tblTempVendorCDR_20' ) end [2025-03-30 19:05:21] Production.INFO: ProcessCDR(1,14798188,1,1,2) [2025-03-30 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798188', 'tblTempUsageDetail_20' ) start [2025-03-30 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798188', 'tblTempUsageDetail_20' ) end [2025-03-30 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:05:25] Production.INFO: ==29756== Releasing lock... [2025-03-30 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:05:25] Production.INFO: 63 MB #Memory Used# [2025-03-30 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:06:05 [end_date_ymd] => 2025-03-30 19:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:06:05' and `end` < '2025-03-30 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-03-30 19:06:18] Production.INFO: count ==4702 [2025-03-30 19:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:06:05 - End Time 2025-03-30 19:06:05 [2025-03-30 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798193', 'tblTempUsageDetail_20' ) start [2025-03-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798193', 'tblTempUsageDetail_20' ) end [2025-03-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798193', 'tblTempVendorCDR_20' ) start [2025-03-30 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798193', 'tblTempVendorCDR_20' ) end [2025-03-30 19:06:20] Production.INFO: ProcessCDR(1,14798193,1,1,2) [2025-03-30 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798193', 'tblTempUsageDetail_20' ) start [2025-03-30 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798193', 'tblTempUsageDetail_20' ) end [2025-03-30 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:06:24] Production.INFO: ==29833== Releasing lock... [2025-03-30 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:06:24] Production.INFO: 63 MB #Memory Used# [2025-03-30 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:07:05 [end_date_ymd] => 2025-03-30 19:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:07:05' and `end` < '2025-03-30 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-03-30 19:07:18] Production.INFO: count ==4717 [2025-03-30 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:07:05 - End Time 2025-03-30 19:07:05 [2025-03-30 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798198', 'tblTempUsageDetail_20' ) start [2025-03-30 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798198', 'tblTempUsageDetail_20' ) end [2025-03-30 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798198', 'tblTempVendorCDR_20' ) start [2025-03-30 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798198', 'tblTempVendorCDR_20' ) end [2025-03-30 19:07:21] Production.INFO: ProcessCDR(1,14798198,1,1,2) [2025-03-30 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798198', 'tblTempUsageDetail_20' ) start [2025-03-30 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798198', 'tblTempUsageDetail_20' ) end [2025-03-30 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:07:24] Production.INFO: ==29909== Releasing lock... [2025-03-30 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:07:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:08:06 [end_date_ymd] => 2025-03-30 19:08:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:08:06' and `end` < '2025-03-30 19: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-03-30 19:08:19] Production.INFO: count ==4741 [2025-03-30 19:08:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:08:06 - End Time 2025-03-30 19:08:06 [2025-03-30 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798203', 'tblTempUsageDetail_20' ) start [2025-03-30 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798203', 'tblTempUsageDetail_20' ) end [2025-03-30 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798203', 'tblTempVendorCDR_20' ) start [2025-03-30 19:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798203', 'tblTempVendorCDR_20' ) end [2025-03-30 19:08:22] Production.INFO: ProcessCDR(1,14798203,1,1,2) [2025-03-30 19:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798203', 'tblTempUsageDetail_20' ) start [2025-03-30 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798203', 'tblTempUsageDetail_20' ) end [2025-03-30 19:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:08:25] Production.INFO: ==30059== Releasing lock... [2025-03-30 19:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:08:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:09:05 [end_date_ymd] => 2025-03-30 19:09:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:09:05' and `end` < '2025-03-30 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-03-30 19:09:18] Production.INFO: count ==4739 [2025-03-30 19:09:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:09:05 - End Time 2025-03-30 19:09:05 [2025-03-30 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798208', 'tblTempUsageDetail_20' ) start [2025-03-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798208', 'tblTempUsageDetail_20' ) end [2025-03-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798208', 'tblTempVendorCDR_20' ) start [2025-03-30 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798208', 'tblTempVendorCDR_20' ) end [2025-03-30 19:09:21] Production.INFO: ProcessCDR(1,14798208,1,1,2) [2025-03-30 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798208', 'tblTempUsageDetail_20' ) start [2025-03-30 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798208', 'tblTempUsageDetail_20' ) end [2025-03-30 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:09:26] Production.INFO: ==30131== Releasing lock... [2025-03-30 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:09:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:10:06 [end_date_ymd] => 2025-03-30 19:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:10:06' and `end` < '2025-03-30 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-03-30 19:10:19] Production.INFO: count ==4742 [2025-03-30 19:10:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:10:06 - End Time 2025-03-30 19:10:06 [2025-03-30 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798213', 'tblTempUsageDetail_20' ) start [2025-03-30 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798213', 'tblTempUsageDetail_20' ) end [2025-03-30 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798213', 'tblTempVendorCDR_20' ) start [2025-03-30 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798213', 'tblTempVendorCDR_20' ) end [2025-03-30 19:10:21] Production.INFO: ProcessCDR(1,14798213,1,1,2) [2025-03-30 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798213', 'tblTempUsageDetail_20' ) start [2025-03-30 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798213', 'tblTempUsageDetail_20' ) end [2025-03-30 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:10:27] Production.INFO: ==30206== Releasing lock... [2025-03-30 19:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:10:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:11:05 [end_date_ymd] => 2025-03-30 19:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:11:05' and `end` < '2025-03-30 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-03-30 19:11:18] Production.INFO: count ==4753 [2025-03-30 19:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:11:05 - End Time 2025-03-30 19:11:05 [2025-03-30 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798219', 'tblTempUsageDetail_20' ) start [2025-03-30 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798219', 'tblTempUsageDetail_20' ) end [2025-03-30 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798219', 'tblTempVendorCDR_20' ) start [2025-03-30 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798219', 'tblTempVendorCDR_20' ) end [2025-03-30 19:11:20] Production.INFO: ProcessCDR(1,14798219,1,1,2) [2025-03-30 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798219', 'tblTempUsageDetail_20' ) start [2025-03-30 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798219', 'tblTempUsageDetail_20' ) end [2025-03-30 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:11:24] Production.INFO: ==30280== Releasing lock... [2025-03-30 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:11:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-30 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:12:05 [end_date_ymd] => 2025-03-30 19:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:12:05' and `end` < '2025-03-30 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-03-30 19:12:18] Production.INFO: count ==4742 [2025-03-30 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:12:05 - End Time 2025-03-30 19:12:05 [2025-03-30 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798224', 'tblTempUsageDetail_20' ) start [2025-03-30 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798224', 'tblTempUsageDetail_20' ) end [2025-03-30 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798224', 'tblTempVendorCDR_20' ) start [2025-03-30 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798224', 'tblTempVendorCDR_20' ) end [2025-03-30 19:12:21] Production.INFO: ProcessCDR(1,14798224,1,1,2) [2025-03-30 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798224', 'tblTempUsageDetail_20' ) start [2025-03-30 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798224', 'tblTempUsageDetail_20' ) end [2025-03-30 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:12:24] Production.INFO: ==30470== Releasing lock... [2025-03-30 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:12:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:13:05 [end_date_ymd] => 2025-03-30 19:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:13:05' and `end` < '2025-03-30 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-03-30 19:13:18] Production.INFO: count ==4732 [2025-03-30 19:13:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:13:05 - End Time 2025-03-30 19:13:05 [2025-03-30 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798229', 'tblTempUsageDetail_20' ) start [2025-03-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798229', 'tblTempUsageDetail_20' ) end [2025-03-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798229', 'tblTempVendorCDR_20' ) start [2025-03-30 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798229', 'tblTempVendorCDR_20' ) end [2025-03-30 19:13:20] Production.INFO: ProcessCDR(1,14798229,1,1,2) [2025-03-30 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798229', 'tblTempUsageDetail_20' ) start [2025-03-30 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798229', 'tblTempUsageDetail_20' ) end [2025-03-30 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:13:25] Production.INFO: ==30545== Releasing lock... [2025-03-30 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:13:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-30 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:14:05 [end_date_ymd] => 2025-03-30 19:14:05 [RateCDR] => 1 ) [2025-03-30 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:14:05' and `end` < '2025-03-30 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:14:18] Production.INFO: count ==4708 [2025-03-30 19:14:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:14:05 - End Time 2025-03-30 19:14:05 [2025-03-30 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798234', 'tblTempUsageDetail_20' ) start [2025-03-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798234', 'tblTempUsageDetail_20' ) end [2025-03-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798234', 'tblTempVendorCDR_20' ) start [2025-03-30 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798234', 'tblTempVendorCDR_20' ) end [2025-03-30 19:14:21] Production.INFO: ProcessCDR(1,14798234,1,1,2) [2025-03-30 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798234', 'tblTempUsageDetail_20' ) start [2025-03-30 19:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798234', 'tblTempUsageDetail_20' ) end [2025-03-30 19:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:14:26] Production.INFO: ==30617== Releasing lock... [2025-03-30 19:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:14:26] Production.INFO: 63 MB #Memory Used# [2025-03-30 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:15:06 [end_date_ymd] => 2025-03-30 19:15:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:15:06' and `end` < '2025-03-30 19: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-03-30 19:15:19] Production.INFO: count ==4667 [2025-03-30 19:15:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:15:06 - End Time 2025-03-30 19:15:06 [2025-03-30 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798239', 'tblTempUsageDetail_20' ) start [2025-03-30 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798239', 'tblTempUsageDetail_20' ) end [2025-03-30 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798239', 'tblTempVendorCDR_20' ) start [2025-03-30 19:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798239', 'tblTempVendorCDR_20' ) end [2025-03-30 19:15:22] Production.INFO: ProcessCDR(1,14798239,1,1,2) [2025-03-30 19:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798239', 'tblTempUsageDetail_20' ) start [2025-03-30 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798239', 'tblTempUsageDetail_20' ) end [2025-03-30 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:15:25] Production.INFO: ==30769== Releasing lock... [2025-03-30 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:15:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-30 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:16:05 [end_date_ymd] => 2025-03-30 19:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:16:05' and `end` < '2025-03-30 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-03-30 19:16:19] Production.INFO: count ==4655 [2025-03-30 19:16:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:16:05 - End Time 2025-03-30 19:16:05 [2025-03-30 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798244', 'tblTempUsageDetail_20' ) start [2025-03-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798244', 'tblTempUsageDetail_20' ) end [2025-03-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798244', 'tblTempVendorCDR_20' ) start [2025-03-30 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798244', 'tblTempVendorCDR_20' ) end [2025-03-30 19:16:21] Production.INFO: ProcessCDR(1,14798244,1,1,2) [2025-03-30 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798244', 'tblTempUsageDetail_20' ) start [2025-03-30 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798244', 'tblTempUsageDetail_20' ) end [2025-03-30 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:16:26] Production.INFO: ==30841== Releasing lock... [2025-03-30 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:16:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-30 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:17:05 [end_date_ymd] => 2025-03-30 19:17:05 [RateCDR] => 1 ) [2025-03-30 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:17:05' and `end` < '2025-03-30 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:17:18] Production.INFO: count ==4606 [2025-03-30 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:17:05 - End Time 2025-03-30 19:17:05 [2025-03-30 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798249', 'tblTempUsageDetail_20' ) start [2025-03-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798249', 'tblTempUsageDetail_20' ) end [2025-03-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798249', 'tblTempVendorCDR_20' ) start [2025-03-30 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798249', 'tblTempVendorCDR_20' ) end [2025-03-30 19:17:20] Production.INFO: ProcessCDR(1,14798249,1,1,2) [2025-03-30 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798249', 'tblTempUsageDetail_20' ) start [2025-03-30 19:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798249', 'tblTempUsageDetail_20' ) end [2025-03-30 19:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:17:25] Production.INFO: ==30915== Releasing lock... [2025-03-30 19:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:17:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:18:05 [end_date_ymd] => 2025-03-30 19:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:18:05' and `end` < '2025-03-30 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-03-30 19:18:18] Production.INFO: count ==4617 [2025-03-30 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:18:05 - End Time 2025-03-30 19:18:05 [2025-03-30 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798254', 'tblTempUsageDetail_20' ) start [2025-03-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798254', 'tblTempUsageDetail_20' ) end [2025-03-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798254', 'tblTempVendorCDR_20' ) start [2025-03-30 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798254', 'tblTempVendorCDR_20' ) end [2025-03-30 19:18:20] Production.INFO: ProcessCDR(1,14798254,1,1,2) [2025-03-30 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798254', 'tblTempUsageDetail_20' ) start [2025-03-30 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798254', 'tblTempUsageDetail_20' ) end [2025-03-30 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:18:24] Production.INFO: ==30989== Releasing lock... [2025-03-30 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:18:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:19:06 [end_date_ymd] => 2025-03-30 19:19:06 [RateCDR] => 1 ) [2025-03-30 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:19:06' and `end` < '2025-03-30 19:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:19:19] Production.INFO: count ==4627 [2025-03-30 19:19:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:19:06 - End Time 2025-03-30 19:19:06 [2025-03-30 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798259', 'tblTempUsageDetail_20' ) start [2025-03-30 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798259', 'tblTempUsageDetail_20' ) end [2025-03-30 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798259', 'tblTempVendorCDR_20' ) start [2025-03-30 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798259', 'tblTempVendorCDR_20' ) end [2025-03-30 19:19:21] Production.INFO: ProcessCDR(1,14798259,1,1,2) [2025-03-30 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798259', 'tblTempUsageDetail_20' ) start [2025-03-30 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798259', 'tblTempUsageDetail_20' ) end [2025-03-30 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:19:24] Production.INFO: ==31062== Releasing lock... [2025-03-30 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:19:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:20:06 [end_date_ymd] => 2025-03-30 19:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:20:06' and `end` < '2025-03-30 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-03-30 19:20:19] Production.INFO: count ==4602 [2025-03-30 19:20:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:20:06 - End Time 2025-03-30 19:20:06 [2025-03-30 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798264', 'tblTempUsageDetail_20' ) start [2025-03-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798264', 'tblTempUsageDetail_20' ) end [2025-03-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798264', 'tblTempVendorCDR_20' ) start [2025-03-30 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798264', 'tblTempVendorCDR_20' ) end [2025-03-30 19:20:21] Production.INFO: ProcessCDR(1,14798264,1,1,2) [2025-03-30 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798264', 'tblTempUsageDetail_20' ) start [2025-03-30 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798264', 'tblTempUsageDetail_20' ) end [2025-03-30 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:20:25] Production.INFO: ==31135== Releasing lock... [2025-03-30 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:20:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:21:06 [end_date_ymd] => 2025-03-30 19:21:06 [RateCDR] => 1 ) [2025-03-30 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:21:06' and `end` < '2025-03-30 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:21:19] Production.INFO: count ==4615 [2025-03-30 19:21:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:21:06 - End Time 2025-03-30 19:21:06 [2025-03-30 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798270', 'tblTempUsageDetail_20' ) start [2025-03-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798270', 'tblTempUsageDetail_20' ) end [2025-03-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798270', 'tblTempVendorCDR_20' ) start [2025-03-30 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798270', 'tblTempVendorCDR_20' ) end [2025-03-30 19:21:21] Production.INFO: ProcessCDR(1,14798270,1,1,2) [2025-03-30 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798270', 'tblTempUsageDetail_20' ) start [2025-03-30 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798270', 'tblTempUsageDetail_20' ) end [2025-03-30 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:21:24] Production.INFO: ==31208== Releasing lock... [2025-03-30 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:21:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:22:06 [end_date_ymd] => 2025-03-30 19:22:06 [RateCDR] => 1 ) [2025-03-30 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:22:06' and `end` < '2025-03-30 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:22:19] Production.INFO: count ==4621 [2025-03-30 19:22:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:22:06 - End Time 2025-03-30 19:22:06 [2025-03-30 19:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798275', 'tblTempUsageDetail_20' ) start [2025-03-30 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798275', 'tblTempUsageDetail_20' ) end [2025-03-30 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798275', 'tblTempVendorCDR_20' ) start [2025-03-30 19:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798275', 'tblTempVendorCDR_20' ) end [2025-03-30 19:22:22] Production.INFO: ProcessCDR(1,14798275,1,1,2) [2025-03-30 19:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798275', 'tblTempUsageDetail_20' ) start [2025-03-30 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798275', 'tblTempUsageDetail_20' ) end [2025-03-30 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:22:25] Production.INFO: ==31280== Releasing lock... [2025-03-30 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:22:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:23:06 [end_date_ymd] => 2025-03-30 19:23:06 [RateCDR] => 1 ) [2025-03-30 19:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:23:06' and `end` < '2025-03-30 19:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:23:19] Production.INFO: count ==4623 [2025-03-30 19:23:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:23:06 - End Time 2025-03-30 19:23:06 [2025-03-30 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798280', 'tblTempUsageDetail_20' ) start [2025-03-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798280', 'tblTempUsageDetail_20' ) end [2025-03-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798280', 'tblTempVendorCDR_20' ) start [2025-03-30 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798280', 'tblTempVendorCDR_20' ) end [2025-03-30 19:23:21] Production.INFO: ProcessCDR(1,14798280,1,1,2) [2025-03-30 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798280', 'tblTempUsageDetail_20' ) start [2025-03-30 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798280', 'tblTempUsageDetail_20' ) end [2025-03-30 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:23:25] Production.INFO: ==31355== Releasing lock... [2025-03-30 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:23:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:24:06 [end_date_ymd] => 2025-03-30 19:24:06 [RateCDR] => 1 ) [2025-03-30 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:24:06' and `end` < '2025-03-30 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:24:19] Production.INFO: count ==4593 [2025-03-30 19:24:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:24:06 - End Time 2025-03-30 19:24:06 [2025-03-30 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798285', 'tblTempUsageDetail_20' ) start [2025-03-30 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798285', 'tblTempUsageDetail_20' ) end [2025-03-30 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798285', 'tblTempVendorCDR_20' ) start [2025-03-30 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798285', 'tblTempVendorCDR_20' ) end [2025-03-30 19:24:21] Production.INFO: ProcessCDR(1,14798285,1,1,2) [2025-03-30 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798285', 'tblTempUsageDetail_20' ) start [2025-03-30 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798285', 'tblTempUsageDetail_20' ) end [2025-03-30 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:24:24] Production.INFO: ==31428== Releasing lock... [2025-03-30 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:24:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:25:06 [end_date_ymd] => 2025-03-30 19:25:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:25:06' and `end` < '2025-03-30 19: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-03-30 19:25:19] Production.INFO: count ==4592 [2025-03-30 19:25:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:25:06 - End Time 2025-03-30 19:25:06 [2025-03-30 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798290', 'tblTempUsageDetail_20' ) start [2025-03-30 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798290', 'tblTempUsageDetail_20' ) end [2025-03-30 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798290', 'tblTempVendorCDR_20' ) start [2025-03-30 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798290', 'tblTempVendorCDR_20' ) end [2025-03-30 19:25:21] Production.INFO: ProcessCDR(1,14798290,1,1,2) [2025-03-30 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798290', 'tblTempUsageDetail_20' ) start [2025-03-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798290', 'tblTempUsageDetail_20' ) end [2025-03-30 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:25:26] Production.INFO: ==31501== Releasing lock... [2025-03-30 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:25:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-30 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:26:05 [end_date_ymd] => 2025-03-30 19:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:26:05' and `end` < '2025-03-30 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-03-30 19:26:18] Production.INFO: count ==4612 [2025-03-30 19:26:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:26:05 - End Time 2025-03-30 19:26:05 [2025-03-30 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798295', 'tblTempUsageDetail_20' ) start [2025-03-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798295', 'tblTempUsageDetail_20' ) end [2025-03-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798295', 'tblTempVendorCDR_20' ) start [2025-03-30 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798295', 'tblTempVendorCDR_20' ) end [2025-03-30 19:26:20] Production.INFO: ProcessCDR(1,14798295,1,1,2) [2025-03-30 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798295', 'tblTempUsageDetail_20' ) start [2025-03-30 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798295', 'tblTempUsageDetail_20' ) end [2025-03-30 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:26:24] Production.INFO: ==31572== Releasing lock... [2025-03-30 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:26:24] Production.INFO: 62.5 MB #Memory Used# [2025-03-30 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:27:06 [end_date_ymd] => 2025-03-30 19:27:06 [RateCDR] => 1 ) [2025-03-30 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:27:06' and `end` < '2025-03-30 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:27:19] Production.INFO: count ==4571 [2025-03-30 19:27:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:27:06 - End Time 2025-03-30 19:27:06 [2025-03-30 19:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798300', 'tblTempUsageDetail_20' ) start [2025-03-30 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798300', 'tblTempUsageDetail_20' ) end [2025-03-30 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798300', 'tblTempVendorCDR_20' ) start [2025-03-30 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798300', 'tblTempVendorCDR_20' ) end [2025-03-30 19:27:21] Production.INFO: ProcessCDR(1,14798300,1,1,2) [2025-03-30 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798300', 'tblTempUsageDetail_20' ) start [2025-03-30 19:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798300', 'tblTempUsageDetail_20' ) end [2025-03-30 19:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:27:26] Production.INFO: ==31683== Releasing lock... [2025-03-30 19:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:27:26] Production.INFO: 62 MB #Memory Used# [2025-03-30 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:28:05 [end_date_ymd] => 2025-03-30 19:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:28:05' and `end` < '2025-03-30 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-03-30 19:28:18] Production.INFO: count ==4506 [2025-03-30 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:28:05 - End Time 2025-03-30 19:28:05 [2025-03-30 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798305', 'tblTempUsageDetail_20' ) start [2025-03-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798305', 'tblTempUsageDetail_20' ) end [2025-03-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798305', 'tblTempVendorCDR_20' ) start [2025-03-30 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798305', 'tblTempVendorCDR_20' ) end [2025-03-30 19:28:20] Production.INFO: ProcessCDR(1,14798305,1,1,2) [2025-03-30 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798305', 'tblTempUsageDetail_20' ) start [2025-03-30 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798305', 'tblTempUsageDetail_20' ) end [2025-03-30 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:28:23] Production.INFO: ==31756== Releasing lock... [2025-03-30 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:28:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:29:05 [end_date_ymd] => 2025-03-30 19:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:29:05' and `end` < '2025-03-30 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-03-30 19:29:18] Production.INFO: count ==4458 [2025-03-30 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:29:05 - End Time 2025-03-30 19:29:05 [2025-03-30 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798310', 'tblTempUsageDetail_20' ) start [2025-03-30 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798310', 'tblTempUsageDetail_20' ) end [2025-03-30 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798310', 'tblTempVendorCDR_20' ) start [2025-03-30 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798310', 'tblTempVendorCDR_20' ) end [2025-03-30 19:29:21] Production.INFO: ProcessCDR(1,14798310,1,1,2) [2025-03-30 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798310', 'tblTempUsageDetail_20' ) start [2025-03-30 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798310', 'tblTempUsageDetail_20' ) end [2025-03-30 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:29:24] Production.INFO: ==31829== Releasing lock... [2025-03-30 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:29:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:30:06 [end_date_ymd] => 2025-03-30 19:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:30:06' and `end` < '2025-03-30 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-03-30 19:30:19] Production.INFO: count ==4457 [2025-03-30 19:30:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:30:06 - End Time 2025-03-30 19:30:06 [2025-03-30 19:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798316', 'tblTempUsageDetail_20' ) start [2025-03-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798316', 'tblTempUsageDetail_20' ) end [2025-03-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798316', 'tblTempVendorCDR_20' ) start [2025-03-30 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798316', 'tblTempVendorCDR_20' ) end [2025-03-30 19:30:21] Production.INFO: ProcessCDR(1,14798316,1,1,2) [2025-03-30 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798316', 'tblTempUsageDetail_20' ) start [2025-03-30 19:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798316', 'tblTempUsageDetail_20' ) end [2025-03-30 19:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:30:26] Production.INFO: ==31902== Releasing lock... [2025-03-30 19:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:30:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:31:06 [end_date_ymd] => 2025-03-30 19:31:06 [RateCDR] => 1 ) [2025-03-30 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:31:06' and `end` < '2025-03-30 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:31:19] Production.INFO: count ==4450 [2025-03-30 19:31:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:31:06 - End Time 2025-03-30 19:31:06 [2025-03-30 19:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798321', 'tblTempUsageDetail_20' ) start [2025-03-30 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798321', 'tblTempUsageDetail_20' ) end [2025-03-30 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798321', 'tblTempVendorCDR_20' ) start [2025-03-30 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798321', 'tblTempVendorCDR_20' ) end [2025-03-30 19:31:21] Production.INFO: ProcessCDR(1,14798321,1,1,2) [2025-03-30 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798321', 'tblTempUsageDetail_20' ) start [2025-03-30 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798321', 'tblTempUsageDetail_20' ) end [2025-03-30 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:31:24] Production.INFO: ==31978== Releasing lock... [2025-03-30 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:31:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:32:05 [end_date_ymd] => 2025-03-30 19:32:05 [RateCDR] => 1 ) [2025-03-30 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:32:05' and `end` < '2025-03-30 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:32:18] Production.INFO: count ==4459 [2025-03-30 19:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:32:05 - End Time 2025-03-30 19:32:05 [2025-03-30 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798326', 'tblTempUsageDetail_20' ) start [2025-03-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798326', 'tblTempUsageDetail_20' ) end [2025-03-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798326', 'tblTempVendorCDR_20' ) start [2025-03-30 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798326', 'tblTempVendorCDR_20' ) end [2025-03-30 19:32:20] Production.INFO: ProcessCDR(1,14798326,1,1,2) [2025-03-30 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798326', 'tblTempUsageDetail_20' ) start [2025-03-30 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798326', 'tblTempUsageDetail_20' ) end [2025-03-30 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:32:25] Production.INFO: ==32051== Releasing lock... [2025-03-30 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:32:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:33:06 [end_date_ymd] => 2025-03-30 19:33:06 [RateCDR] => 1 ) [2025-03-30 19:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:33:06' and `end` < '2025-03-30 19:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:33:19] Production.INFO: count ==4473 [2025-03-30 19:33:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:33:06 - End Time 2025-03-30 19:33:06 [2025-03-30 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798331', 'tblTempUsageDetail_20' ) start [2025-03-30 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798331', 'tblTempUsageDetail_20' ) end [2025-03-30 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798331', 'tblTempVendorCDR_20' ) start [2025-03-30 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798331', 'tblTempVendorCDR_20' ) end [2025-03-30 19:33:21] Production.INFO: ProcessCDR(1,14798331,1,1,2) [2025-03-30 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798331', 'tblTempUsageDetail_20' ) start [2025-03-30 19:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798331', 'tblTempUsageDetail_20' ) end [2025-03-30 19:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:33:26] Production.INFO: ==32125== Releasing lock... [2025-03-30 19:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:33:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:34:06 [end_date_ymd] => 2025-03-30 19:34:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:34:06' and `end` < '2025-03-30 19: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-03-30 19:34:19] Production.INFO: count ==4479 [2025-03-30 19:34:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:34:06 - End Time 2025-03-30 19:34:06 [2025-03-30 19:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798336', 'tblTempUsageDetail_20' ) start [2025-03-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798336', 'tblTempUsageDetail_20' ) end [2025-03-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798336', 'tblTempVendorCDR_20' ) start [2025-03-30 19:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798336', 'tblTempVendorCDR_20' ) end [2025-03-30 19:34:21] Production.INFO: ProcessCDR(1,14798336,1,1,2) [2025-03-30 19:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798336', 'tblTempUsageDetail_20' ) start [2025-03-30 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798336', 'tblTempUsageDetail_20' ) end [2025-03-30 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:34:24] Production.INFO: ==32205== Releasing lock... [2025-03-30 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:34:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:35:05 [end_date_ymd] => 2025-03-30 19:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:35:05' and `end` < '2025-03-30 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-03-30 19:35:18] Production.INFO: count ==4490 [2025-03-30 19:35:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:35:05 - End Time 2025-03-30 19:35:05 [2025-03-30 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798341', 'tblTempUsageDetail_20' ) start [2025-03-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798341', 'tblTempUsageDetail_20' ) end [2025-03-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798341', 'tblTempVendorCDR_20' ) start [2025-03-30 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798341', 'tblTempVendorCDR_20' ) end [2025-03-30 19:35:20] Production.INFO: ProcessCDR(1,14798341,1,1,2) [2025-03-30 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798341', 'tblTempUsageDetail_20' ) start [2025-03-30 19:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798341', 'tblTempUsageDetail_20' ) end [2025-03-30 19:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:35:25] Production.INFO: ==32279== Releasing lock... [2025-03-30 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:35:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:36:06 [end_date_ymd] => 2025-03-30 19:36:06 [RateCDR] => 1 ) [2025-03-30 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:36:06' and `end` < '2025-03-30 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:36:19] Production.INFO: count ==4503 [2025-03-30 19:36:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:36:06 - End Time 2025-03-30 19:36:06 [2025-03-30 19:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798346', 'tblTempUsageDetail_20' ) start [2025-03-30 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798346', 'tblTempUsageDetail_20' ) end [2025-03-30 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798346', 'tblTempVendorCDR_20' ) start [2025-03-30 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798346', 'tblTempVendorCDR_20' ) end [2025-03-30 19:36:21] Production.INFO: ProcessCDR(1,14798346,1,1,2) [2025-03-30 19:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798346', 'tblTempUsageDetail_20' ) start [2025-03-30 19:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798346', 'tblTempUsageDetail_20' ) end [2025-03-30 19:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:36:26] Production.INFO: ==32351== Releasing lock... [2025-03-30 19:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:36:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-30 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:37:05 [end_date_ymd] => 2025-03-30 19:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:37:05' and `end` < '2025-03-30 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-03-30 19:37:18] Production.INFO: count ==4467 [2025-03-30 19:37:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:37:05 - End Time 2025-03-30 19:37:05 [2025-03-30 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798351', 'tblTempUsageDetail_20' ) start [2025-03-30 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798351', 'tblTempUsageDetail_20' ) end [2025-03-30 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798351', 'tblTempVendorCDR_20' ) start [2025-03-30 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798351', 'tblTempVendorCDR_20' ) end [2025-03-30 19:37:20] Production.INFO: ProcessCDR(1,14798351,1,1,2) [2025-03-30 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798351', 'tblTempUsageDetail_20' ) start [2025-03-30 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798351', 'tblTempUsageDetail_20' ) end [2025-03-30 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:37:24] Production.INFO: ==32429== Releasing lock... [2025-03-30 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:37:24] Production.INFO: 61.25 MB #Memory Used# [2025-03-30 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:38:06 [end_date_ymd] => 2025-03-30 19:38:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:38:06' and `end` < '2025-03-30 19: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-03-30 19:38:19] Production.INFO: count ==4423 [2025-03-30 19:38:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:38:06 - End Time 2025-03-30 19:38:06 [2025-03-30 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798356', 'tblTempUsageDetail_20' ) start [2025-03-30 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798356', 'tblTempUsageDetail_20' ) end [2025-03-30 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798356', 'tblTempVendorCDR_20' ) start [2025-03-30 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798356', 'tblTempVendorCDR_20' ) end [2025-03-30 19:38:21] Production.INFO: ProcessCDR(1,14798356,1,1,2) [2025-03-30 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798356', 'tblTempUsageDetail_20' ) start [2025-03-30 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798356', 'tblTempUsageDetail_20' ) end [2025-03-30 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:38:24] Production.INFO: ==32503== Releasing lock... [2025-03-30 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:38:24] Production.INFO: 61 MB #Memory Used# [2025-03-30 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:39:05 [end_date_ymd] => 2025-03-30 19:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:39:05' and `end` < '2025-03-30 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-03-30 19:39:19] Production.INFO: count ==4354 [2025-03-30 19:39:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:39:05 - End Time 2025-03-30 19:39:05 [2025-03-30 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798361', 'tblTempUsageDetail_20' ) start [2025-03-30 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798361', 'tblTempUsageDetail_20' ) end [2025-03-30 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798361', 'tblTempVendorCDR_20' ) start [2025-03-30 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798361', 'tblTempVendorCDR_20' ) end [2025-03-30 19:39:21] Production.INFO: ProcessCDR(1,14798361,1,1,2) [2025-03-30 19:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798361', 'tblTempUsageDetail_20' ) start [2025-03-30 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798361', 'tblTempUsageDetail_20' ) end [2025-03-30 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:39:24] Production.INFO: ==32573== Releasing lock... [2025-03-30 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:39:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:40:06 [end_date_ymd] => 2025-03-30 19:40:06 [RateCDR] => 1 ) [2025-03-30 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:40:06' and `end` < '2025-03-30 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:40:20] Production.INFO: count ==4414 [2025-03-30 19:40:22] Production.ERROR: pbx CDR StartTime 2025-03-30 16:40:06 - End Time 2025-03-30 19:40:06 [2025-03-30 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798366', 'tblTempUsageDetail_20' ) start [2025-03-30 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798366', 'tblTempUsageDetail_20' ) end [2025-03-30 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798366', 'tblTempVendorCDR_20' ) start [2025-03-30 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798366', 'tblTempVendorCDR_20' ) end [2025-03-30 19:40:22] Production.INFO: ProcessCDR(1,14798366,1,1,2) [2025-03-30 19:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798366', 'tblTempUsageDetail_20' ) start [2025-03-30 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798366', 'tblTempUsageDetail_20' ) end [2025-03-30 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:40:25] Production.INFO: ==32647== Releasing lock... [2025-03-30 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:40:25] Production.INFO: 61 MB #Memory Used# [2025-03-30 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:41:05 [end_date_ymd] => 2025-03-30 19:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:41:05' and `end` < '2025-03-30 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-03-30 19:41:18] Production.INFO: count ==4355 [2025-03-30 19:41:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:41:05 - End Time 2025-03-30 19:41:05 [2025-03-30 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798372', 'tblTempUsageDetail_20' ) start [2025-03-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798372', 'tblTempUsageDetail_20' ) end [2025-03-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798372', 'tblTempVendorCDR_20' ) start [2025-03-30 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798372', 'tblTempVendorCDR_20' ) end [2025-03-30 19:41:20] Production.INFO: ProcessCDR(1,14798372,1,1,2) [2025-03-30 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798372', 'tblTempUsageDetail_20' ) start [2025-03-30 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798372', 'tblTempUsageDetail_20' ) end [2025-03-30 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:41:24] Production.INFO: ==32722== Releasing lock... [2025-03-30 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:41:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-30 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:42:06 [end_date_ymd] => 2025-03-30 19:42:06 [RateCDR] => 1 ) [2025-03-30 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:42:06' and `end` < '2025-03-30 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:42:19] Production.INFO: count ==4308 [2025-03-30 19:42:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:42:06 - End Time 2025-03-30 19:42:06 [2025-03-30 19:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798377', 'tblTempUsageDetail_20' ) start [2025-03-30 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798377', 'tblTempUsageDetail_20' ) end [2025-03-30 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798377', 'tblTempVendorCDR_20' ) start [2025-03-30 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798377', 'tblTempVendorCDR_20' ) end [2025-03-30 19:42:21] Production.INFO: ProcessCDR(1,14798377,1,1,2) [2025-03-30 19:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798377', 'tblTempUsageDetail_20' ) start [2025-03-30 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798377', 'tblTempUsageDetail_20' ) end [2025-03-30 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:42:24] Production.INFO: ==335== Releasing lock... [2025-03-30 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:42:24] Production.INFO: 60 MB #Memory Used# [2025-03-30 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:43:05 [end_date_ymd] => 2025-03-30 19:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:43:05' and `end` < '2025-03-30 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-03-30 19:43:18] Production.INFO: count ==4281 [2025-03-30 19:43:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:43:05 - End Time 2025-03-30 19:43:05 [2025-03-30 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798382', 'tblTempUsageDetail_20' ) start [2025-03-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798382', 'tblTempUsageDetail_20' ) end [2025-03-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798382', 'tblTempVendorCDR_20' ) start [2025-03-30 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798382', 'tblTempVendorCDR_20' ) end [2025-03-30 19:43:20] Production.INFO: ProcessCDR(1,14798382,1,1,2) [2025-03-30 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798382', 'tblTempUsageDetail_20' ) start [2025-03-30 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798382', 'tblTempUsageDetail_20' ) end [2025-03-30 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:43:23] Production.INFO: ==457== Releasing lock... [2025-03-30 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:43:23] Production.INFO: 60 MB #Memory Used# [2025-03-30 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:44:06 [end_date_ymd] => 2025-03-30 19:44:06 [RateCDR] => 1 ) [2025-03-30 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:44:06' and `end` < '2025-03-30 19:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:44:19] Production.INFO: count ==4272 [2025-03-30 19:44:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:44:06 - End Time 2025-03-30 19:44:06 [2025-03-30 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798387', 'tblTempUsageDetail_20' ) start [2025-03-30 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798387', 'tblTempUsageDetail_20' ) end [2025-03-30 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798387', 'tblTempVendorCDR_20' ) start [2025-03-30 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798387', 'tblTempVendorCDR_20' ) end [2025-03-30 19:44:21] Production.INFO: ProcessCDR(1,14798387,1,1,2) [2025-03-30 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798387', 'tblTempUsageDetail_20' ) start [2025-03-30 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798387', 'tblTempUsageDetail_20' ) end [2025-03-30 19:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:44:26] Production.INFO: ==534== Releasing lock... [2025-03-30 19:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:44:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-30 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:45:05 [end_date_ymd] => 2025-03-30 19:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:45:05' and `end` < '2025-03-30 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-03-30 19:45:17] Production.INFO: count ==4265 [2025-03-30 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-30 16:45:05 - End Time 2025-03-30 19:45:05 [2025-03-30 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798392', 'tblTempUsageDetail_20' ) start [2025-03-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798392', 'tblTempUsageDetail_20' ) end [2025-03-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798392', 'tblTempVendorCDR_20' ) start [2025-03-30 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798392', 'tblTempVendorCDR_20' ) end [2025-03-30 19:45:19] Production.INFO: ProcessCDR(1,14798392,1,1,2) [2025-03-30 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798392', 'tblTempUsageDetail_20' ) start [2025-03-30 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798392', 'tblTempUsageDetail_20' ) end [2025-03-30 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:45:23] Production.INFO: ==612== Releasing lock... [2025-03-30 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:45:23] Production.INFO: 59.75 MB #Memory Used# [2025-03-30 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:46:06 [end_date_ymd] => 2025-03-30 19:46:06 [RateCDR] => 1 ) [2025-03-30 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:46:06' and `end` < '2025-03-30 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:46:19] Production.INFO: count ==4260 [2025-03-30 19:46:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:46:06 - End Time 2025-03-30 19:46:06 [2025-03-30 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798397', 'tblTempUsageDetail_20' ) start [2025-03-30 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798397', 'tblTempUsageDetail_20' ) end [2025-03-30 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798397', 'tblTempVendorCDR_20' ) start [2025-03-30 19:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798397', 'tblTempVendorCDR_20' ) end [2025-03-30 19:46:21] Production.INFO: ProcessCDR(1,14798397,1,1,2) [2025-03-30 19:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798397', 'tblTempUsageDetail_20' ) start [2025-03-30 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798397', 'tblTempUsageDetail_20' ) end [2025-03-30 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:46:24] Production.INFO: ==713== Releasing lock... [2025-03-30 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:46:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-30 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:47:05 [end_date_ymd] => 2025-03-30 19:47:05 [RateCDR] => 1 ) [2025-03-30 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:47:05' and `end` < '2025-03-30 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:47:18] Production.INFO: count ==4221 [2025-03-30 19:47:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:47:05 - End Time 2025-03-30 19:47:05 [2025-03-30 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798402', 'tblTempUsageDetail_20' ) start [2025-03-30 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798402', 'tblTempUsageDetail_20' ) end [2025-03-30 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798402', 'tblTempVendorCDR_20' ) start [2025-03-30 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798402', 'tblTempVendorCDR_20' ) end [2025-03-30 19:47:20] Production.INFO: ProcessCDR(1,14798402,1,1,2) [2025-03-30 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798402', 'tblTempUsageDetail_20' ) start [2025-03-30 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798402', 'tblTempUsageDetail_20' ) end [2025-03-30 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:47:23] Production.INFO: ==791== Releasing lock... [2025-03-30 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:47:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-30 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:48:05 [end_date_ymd] => 2025-03-30 19:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:48:05' and `end` < '2025-03-30 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-03-30 19:48:18] Production.INFO: count ==4188 [2025-03-30 19:48:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:48:05 - End Time 2025-03-30 19:48:05 [2025-03-30 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798407', 'tblTempUsageDetail_20' ) start [2025-03-30 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798407', 'tblTempUsageDetail_20' ) end [2025-03-30 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798407', 'tblTempVendorCDR_20' ) start [2025-03-30 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798407', 'tblTempVendorCDR_20' ) end [2025-03-30 19:48:20] Production.INFO: ProcessCDR(1,14798407,1,1,2) [2025-03-30 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798407', 'tblTempUsageDetail_20' ) start [2025-03-30 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798407', 'tblTempUsageDetail_20' ) end [2025-03-30 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:48:24] Production.INFO: ==862== Releasing lock... [2025-03-30 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:48:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-30 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:49:05 [end_date_ymd] => 2025-03-30 19:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:49:05' and `end` < '2025-03-30 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-03-30 19:49:18] Production.INFO: count ==4143 [2025-03-30 19:49:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:49:05 - End Time 2025-03-30 19:49:05 [2025-03-30 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798412', 'tblTempUsageDetail_20' ) start [2025-03-30 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798412', 'tblTempUsageDetail_20' ) end [2025-03-30 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798412', 'tblTempVendorCDR_20' ) start [2025-03-30 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798412', 'tblTempVendorCDR_20' ) end [2025-03-30 19:49:20] Production.INFO: ProcessCDR(1,14798412,1,1,2) [2025-03-30 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798412', 'tblTempUsageDetail_20' ) start [2025-03-30 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798412', 'tblTempUsageDetail_20' ) end [2025-03-30 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:49:24] Production.INFO: ==935== Releasing lock... [2025-03-30 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:49:24] Production.INFO: 59 MB #Memory Used# [2025-03-30 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:50:06 [end_date_ymd] => 2025-03-30 19:50:06 [RateCDR] => 1 ) [2025-03-30 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:50:06' and `end` < '2025-03-30 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:50:19] Production.INFO: count ==4095 [2025-03-30 19:50:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:50:06 - End Time 2025-03-30 19:50:06 [2025-03-30 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798418', 'tblTempUsageDetail_20' ) start [2025-03-30 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798418', 'tblTempUsageDetail_20' ) end [2025-03-30 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798418', 'tblTempVendorCDR_20' ) start [2025-03-30 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798418', 'tblTempVendorCDR_20' ) end [2025-03-30 19:50:21] Production.INFO: ProcessCDR(1,14798418,1,1,2) [2025-03-30 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798418', 'tblTempUsageDetail_20' ) start [2025-03-30 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798418', 'tblTempUsageDetail_20' ) end [2025-03-30 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:50:25] Production.INFO: ==1010== Releasing lock... [2025-03-30 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:50:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-30 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:51:06 [end_date_ymd] => 2025-03-30 19:51:06 [RateCDR] => 1 ) [2025-03-30 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:51:06' and `end` < '2025-03-30 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:51:19] Production.INFO: count ==4107 [2025-03-30 19:51:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:51:06 - End Time 2025-03-30 19:51:06 [2025-03-30 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798423', 'tblTempUsageDetail_20' ) start [2025-03-30 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798423', 'tblTempUsageDetail_20' ) end [2025-03-30 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798423', 'tblTempVendorCDR_20' ) start [2025-03-30 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798423', 'tblTempVendorCDR_20' ) end [2025-03-30 19:51:21] Production.INFO: ProcessCDR(1,14798423,1,1,2) [2025-03-30 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798423', 'tblTempUsageDetail_20' ) start [2025-03-30 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798423', 'tblTempUsageDetail_20' ) end [2025-03-30 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:51:26] Production.INFO: ==1087== Releasing lock... [2025-03-30 19:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:51:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:52:05 [end_date_ymd] => 2025-03-30 19:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:52:05' and `end` < '2025-03-30 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-03-30 19:52:18] Production.INFO: count ==4069 [2025-03-30 19:52:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:52:05 - End Time 2025-03-30 19:52:05 [2025-03-30 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798428', 'tblTempUsageDetail_20' ) start [2025-03-30 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798428', 'tblTempUsageDetail_20' ) end [2025-03-30 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798428', 'tblTempVendorCDR_20' ) start [2025-03-30 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798428', 'tblTempVendorCDR_20' ) end [2025-03-30 19:52:20] Production.INFO: ProcessCDR(1,14798428,1,1,2) [2025-03-30 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798428', 'tblTempUsageDetail_20' ) start [2025-03-30 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798428', 'tblTempUsageDetail_20' ) end [2025-03-30 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:52:24] Production.INFO: ==1163== Releasing lock... [2025-03-30 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:52:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:53:06 [end_date_ymd] => 2025-03-30 19:53:06 [RateCDR] => 1 ) [2025-03-30 19: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-03-30 16:53:06' and `end` < '2025-03-30 19: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-03-30 19:53:18] Production.INFO: count ==4085 [2025-03-30 19:53:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:53:06 - End Time 2025-03-30 19:53:06 [2025-03-30 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798433', 'tblTempUsageDetail_20' ) start [2025-03-30 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798433', 'tblTempUsageDetail_20' ) end [2025-03-30 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798433', 'tblTempVendorCDR_20' ) start [2025-03-30 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798433', 'tblTempVendorCDR_20' ) end [2025-03-30 19:53:20] Production.INFO: ProcessCDR(1,14798433,1,1,2) [2025-03-30 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798433', 'tblTempUsageDetail_20' ) start [2025-03-30 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798433', 'tblTempUsageDetail_20' ) end [2025-03-30 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:53:25] Production.INFO: ==1246== Releasing lock... [2025-03-30 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:53:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:54:05 [end_date_ymd] => 2025-03-30 19:54:05 [RateCDR] => 1 ) [2025-03-30 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:54:05' and `end` < '2025-03-30 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:54:18] Production.INFO: count ==4062 [2025-03-30 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 16:54:05 - End Time 2025-03-30 19:54:05 [2025-03-30 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798438', 'tblTempUsageDetail_20' ) start [2025-03-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798438', 'tblTempUsageDetail_20' ) end [2025-03-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798438', 'tblTempVendorCDR_20' ) start [2025-03-30 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798438', 'tblTempVendorCDR_20' ) end [2025-03-30 19:54:19] Production.INFO: ProcessCDR(1,14798438,1,1,2) [2025-03-30 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798438', 'tblTempUsageDetail_20' ) start [2025-03-30 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798438', 'tblTempUsageDetail_20' ) end [2025-03-30 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:54:23] Production.INFO: ==1324== Releasing lock... [2025-03-30 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:54:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:55:06 [end_date_ymd] => 2025-03-30 19:55:06 [RateCDR] => 1 ) [2025-03-30 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:55:06' and `end` < '2025-03-30 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:55:19] Production.INFO: count ==4023 [2025-03-30 19:55:21] Production.ERROR: pbx CDR StartTime 2025-03-30 16:55:06 - End Time 2025-03-30 19:55:06 [2025-03-30 19:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798443', 'tblTempUsageDetail_20' ) start [2025-03-30 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798443', 'tblTempUsageDetail_20' ) end [2025-03-30 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798443', 'tblTempVendorCDR_20' ) start [2025-03-30 19:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798443', 'tblTempVendorCDR_20' ) end [2025-03-30 19:55:21] Production.INFO: ProcessCDR(1,14798443,1,1,2) [2025-03-30 19:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798443', 'tblTempUsageDetail_20' ) start [2025-03-30 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798443', 'tblTempUsageDetail_20' ) end [2025-03-30 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:55:24] Production.INFO: ==1394== Releasing lock... [2025-03-30 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:55:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:56:05 [end_date_ymd] => 2025-03-30 19:56:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:56:05' and `end` < '2025-03-30 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-03-30 19:56:18] Production.INFO: count ==3989 [2025-03-30 19:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:56:05 - End Time 2025-03-30 19:56:05 [2025-03-30 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798448', 'tblTempUsageDetail_20' ) start [2025-03-30 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798448', 'tblTempUsageDetail_20' ) end [2025-03-30 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798448', 'tblTempVendorCDR_20' ) start [2025-03-30 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798448', 'tblTempVendorCDR_20' ) end [2025-03-30 19:56:20] Production.INFO: ProcessCDR(1,14798448,1,1,2) [2025-03-30 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798448', 'tblTempUsageDetail_20' ) start [2025-03-30 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798448', 'tblTempUsageDetail_20' ) end [2025-03-30 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:56:24] Production.INFO: ==1473== Releasing lock... [2025-03-30 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:56:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:57:05 [end_date_ymd] => 2025-03-30 19:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:57:05' and `end` < '2025-03-30 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-03-30 19:57:18] Production.INFO: count ==3951 [2025-03-30 19:57:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:57:05 - End Time 2025-03-30 19:57:05 [2025-03-30 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798453', 'tblTempUsageDetail_20' ) start [2025-03-30 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798453', 'tblTempUsageDetail_20' ) end [2025-03-30 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798453', 'tblTempVendorCDR_20' ) start [2025-03-30 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798453', 'tblTempVendorCDR_20' ) end [2025-03-30 19:57:20] Production.INFO: ProcessCDR(1,14798453,1,1,2) [2025-03-30 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798453', 'tblTempUsageDetail_20' ) start [2025-03-30 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798453', 'tblTempUsageDetail_20' ) end [2025-03-30 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:57:24] Production.INFO: ==1583== Releasing lock... [2025-03-30 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:57:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-30 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:58:05 [end_date_ymd] => 2025-03-30 19:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 16:58:05' and `end` < '2025-03-30 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-03-30 19:58:18] Production.INFO: count ==3923 [2025-03-30 19:58:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:58:05 - End Time 2025-03-30 19:58:05 [2025-03-30 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798458', 'tblTempUsageDetail_20' ) start [2025-03-30 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798458', 'tblTempUsageDetail_20' ) end [2025-03-30 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798458', 'tblTempVendorCDR_20' ) start [2025-03-30 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798458', 'tblTempVendorCDR_20' ) end [2025-03-30 19:58:20] Production.INFO: ProcessCDR(1,14798458,1,1,2) [2025-03-30 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798458', 'tblTempUsageDetail_20' ) start [2025-03-30 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798458', 'tblTempUsageDetail_20' ) end [2025-03-30 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:58:23] Production.INFO: ==1693== Releasing lock... [2025-03-30 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:58:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-30 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 16:59:05 [end_date_ymd] => 2025-03-30 19:59:05 [RateCDR] => 1 ) [2025-03-30 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 16:59:05' and `end` < '2025-03-30 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 19:59:18] Production.INFO: count ==3903 [2025-03-30 19:59:20] Production.ERROR: pbx CDR StartTime 2025-03-30 16:59:05 - End Time 2025-03-30 19:59:05 [2025-03-30 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798463', 'tblTempUsageDetail_20' ) start [2025-03-30 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798463', 'tblTempUsageDetail_20' ) end [2025-03-30 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798463', 'tblTempVendorCDR_20' ) start [2025-03-30 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798463', 'tblTempVendorCDR_20' ) end [2025-03-30 19:59:20] Production.INFO: ProcessCDR(1,14798463,1,1,2) [2025-03-30 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798463', 'tblTempUsageDetail_20' ) start [2025-03-30 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798463', 'tblTempUsageDetail_20' ) end [2025-03-30 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 19:59:23] Production.INFO: ==1765== Releasing lock... [2025-03-30 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 19:59:23] Production.INFO: 57 MB #Memory Used# [2025-03-30 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:00:06 [end_date_ymd] => 2025-03-30 20:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:00:06' and `end` < '2025-03-30 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-03-30 20:00:19] Production.INFO: count ==3865 [2025-03-30 20:00:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:00:06 - End Time 2025-03-30 20:00:06 [2025-03-30 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798469', 'tblTempUsageDetail_20' ) start [2025-03-30 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798469', 'tblTempUsageDetail_20' ) end [2025-03-30 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798469', 'tblTempVendorCDR_20' ) start [2025-03-30 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798469', 'tblTempVendorCDR_20' ) end [2025-03-30 20:00:21] Production.INFO: ProcessCDR(1,14798469,1,1,2) [2025-03-30 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798469', 'tblTempUsageDetail_20' ) start [2025-03-30 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798469', 'tblTempUsageDetail_20' ) end [2025-03-30 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:00:26] Production.INFO: ==1885== Releasing lock... [2025-03-30 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:00:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:01:05 [end_date_ymd] => 2025-03-30 20:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:01:05' and `end` < '2025-03-30 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-03-30 20:01:18] Production.INFO: count ==3862 [2025-03-30 20:01:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:01:05 - End Time 2025-03-30 20:01:05 [2025-03-30 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798474', 'tblTempUsageDetail_20' ) start [2025-03-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798474', 'tblTempUsageDetail_20' ) end [2025-03-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798474', 'tblTempVendorCDR_20' ) start [2025-03-30 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798474', 'tblTempVendorCDR_20' ) end [2025-03-30 20:01:20] Production.INFO: ProcessCDR(1,14798474,1,1,2) [2025-03-30 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798474', 'tblTempUsageDetail_20' ) start [2025-03-30 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798474', 'tblTempUsageDetail_20' ) end [2025-03-30 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:01:25] Production.INFO: ==1976== Releasing lock... [2025-03-30 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:01:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:02:05 [end_date_ymd] => 2025-03-30 20:02:05 [RateCDR] => 1 ) [2025-03-30 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:02:05' and `end` < '2025-03-30 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:02:18] Production.INFO: count ==3862 [2025-03-30 20:02:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:02:05 - End Time 2025-03-30 20:02:05 [2025-03-30 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798479', 'tblTempUsageDetail_20' ) start [2025-03-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798479', 'tblTempUsageDetail_20' ) end [2025-03-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798479', 'tblTempVendorCDR_20' ) start [2025-03-30 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798479', 'tblTempVendorCDR_20' ) end [2025-03-30 20:02:20] Production.INFO: ProcessCDR(1,14798479,1,1,2) [2025-03-30 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798479', 'tblTempUsageDetail_20' ) start [2025-03-30 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798479', 'tblTempUsageDetail_20' ) end [2025-03-30 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:02:25] Production.INFO: ==2055== Releasing lock... [2025-03-30 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:02:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:03:05 [end_date_ymd] => 2025-03-30 20:03:05 [RateCDR] => 1 ) [2025-03-30 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:03:05' and `end` < '2025-03-30 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:03:18] Production.INFO: count ==3851 [2025-03-30 20:03:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:03:05 - End Time 2025-03-30 20:03:05 [2025-03-30 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798484', 'tblTempUsageDetail_20' ) start [2025-03-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798484', 'tblTempUsageDetail_20' ) end [2025-03-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798484', 'tblTempVendorCDR_20' ) start [2025-03-30 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798484', 'tblTempVendorCDR_20' ) end [2025-03-30 20:03:20] Production.INFO: ProcessCDR(1,14798484,1,1,2) [2025-03-30 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798484', 'tblTempUsageDetail_20' ) start [2025-03-30 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798484', 'tblTempUsageDetail_20' ) end [2025-03-30 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:03:23] Production.INFO: ==2128== Releasing lock... [2025-03-30 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:03:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:04:06 [end_date_ymd] => 2025-03-30 20:04:06 [RateCDR] => 1 ) [2025-03-30 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:04:06' and `end` < '2025-03-30 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:04:19] Production.INFO: count ==4085 [2025-03-30 20:04:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:04:06 - End Time 2025-03-30 20:04:06 [2025-03-30 20:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798489', 'tblTempUsageDetail_20' ) start [2025-03-30 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798489', 'tblTempUsageDetail_20' ) end [2025-03-30 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798489', 'tblTempVendorCDR_20' ) start [2025-03-30 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798489', 'tblTempVendorCDR_20' ) end [2025-03-30 20:04:21] Production.INFO: ProcessCDR(1,14798489,1,1,2) [2025-03-30 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798489', 'tblTempUsageDetail_20' ) start [2025-03-30 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798489', 'tblTempUsageDetail_20' ) end [2025-03-30 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:04:25] Production.INFO: ==2202== Releasing lock... [2025-03-30 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:04:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:05:05 [end_date_ymd] => 2025-03-30 20:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:05:05' and `end` < '2025-03-30 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-03-30 20:05:18] Production.INFO: count ==4075 [2025-03-30 20:05:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:05:05 - End Time 2025-03-30 20:05:05 [2025-03-30 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798494', 'tblTempUsageDetail_20' ) start [2025-03-30 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798494', 'tblTempUsageDetail_20' ) end [2025-03-30 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798494', 'tblTempVendorCDR_20' ) start [2025-03-30 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798494', 'tblTempVendorCDR_20' ) end [2025-03-30 20:05:20] Production.INFO: ProcessCDR(1,14798494,1,1,2) [2025-03-30 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798494', 'tblTempUsageDetail_20' ) start [2025-03-30 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798494', 'tblTempUsageDetail_20' ) end [2025-03-30 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:05:23] Production.INFO: ==2273== Releasing lock... [2025-03-30 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:05:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:06:05 [end_date_ymd] => 2025-03-30 20:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:06:05' and `end` < '2025-03-30 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-03-30 20:06:18] Production.INFO: count ==4068 [2025-03-30 20:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:06:05 - End Time 2025-03-30 20:06:05 [2025-03-30 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798499', 'tblTempUsageDetail_20' ) start [2025-03-30 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798499', 'tblTempUsageDetail_20' ) end [2025-03-30 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798499', 'tblTempVendorCDR_20' ) start [2025-03-30 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798499', 'tblTempVendorCDR_20' ) end [2025-03-30 20:06:20] Production.INFO: ProcessCDR(1,14798499,1,1,2) [2025-03-30 20:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798499', 'tblTempUsageDetail_20' ) start [2025-03-30 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798499', 'tblTempUsageDetail_20' ) end [2025-03-30 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:06:23] Production.INFO: ==2347== Releasing lock... [2025-03-30 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:06:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:07:05 [end_date_ymd] => 2025-03-30 20:07:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:07:05' and `end` < '2025-03-30 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-03-30 20:07:18] Production.INFO: count ==4057 [2025-03-30 20:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:07:05 - End Time 2025-03-30 20:07:05 [2025-03-30 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798504', 'tblTempUsageDetail_20' ) start [2025-03-30 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798504', 'tblTempUsageDetail_20' ) end [2025-03-30 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798504', 'tblTempVendorCDR_20' ) start [2025-03-30 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798504', 'tblTempVendorCDR_20' ) end [2025-03-30 20:07:20] Production.INFO: ProcessCDR(1,14798504,1,1,2) [2025-03-30 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798504', 'tblTempUsageDetail_20' ) start [2025-03-30 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798504', 'tblTempUsageDetail_20' ) end [2025-03-30 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:07:24] Production.INFO: ==2417== Releasing lock... [2025-03-30 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:07:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:08:06 [end_date_ymd] => 2025-03-30 20:08:06 [RateCDR] => 1 ) [2025-03-30 20: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-03-30 17:08:06' and `end` < '2025-03-30 20: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-03-30 20:08:19] Production.INFO: count ==4050 [2025-03-30 20:08:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:08:06 - End Time 2025-03-30 20:08:06 [2025-03-30 20:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798509', 'tblTempUsageDetail_20' ) start [2025-03-30 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798509', 'tblTempUsageDetail_20' ) end [2025-03-30 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798509', 'tblTempVendorCDR_20' ) start [2025-03-30 20:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798509', 'tblTempVendorCDR_20' ) end [2025-03-30 20:08:21] Production.INFO: ProcessCDR(1,14798509,1,1,2) [2025-03-30 20:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798509', 'tblTempUsageDetail_20' ) start [2025-03-30 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798509', 'tblTempUsageDetail_20' ) end [2025-03-30 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:08:24] Production.INFO: ==2493== Releasing lock... [2025-03-30 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:08:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:09:05 [end_date_ymd] => 2025-03-30 20:09:05 [RateCDR] => 1 ) [2025-03-30 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:09:05' and `end` < '2025-03-30 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:09:18] Production.INFO: count ==4019 [2025-03-30 20:09:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:09:05 - End Time 2025-03-30 20:09:05 [2025-03-30 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798514', 'tblTempUsageDetail_20' ) start [2025-03-30 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798514', 'tblTempUsageDetail_20' ) end [2025-03-30 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798514', 'tblTempVendorCDR_20' ) start [2025-03-30 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798514', 'tblTempVendorCDR_20' ) end [2025-03-30 20:09:20] Production.INFO: ProcessCDR(1,14798514,1,1,2) [2025-03-30 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798514', 'tblTempUsageDetail_20' ) start [2025-03-30 20:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798514', 'tblTempUsageDetail_20' ) end [2025-03-30 20:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:09:24] Production.INFO: ==2565== Releasing lock... [2025-03-30 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:09:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:10:06 [end_date_ymd] => 2025-03-30 20:10:06 [RateCDR] => 1 ) [2025-03-30 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:10:06' and `end` < '2025-03-30 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:10:19] Production.INFO: count ==3988 [2025-03-30 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:10:06 - End Time 2025-03-30 20:10:06 [2025-03-30 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798520', 'tblTempUsageDetail_20' ) start [2025-03-30 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798520', 'tblTempUsageDetail_20' ) end [2025-03-30 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798520', 'tblTempVendorCDR_20' ) start [2025-03-30 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798520', 'tblTempVendorCDR_20' ) end [2025-03-30 20:10:21] Production.INFO: ProcessCDR(1,14798520,1,1,2) [2025-03-30 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798520', 'tblTempUsageDetail_20' ) start [2025-03-30 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798520', 'tblTempUsageDetail_20' ) end [2025-03-30 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:10:24] Production.INFO: ==2636== Releasing lock... [2025-03-30 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:10:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:11:05 [end_date_ymd] => 2025-03-30 20:11:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:11:05' and `end` < '2025-03-30 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-03-30 20:11:18] Production.INFO: count ==3907 [2025-03-30 20:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:11:05 - End Time 2025-03-30 20:11:05 [2025-03-30 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798525', 'tblTempUsageDetail_20' ) start [2025-03-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798525', 'tblTempUsageDetail_20' ) end [2025-03-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798525', 'tblTempVendorCDR_20' ) start [2025-03-30 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798525', 'tblTempVendorCDR_20' ) end [2025-03-30 20:11:20] Production.INFO: ProcessCDR(1,14798525,1,1,2) [2025-03-30 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798525', 'tblTempUsageDetail_20' ) start [2025-03-30 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798525', 'tblTempUsageDetail_20' ) end [2025-03-30 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:11:23] Production.INFO: ==2711== Releasing lock... [2025-03-30 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:11:23] Production.INFO: 57 MB #Memory Used# [2025-03-30 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:12:05 [end_date_ymd] => 2025-03-30 20:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:12:05' and `end` < '2025-03-30 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-03-30 20:12:18] Production.INFO: count ==3914 [2025-03-30 20:12:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:12:05 - End Time 2025-03-30 20:12:05 [2025-03-30 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798530', 'tblTempUsageDetail_20' ) start [2025-03-30 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798530', 'tblTempUsageDetail_20' ) end [2025-03-30 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798530', 'tblTempVendorCDR_20' ) start [2025-03-30 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798530', 'tblTempVendorCDR_20' ) end [2025-03-30 20:12:20] Production.INFO: ProcessCDR(1,14798530,1,1,2) [2025-03-30 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798530', 'tblTempUsageDetail_20' ) start [2025-03-30 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798530', 'tblTempUsageDetail_20' ) end [2025-03-30 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:12:24] Production.INFO: ==2785== Releasing lock... [2025-03-30 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:12:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-30 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:13:05 [end_date_ymd] => 2025-03-30 20:13:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:13:05' and `end` < '2025-03-30 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-03-30 20:13:18] Production.INFO: count ==3918 [2025-03-30 20:13:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:13:05 - End Time 2025-03-30 20:13:05 [2025-03-30 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798535', 'tblTempUsageDetail_20' ) start [2025-03-30 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798535', 'tblTempUsageDetail_20' ) end [2025-03-30 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798535', 'tblTempVendorCDR_20' ) start [2025-03-30 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798535', 'tblTempVendorCDR_20' ) end [2025-03-30 20:13:20] Production.INFO: ProcessCDR(1,14798535,1,1,2) [2025-03-30 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798535', 'tblTempUsageDetail_20' ) start [2025-03-30 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798535', 'tblTempUsageDetail_20' ) end [2025-03-30 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:13:23] Production.INFO: ==2859== Releasing lock... [2025-03-30 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:13:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-30 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:14:05 [end_date_ymd] => 2025-03-30 20:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:14:05' and `end` < '2025-03-30 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-03-30 20:14:18] Production.INFO: count ==3920 [2025-03-30 20:14:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:14:05 - End Time 2025-03-30 20:14:05 [2025-03-30 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798540', 'tblTempUsageDetail_20' ) start [2025-03-30 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798540', 'tblTempUsageDetail_20' ) end [2025-03-30 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798540', 'tblTempVendorCDR_20' ) start [2025-03-30 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798540', 'tblTempVendorCDR_20' ) end [2025-03-30 20:14:20] Production.INFO: ProcessCDR(1,14798540,1,1,2) [2025-03-30 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798540', 'tblTempUsageDetail_20' ) start [2025-03-30 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798540', 'tblTempUsageDetail_20' ) end [2025-03-30 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:14:23] Production.INFO: ==2973== Releasing lock... [2025-03-30 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:14:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-30 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:15:05 [end_date_ymd] => 2025-03-30 20:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:15:05' and `end` < '2025-03-30 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-03-30 20:15:18] Production.INFO: count ==3902 [2025-03-30 20:15:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:15:05 - End Time 2025-03-30 20:15:05 [2025-03-30 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798545', 'tblTempUsageDetail_20' ) start [2025-03-30 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798545', 'tblTempUsageDetail_20' ) end [2025-03-30 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798545', 'tblTempVendorCDR_20' ) start [2025-03-30 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798545', 'tblTempVendorCDR_20' ) end [2025-03-30 20:15:20] Production.INFO: ProcessCDR(1,14798545,1,1,2) [2025-03-30 20:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798545', 'tblTempUsageDetail_20' ) start [2025-03-30 20:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798545', 'tblTempUsageDetail_20' ) end [2025-03-30 20:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:15:25] Production.INFO: ==3050== Releasing lock... [2025-03-30 20:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:15:25] Production.INFO: 57 MB #Memory Used# [2025-03-30 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:16:05 [end_date_ymd] => 2025-03-30 20:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:16:05' and `end` < '2025-03-30 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-03-30 20:16:18] Production.INFO: count ==3915 [2025-03-30 20:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:16:05 - End Time 2025-03-30 20:16:05 [2025-03-30 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798550', 'tblTempUsageDetail_20' ) start [2025-03-30 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798550', 'tblTempUsageDetail_20' ) end [2025-03-30 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798550', 'tblTempVendorCDR_20' ) start [2025-03-30 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798550', 'tblTempVendorCDR_20' ) end [2025-03-30 20:16:20] Production.INFO: ProcessCDR(1,14798550,1,1,2) [2025-03-30 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798550', 'tblTempUsageDetail_20' ) start [2025-03-30 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798550', 'tblTempUsageDetail_20' ) end [2025-03-30 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:16:23] Production.INFO: ==3134== Releasing lock... [2025-03-30 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:16:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-30 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:17:05 [end_date_ymd] => 2025-03-30 20:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:17:05' and `end` < '2025-03-30 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-03-30 20:17:18] Production.INFO: count ==3938 [2025-03-30 20:17:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:17:05 - End Time 2025-03-30 20:17:05 [2025-03-30 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798555', 'tblTempUsageDetail_20' ) start [2025-03-30 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798555', 'tblTempUsageDetail_20' ) end [2025-03-30 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798555', 'tblTempVendorCDR_20' ) start [2025-03-30 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798555', 'tblTempVendorCDR_20' ) end [2025-03-30 20:17:20] Production.INFO: ProcessCDR(1,14798555,1,1,2) [2025-03-30 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798555', 'tblTempUsageDetail_20' ) start [2025-03-30 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798555', 'tblTempUsageDetail_20' ) end [2025-03-30 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:17:24] Production.INFO: ==3231== Releasing lock... [2025-03-30 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:17:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-30 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:18:05 [end_date_ymd] => 2025-03-30 20:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:18:05' and `end` < '2025-03-30 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-03-30 20:18:18] Production.INFO: count ==3937 [2025-03-30 20:18:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:18:05 - End Time 2025-03-30 20:18:05 [2025-03-30 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798560', 'tblTempUsageDetail_20' ) start [2025-03-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798560', 'tblTempUsageDetail_20' ) end [2025-03-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798560', 'tblTempVendorCDR_20' ) start [2025-03-30 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798560', 'tblTempVendorCDR_20' ) end [2025-03-30 20:18:20] Production.INFO: ProcessCDR(1,14798560,1,1,2) [2025-03-30 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798560', 'tblTempUsageDetail_20' ) start [2025-03-30 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798560', 'tblTempUsageDetail_20' ) end [2025-03-30 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:18:23] Production.INFO: ==3335== Releasing lock... [2025-03-30 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:18:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-30 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:19:05 [end_date_ymd] => 2025-03-30 20:19:05 [RateCDR] => 1 ) [2025-03-30 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:19:05' and `end` < '2025-03-30 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:19:18] Production.INFO: count ==4004 [2025-03-30 20:19:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:19:05 - End Time 2025-03-30 20:19:05 [2025-03-30 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798565', 'tblTempUsageDetail_20' ) start [2025-03-30 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798565', 'tblTempUsageDetail_20' ) end [2025-03-30 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798565', 'tblTempVendorCDR_20' ) start [2025-03-30 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798565', 'tblTempVendorCDR_20' ) end [2025-03-30 20:19:20] Production.INFO: ProcessCDR(1,14798565,1,1,2) [2025-03-30 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798565', 'tblTempUsageDetail_20' ) start [2025-03-30 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798565', 'tblTempUsageDetail_20' ) end [2025-03-30 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:19:25] Production.INFO: ==3435== Releasing lock... [2025-03-30 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:19:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:20:06 [end_date_ymd] => 2025-03-30 20:20:06 [RateCDR] => 1 ) [2025-03-30 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:20:06' and `end` < '2025-03-30 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:20:19] Production.INFO: count ==4001 [2025-03-30 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:20:06 - End Time 2025-03-30 20:20:06 [2025-03-30 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798570', 'tblTempUsageDetail_20' ) start [2025-03-30 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798570', 'tblTempUsageDetail_20' ) end [2025-03-30 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798570', 'tblTempVendorCDR_20' ) start [2025-03-30 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798570', 'tblTempVendorCDR_20' ) end [2025-03-30 20:20:21] Production.INFO: ProcessCDR(1,14798570,1,1,2) [2025-03-30 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798570', 'tblTempUsageDetail_20' ) start [2025-03-30 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798570', 'tblTempUsageDetail_20' ) end [2025-03-30 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:20:24] Production.INFO: ==3534== Releasing lock... [2025-03-30 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:20:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:21:05 [end_date_ymd] => 2025-03-30 20:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:21:05' and `end` < '2025-03-30 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-03-30 20:21:18] Production.INFO: count ==4079 [2025-03-30 20:21:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:21:05 - End Time 2025-03-30 20:21:05 [2025-03-30 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798576', 'tblTempUsageDetail_20' ) start [2025-03-30 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798576', 'tblTempUsageDetail_20' ) end [2025-03-30 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798576', 'tblTempVendorCDR_20' ) start [2025-03-30 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798576', 'tblTempVendorCDR_20' ) end [2025-03-30 20:21:20] Production.INFO: ProcessCDR(1,14798576,1,1,2) [2025-03-30 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798576', 'tblTempUsageDetail_20' ) start [2025-03-30 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798576', 'tblTempUsageDetail_20' ) end [2025-03-30 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:21:25] Production.INFO: ==3639== Releasing lock... [2025-03-30 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:21:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:22:06 [end_date_ymd] => 2025-03-30 20:22:06 [RateCDR] => 1 ) [2025-03-30 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:22:06' and `end` < '2025-03-30 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:22:19] Production.INFO: count ==4074 [2025-03-30 20:22:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:22:06 - End Time 2025-03-30 20:22:06 [2025-03-30 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798581', 'tblTempUsageDetail_20' ) start [2025-03-30 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798581', 'tblTempUsageDetail_20' ) end [2025-03-30 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798581', 'tblTempVendorCDR_20' ) start [2025-03-30 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798581', 'tblTempVendorCDR_20' ) end [2025-03-30 20:22:21] Production.INFO: ProcessCDR(1,14798581,1,1,2) [2025-03-30 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798581', 'tblTempUsageDetail_20' ) start [2025-03-30 20:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798581', 'tblTempUsageDetail_20' ) end [2025-03-30 20:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:22:26] Production.INFO: ==3746== Releasing lock... [2025-03-30 20:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:22:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:23:05 [end_date_ymd] => 2025-03-30 20:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:23:05' and `end` < '2025-03-30 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-03-30 20:23:18] Production.INFO: count ==4087 [2025-03-30 20:23:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:23:05 - End Time 2025-03-30 20:23:05 [2025-03-30 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798586', 'tblTempUsageDetail_20' ) start [2025-03-30 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798586', 'tblTempUsageDetail_20' ) end [2025-03-30 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798586', 'tblTempVendorCDR_20' ) start [2025-03-30 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798586', 'tblTempVendorCDR_20' ) end [2025-03-30 20:23:20] Production.INFO: ProcessCDR(1,14798586,1,1,2) [2025-03-30 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798586', 'tblTempUsageDetail_20' ) start [2025-03-30 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798586', 'tblTempUsageDetail_20' ) end [2025-03-30 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:23:24] Production.INFO: ==3850== Releasing lock... [2025-03-30 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:23:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:24:06 [end_date_ymd] => 2025-03-30 20:24:06 [RateCDR] => 1 ) [2025-03-30 20: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-03-30 17:24:06' and `end` < '2025-03-30 20: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-03-30 20:24:19] Production.INFO: count ==4105 [2025-03-30 20:24:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:24:06 - End Time 2025-03-30 20:24:06 [2025-03-30 20:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798588', 'tblTempUsageDetail_20' ) start [2025-03-30 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798588', 'tblTempUsageDetail_20' ) end [2025-03-30 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798588', 'tblTempVendorCDR_20' ) start [2025-03-30 20:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798588', 'tblTempVendorCDR_20' ) end [2025-03-30 20:24:21] Production.INFO: ProcessCDR(1,14798588,1,1,2) [2025-03-30 20:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798588', 'tblTempUsageDetail_20' ) start [2025-03-30 20:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798588', 'tblTempUsageDetail_20' ) end [2025-03-30 20:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:24:26] Production.INFO: ==3952== Releasing lock... [2025-03-30 20:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:24:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:25:05 [end_date_ymd] => 2025-03-30 20:25:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:25:05' and `end` < '2025-03-30 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-03-30 20:25:18] Production.INFO: count ==4097 [2025-03-30 20:25:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:25:05 - End Time 2025-03-30 20:25:05 [2025-03-30 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798596', 'tblTempUsageDetail_20' ) start [2025-03-30 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798596', 'tblTempUsageDetail_20' ) end [2025-03-30 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798596', 'tblTempVendorCDR_20' ) start [2025-03-30 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798596', 'tblTempVendorCDR_20' ) end [2025-03-30 20:25:20] Production.INFO: ProcessCDR(1,14798596,1,1,2) [2025-03-30 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798596', 'tblTempUsageDetail_20' ) start [2025-03-30 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798596', 'tblTempUsageDetail_20' ) end [2025-03-30 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:25:24] Production.INFO: ==4059== Releasing lock... [2025-03-30 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:25:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:26:05 [end_date_ymd] => 2025-03-30 20:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:26:05' and `end` < '2025-03-30 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-03-30 20:26:18] Production.INFO: count ==4086 [2025-03-30 20:26:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:26:05 - End Time 2025-03-30 20:26:05 [2025-03-30 20:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798601', 'tblTempUsageDetail_20' ) start [2025-03-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798601', 'tblTempUsageDetail_20' ) end [2025-03-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798601', 'tblTempVendorCDR_20' ) start [2025-03-30 20:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798601', 'tblTempVendorCDR_20' ) end [2025-03-30 20:26:20] Production.INFO: ProcessCDR(1,14798601,1,1,2) [2025-03-30 20:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798601', 'tblTempUsageDetail_20' ) start [2025-03-30 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798601', 'tblTempUsageDetail_20' ) end [2025-03-30 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:26:24] Production.INFO: ==4163== Releasing lock... [2025-03-30 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:26:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:27:05 [end_date_ymd] => 2025-03-30 20:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:27:05' and `end` < '2025-03-30 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-03-30 20:27:18] Production.INFO: count ==4090 [2025-03-30 20:27:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:27:05 - End Time 2025-03-30 20:27:05 [2025-03-30 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798606', 'tblTempUsageDetail_20' ) start [2025-03-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798606', 'tblTempUsageDetail_20' ) end [2025-03-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798606', 'tblTempVendorCDR_20' ) start [2025-03-30 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798606', 'tblTempVendorCDR_20' ) end [2025-03-30 20:27:20] Production.INFO: ProcessCDR(1,14798606,1,1,2) [2025-03-30 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798606', 'tblTempUsageDetail_20' ) start [2025-03-30 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798606', 'tblTempUsageDetail_20' ) end [2025-03-30 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:27:23] Production.INFO: ==4266== Releasing lock... [2025-03-30 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:27:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:28:05 [end_date_ymd] => 2025-03-30 20:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:28:05' and `end` < '2025-03-30 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-03-30 20:28:18] Production.INFO: count ==4093 [2025-03-30 20:28:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:28:05 - End Time 2025-03-30 20:28:05 [2025-03-30 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798611', 'tblTempUsageDetail_20' ) start [2025-03-30 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798611', 'tblTempUsageDetail_20' ) end [2025-03-30 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798611', 'tblTempVendorCDR_20' ) start [2025-03-30 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798611', 'tblTempVendorCDR_20' ) end [2025-03-30 20:28:20] Production.INFO: ProcessCDR(1,14798611,1,1,2) [2025-03-30 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798611', 'tblTempUsageDetail_20' ) start [2025-03-30 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798611', 'tblTempUsageDetail_20' ) end [2025-03-30 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:28:25] Production.INFO: ==4375== Releasing lock... [2025-03-30 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:28:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:29:06 [end_date_ymd] => 2025-03-30 20:29:06 [RateCDR] => 1 ) [2025-03-30 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:29:06' and `end` < '2025-03-30 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:29:19] Production.INFO: count ==4090 [2025-03-30 20:29:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:29:06 - End Time 2025-03-30 20:29:06 [2025-03-30 20:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798616', 'tblTempUsageDetail_20' ) start [2025-03-30 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798616', 'tblTempUsageDetail_20' ) end [2025-03-30 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798616', 'tblTempVendorCDR_20' ) start [2025-03-30 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798616', 'tblTempVendorCDR_20' ) end [2025-03-30 20:29:21] Production.INFO: ProcessCDR(1,14798616,1,1,2) [2025-03-30 20:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798616', 'tblTempUsageDetail_20' ) start [2025-03-30 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798616', 'tblTempUsageDetail_20' ) end [2025-03-30 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:29:24] Production.INFO: ==4517== Releasing lock... [2025-03-30 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:29:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-30 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:30:06 [end_date_ymd] => 2025-03-30 20:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:30:06' and `end` < '2025-03-30 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-03-30 20:30:19] Production.INFO: count ==4074 [2025-03-30 20:30:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:30:06 - End Time 2025-03-30 20:30:06 [2025-03-30 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798622', 'tblTempUsageDetail_20' ) start [2025-03-30 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798622', 'tblTempUsageDetail_20' ) end [2025-03-30 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798622', 'tblTempVendorCDR_20' ) start [2025-03-30 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798622', 'tblTempVendorCDR_20' ) end [2025-03-30 20:30:21] Production.INFO: ProcessCDR(1,14798622,1,1,2) [2025-03-30 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798622', 'tblTempUsageDetail_20' ) start [2025-03-30 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798622', 'tblTempUsageDetail_20' ) end [2025-03-30 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:30:24] Production.INFO: ==4635== Releasing lock... [2025-03-30 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:30:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:31:05 [end_date_ymd] => 2025-03-30 20:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:31:05' and `end` < '2025-03-30 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-03-30 20:31:18] Production.INFO: count ==4009 [2025-03-30 20:31:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:31:05 - End Time 2025-03-30 20:31:05 [2025-03-30 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798627', 'tblTempUsageDetail_20' ) start [2025-03-30 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798627', 'tblTempUsageDetail_20' ) end [2025-03-30 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798627', 'tblTempVendorCDR_20' ) start [2025-03-30 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798627', 'tblTempVendorCDR_20' ) end [2025-03-30 20:31:20] Production.INFO: ProcessCDR(1,14798627,1,1,2) [2025-03-30 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798627', 'tblTempUsageDetail_20' ) start [2025-03-30 20:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798627', 'tblTempUsageDetail_20' ) end [2025-03-30 20:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:31:25] Production.INFO: ==4749== Releasing lock... [2025-03-30 20:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:31:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:32:06 [end_date_ymd] => 2025-03-30 20:32:06 [RateCDR] => 1 ) [2025-03-30 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:32:06' and `end` < '2025-03-30 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:32:19] Production.INFO: count ==4008 [2025-03-30 20:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:32:06 - End Time 2025-03-30 20:32:06 [2025-03-30 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798632', 'tblTempUsageDetail_20' ) start [2025-03-30 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798632', 'tblTempUsageDetail_20' ) end [2025-03-30 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798632', 'tblTempVendorCDR_20' ) start [2025-03-30 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798632', 'tblTempVendorCDR_20' ) end [2025-03-30 20:32:20] Production.INFO: ProcessCDR(1,14798632,1,1,2) [2025-03-30 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798632', 'tblTempUsageDetail_20' ) start [2025-03-30 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798632', 'tblTempUsageDetail_20' ) end [2025-03-30 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:32:25] Production.INFO: ==4849== Releasing lock... [2025-03-30 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:32:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:33:05 [end_date_ymd] => 2025-03-30 20:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:33:05' and `end` < '2025-03-30 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-03-30 20:33:18] Production.INFO: count ==4014 [2025-03-30 20:33:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:33:05 - End Time 2025-03-30 20:33:05 [2025-03-30 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798637', 'tblTempUsageDetail_20' ) start [2025-03-30 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798637', 'tblTempUsageDetail_20' ) end [2025-03-30 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798637', 'tblTempVendorCDR_20' ) start [2025-03-30 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798637', 'tblTempVendorCDR_20' ) end [2025-03-30 20:33:20] Production.INFO: ProcessCDR(1,14798637,1,1,2) [2025-03-30 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798637', 'tblTempUsageDetail_20' ) start [2025-03-30 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798637', 'tblTempUsageDetail_20' ) end [2025-03-30 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:33:24] Production.INFO: ==4956== Releasing lock... [2025-03-30 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:33:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:34:05 [end_date_ymd] => 2025-03-30 20:34:05 [RateCDR] => 1 ) [2025-03-30 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:34:05' and `end` < '2025-03-30 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:34:18] Production.INFO: count ==4014 [2025-03-30 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:34:05 - End Time 2025-03-30 20:34:05 [2025-03-30 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798642', 'tblTempUsageDetail_20' ) start [2025-03-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798642', 'tblTempUsageDetail_20' ) end [2025-03-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798642', 'tblTempVendorCDR_20' ) start [2025-03-30 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798642', 'tblTempVendorCDR_20' ) end [2025-03-30 20:34:19] Production.INFO: ProcessCDR(1,14798642,1,1,2) [2025-03-30 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798642', 'tblTempUsageDetail_20' ) start [2025-03-30 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798642', 'tblTempUsageDetail_20' ) end [2025-03-30 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:34:24] Production.INFO: ==5044== Releasing lock... [2025-03-30 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:34:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:35:05 [end_date_ymd] => 2025-03-30 20:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:35:05' and `end` < '2025-03-30 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-03-30 20:35:18] Production.INFO: count ==4006 [2025-03-30 20:35:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:35:05 - End Time 2025-03-30 20:35:05 [2025-03-30 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798647', 'tblTempUsageDetail_20' ) start [2025-03-30 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798647', 'tblTempUsageDetail_20' ) end [2025-03-30 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798647', 'tblTempVendorCDR_20' ) start [2025-03-30 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798647', 'tblTempVendorCDR_20' ) end [2025-03-30 20:35:20] Production.INFO: ProcessCDR(1,14798647,1,1,2) [2025-03-30 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798647', 'tblTempUsageDetail_20' ) start [2025-03-30 20:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798647', 'tblTempUsageDetail_20' ) end [2025-03-30 20:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:35:25] Production.INFO: ==5129== Releasing lock... [2025-03-30 20:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:35:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:36:05 [end_date_ymd] => 2025-03-30 20:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:36:05' and `end` < '2025-03-30 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-03-30 20:36:18] Production.INFO: count ==4016 [2025-03-30 20:36:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:36:05 - End Time 2025-03-30 20:36:05 [2025-03-30 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798652', 'tblTempUsageDetail_20' ) start [2025-03-30 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798652', 'tblTempUsageDetail_20' ) end [2025-03-30 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798652', 'tblTempVendorCDR_20' ) start [2025-03-30 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798652', 'tblTempVendorCDR_20' ) end [2025-03-30 20:36:20] Production.INFO: ProcessCDR(1,14798652,1,1,2) [2025-03-30 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798652', 'tblTempUsageDetail_20' ) start [2025-03-30 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798652', 'tblTempUsageDetail_20' ) end [2025-03-30 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:36:23] Production.INFO: ==5204== Releasing lock... [2025-03-30 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:36:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:37:05 [end_date_ymd] => 2025-03-30 20:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:37:05' and `end` < '2025-03-30 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-03-30 20:37:18] Production.INFO: count ==4020 [2025-03-30 20:37:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:37:05 - End Time 2025-03-30 20:37:05 [2025-03-30 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798657', 'tblTempUsageDetail_20' ) start [2025-03-30 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798657', 'tblTempUsageDetail_20' ) end [2025-03-30 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798657', 'tblTempVendorCDR_20' ) start [2025-03-30 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798657', 'tblTempVendorCDR_20' ) end [2025-03-30 20:37:20] Production.INFO: ProcessCDR(1,14798657,1,1,2) [2025-03-30 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798657', 'tblTempUsageDetail_20' ) start [2025-03-30 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798657', 'tblTempUsageDetail_20' ) end [2025-03-30 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:37:24] Production.INFO: ==5282== Releasing lock... [2025-03-30 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:37:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:38:06 [end_date_ymd] => 2025-03-30 20:38:06 [RateCDR] => 1 ) [2025-03-30 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:38:06' and `end` < '2025-03-30 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:38:19] Production.INFO: count ==4029 [2025-03-30 20:38:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:38:06 - End Time 2025-03-30 20:38:06 [2025-03-30 20:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798662', 'tblTempUsageDetail_20' ) start [2025-03-30 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798662', 'tblTempUsageDetail_20' ) end [2025-03-30 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798662', 'tblTempVendorCDR_20' ) start [2025-03-30 20:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798662', 'tblTempVendorCDR_20' ) end [2025-03-30 20:38:21] Production.INFO: ProcessCDR(1,14798662,1,1,2) [2025-03-30 20:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798662', 'tblTempUsageDetail_20' ) start [2025-03-30 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798662', 'tblTempUsageDetail_20' ) end [2025-03-30 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:38:25] Production.INFO: ==5358== Releasing lock... [2025-03-30 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:38:25] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:39:05 [end_date_ymd] => 2025-03-30 20:39:05 [RateCDR] => 1 ) [2025-03-30 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:39:05' and `end` < '2025-03-30 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:39:18] Production.INFO: count ==4037 [2025-03-30 20:39:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:39:05 - End Time 2025-03-30 20:39:05 [2025-03-30 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798667', 'tblTempUsageDetail_20' ) start [2025-03-30 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798667', 'tblTempUsageDetail_20' ) end [2025-03-30 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798667', 'tblTempVendorCDR_20' ) start [2025-03-30 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798667', 'tblTempVendorCDR_20' ) end [2025-03-30 20:39:20] Production.INFO: ProcessCDR(1,14798667,1,1,2) [2025-03-30 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798667', 'tblTempUsageDetail_20' ) start [2025-03-30 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798667', 'tblTempUsageDetail_20' ) end [2025-03-30 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:39:24] Production.INFO: ==5434== Releasing lock... [2025-03-30 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:39:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:40:07 [end_date_ymd] => 2025-03-30 20:40:07 [RateCDR] => 1 ) [2025-03-30 20: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-03-30 17:40:07' and `end` < '2025-03-30 20: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-03-30 20:40:20] Production.INFO: count ==4032 [2025-03-30 20:40:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:40:07 - End Time 2025-03-30 20:40:07 [2025-03-30 20:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798673', 'tblTempUsageDetail_20' ) start [2025-03-30 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798673', 'tblTempUsageDetail_20' ) end [2025-03-30 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798673', 'tblTempVendorCDR_20' ) start [2025-03-30 20:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798673', 'tblTempVendorCDR_20' ) end [2025-03-30 20:40:22] Production.INFO: ProcessCDR(1,14798673,1,1,2) [2025-03-30 20:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798673', 'tblTempUsageDetail_20' ) start [2025-03-30 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798673', 'tblTempUsageDetail_20' ) end [2025-03-30 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:40:25] Production.INFO: ==5515== Releasing lock... [2025-03-30 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:40:25] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:41:05 [end_date_ymd] => 2025-03-30 20:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:41:05' and `end` < '2025-03-30 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-03-30 20:41:18] Production.INFO: count ==4010 [2025-03-30 20:41:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:41:05 - End Time 2025-03-30 20:41:05 [2025-03-30 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798678', 'tblTempUsageDetail_20' ) start [2025-03-30 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798678', 'tblTempUsageDetail_20' ) end [2025-03-30 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798678', 'tblTempVendorCDR_20' ) start [2025-03-30 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798678', 'tblTempVendorCDR_20' ) end [2025-03-30 20:41:20] Production.INFO: ProcessCDR(1,14798678,1,1,2) [2025-03-30 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798678', 'tblTempUsageDetail_20' ) start [2025-03-30 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798678', 'tblTempUsageDetail_20' ) end [2025-03-30 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:41:23] Production.INFO: ==5601== Releasing lock... [2025-03-30 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:41:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:42:05 [end_date_ymd] => 2025-03-30 20:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:42:05' and `end` < '2025-03-30 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-03-30 20:42:18] Production.INFO: count ==4022 [2025-03-30 20:42:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:42:05 - End Time 2025-03-30 20:42:05 [2025-03-30 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798683', 'tblTempUsageDetail_20' ) start [2025-03-30 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798683', 'tblTempUsageDetail_20' ) end [2025-03-30 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798683', 'tblTempVendorCDR_20' ) start [2025-03-30 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798683', 'tblTempVendorCDR_20' ) end [2025-03-30 20:42:20] Production.INFO: ProcessCDR(1,14798683,1,1,2) [2025-03-30 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798683', 'tblTempUsageDetail_20' ) start [2025-03-30 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798683', 'tblTempUsageDetail_20' ) end [2025-03-30 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:42:24] Production.INFO: ==5675== Releasing lock... [2025-03-30 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:42:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:43:05 [end_date_ymd] => 2025-03-30 20:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:43:05' and `end` < '2025-03-30 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-03-30 20:43:18] Production.INFO: count ==4014 [2025-03-30 20:43:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:43:05 - End Time 2025-03-30 20:43:05 [2025-03-30 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798688', 'tblTempUsageDetail_20' ) start [2025-03-30 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798688', 'tblTempUsageDetail_20' ) end [2025-03-30 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798688', 'tblTempVendorCDR_20' ) start [2025-03-30 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798688', 'tblTempVendorCDR_20' ) end [2025-03-30 20:43:20] Production.INFO: ProcessCDR(1,14798688,1,1,2) [2025-03-30 20:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798688', 'tblTempUsageDetail_20' ) start [2025-03-30 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798688', 'tblTempUsageDetail_20' ) end [2025-03-30 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:43:24] Production.INFO: ==5756== Releasing lock... [2025-03-30 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:43:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:44:05 [end_date_ymd] => 2025-03-30 20:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:44:05' and `end` < '2025-03-30 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-03-30 20:44:18] Production.INFO: count ==4020 [2025-03-30 20:44:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:44:05 - End Time 2025-03-30 20:44:05 [2025-03-30 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798693', 'tblTempUsageDetail_20' ) start [2025-03-30 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798693', 'tblTempUsageDetail_20' ) end [2025-03-30 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798693', 'tblTempVendorCDR_20' ) start [2025-03-30 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798693', 'tblTempVendorCDR_20' ) end [2025-03-30 20:44:20] Production.INFO: ProcessCDR(1,14798693,1,1,2) [2025-03-30 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798693', 'tblTempUsageDetail_20' ) start [2025-03-30 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798693', 'tblTempUsageDetail_20' ) end [2025-03-30 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:44:24] Production.INFO: ==5833== Releasing lock... [2025-03-30 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:44:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:45:05 [end_date_ymd] => 2025-03-30 20:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:45:05' and `end` < '2025-03-30 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-03-30 20:45:18] Production.INFO: count ==4014 [2025-03-30 20:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:45:05 - End Time 2025-03-30 20:45:05 [2025-03-30 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798698', 'tblTempUsageDetail_20' ) start [2025-03-30 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798698', 'tblTempUsageDetail_20' ) end [2025-03-30 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798698', 'tblTempVendorCDR_20' ) start [2025-03-30 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798698', 'tblTempVendorCDR_20' ) end [2025-03-30 20:45:20] Production.INFO: ProcessCDR(1,14798698,1,1,2) [2025-03-30 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798698', 'tblTempUsageDetail_20' ) start [2025-03-30 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798698', 'tblTempUsageDetail_20' ) end [2025-03-30 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:45:23] Production.INFO: ==5948== Releasing lock... [2025-03-30 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:45:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:46:06 [end_date_ymd] => 2025-03-30 20:46:06 [RateCDR] => 1 ) [2025-03-30 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:46:06' and `end` < '2025-03-30 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:46:19] Production.INFO: count ==4025 [2025-03-30 20:46:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:46:06 - End Time 2025-03-30 20:46:06 [2025-03-30 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798703', 'tblTempUsageDetail_20' ) start [2025-03-30 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798703', 'tblTempUsageDetail_20' ) end [2025-03-30 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798703', 'tblTempVendorCDR_20' ) start [2025-03-30 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798703', 'tblTempVendorCDR_20' ) end [2025-03-30 20:46:20] Production.INFO: ProcessCDR(1,14798703,1,1,2) [2025-03-30 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798703', 'tblTempUsageDetail_20' ) start [2025-03-30 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798703', 'tblTempUsageDetail_20' ) end [2025-03-30 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:46:24] Production.INFO: ==6025== Releasing lock... [2025-03-30 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:46:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:47:05 [end_date_ymd] => 2025-03-30 20:47:05 [RateCDR] => 1 ) [2025-03-30 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:47:05' and `end` < '2025-03-30 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:47:18] Production.INFO: count ==4023 [2025-03-30 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:47:05 - End Time 2025-03-30 20:47:05 [2025-03-30 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798708', 'tblTempUsageDetail_20' ) start [2025-03-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798708', 'tblTempUsageDetail_20' ) end [2025-03-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798708', 'tblTempVendorCDR_20' ) start [2025-03-30 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798708', 'tblTempVendorCDR_20' ) end [2025-03-30 20:47:20] Production.INFO: ProcessCDR(1,14798708,1,1,2) [2025-03-30 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798708', 'tblTempUsageDetail_20' ) start [2025-03-30 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798708', 'tblTempUsageDetail_20' ) end [2025-03-30 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:47:23] Production.INFO: ==6103== Releasing lock... [2025-03-30 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:47:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:48:05 [end_date_ymd] => 2025-03-30 20:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:48:05' and `end` < '2025-03-30 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-03-30 20:48:18] Production.INFO: count ==4025 [2025-03-30 20:48:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:48:05 - End Time 2025-03-30 20:48:05 [2025-03-30 20:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798713', 'tblTempUsageDetail_20' ) start [2025-03-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798713', 'tblTempUsageDetail_20' ) end [2025-03-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798713', 'tblTempVendorCDR_20' ) start [2025-03-30 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798713', 'tblTempVendorCDR_20' ) end [2025-03-30 20:48:20] Production.INFO: ProcessCDR(1,14798713,1,1,2) [2025-03-30 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798713', 'tblTempUsageDetail_20' ) start [2025-03-30 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798713', 'tblTempUsageDetail_20' ) end [2025-03-30 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:48:24] Production.INFO: ==6178== Releasing lock... [2025-03-30 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:48:24] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:49:05 [end_date_ymd] => 2025-03-30 20:49:05 [RateCDR] => 1 ) [2025-03-30 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:49:05' and `end` < '2025-03-30 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:49:18] Production.INFO: count ==4028 [2025-03-30 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:49:05 - End Time 2025-03-30 20:49:05 [2025-03-30 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798718', 'tblTempUsageDetail_20' ) start [2025-03-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798718', 'tblTempUsageDetail_20' ) end [2025-03-30 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798718', 'tblTempVendorCDR_20' ) start [2025-03-30 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798718', 'tblTempVendorCDR_20' ) end [2025-03-30 20:49:20] Production.INFO: ProcessCDR(1,14798718,1,1,2) [2025-03-30 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798718', 'tblTempUsageDetail_20' ) start [2025-03-30 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798718', 'tblTempUsageDetail_20' ) end [2025-03-30 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:49:23] Production.INFO: ==6255== Releasing lock... [2025-03-30 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:49:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:50:06 [end_date_ymd] => 2025-03-30 20:50:06 [RateCDR] => 1 ) [2025-03-30 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:50:06' and `end` < '2025-03-30 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:50:19] Production.INFO: count ==4037 [2025-03-30 20:50:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:50:06 - End Time 2025-03-30 20:50:06 [2025-03-30 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798724', 'tblTempUsageDetail_20' ) start [2025-03-30 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798724', 'tblTempUsageDetail_20' ) end [2025-03-30 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798724', 'tblTempVendorCDR_20' ) start [2025-03-30 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798724', 'tblTempVendorCDR_20' ) end [2025-03-30 20:50:21] Production.INFO: ProcessCDR(1,14798724,1,1,2) [2025-03-30 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798724', 'tblTempUsageDetail_20' ) start [2025-03-30 20:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798724', 'tblTempUsageDetail_20' ) end [2025-03-30 20:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:50:25] Production.INFO: ==6334== Releasing lock... [2025-03-30 20:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:50:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-30 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:51:04 [end_date_ymd] => 2025-03-30 20:51:04 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:51:04' and `end` < '2025-03-30 20: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-03-30 20:51:18] Production.INFO: count ==4032 [2025-03-30 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:51:04 - End Time 2025-03-30 20:51:04 [2025-03-30 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798729', 'tblTempUsageDetail_20' ) start [2025-03-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798729', 'tblTempUsageDetail_20' ) end [2025-03-30 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798729', 'tblTempVendorCDR_20' ) start [2025-03-30 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798729', 'tblTempVendorCDR_20' ) end [2025-03-30 20:51:20] Production.INFO: ProcessCDR(1,14798729,1,1,2) [2025-03-30 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798729', 'tblTempUsageDetail_20' ) start [2025-03-30 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798729', 'tblTempUsageDetail_20' ) end [2025-03-30 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:51:23] Production.INFO: ==6410== Releasing lock... [2025-03-30 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:51:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:52:05 [end_date_ymd] => 2025-03-30 20:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:52:05' and `end` < '2025-03-30 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-03-30 20:52:18] Production.INFO: count ==4037 [2025-03-30 20:52:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:52:05 - End Time 2025-03-30 20:52:05 [2025-03-30 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798734', 'tblTempUsageDetail_20' ) start [2025-03-30 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798734', 'tblTempUsageDetail_20' ) end [2025-03-30 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798734', 'tblTempVendorCDR_20' ) start [2025-03-30 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798734', 'tblTempVendorCDR_20' ) end [2025-03-30 20:52:20] Production.INFO: ProcessCDR(1,14798734,1,1,2) [2025-03-30 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798734', 'tblTempUsageDetail_20' ) start [2025-03-30 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798734', 'tblTempUsageDetail_20' ) end [2025-03-30 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:52:23] Production.INFO: ==6481== Releasing lock... [2025-03-30 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:52:23] Production.INFO: 58 MB #Memory Used# [2025-03-30 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:53:05 [end_date_ymd] => 2025-03-30 20:53:05 [RateCDR] => 1 ) [2025-03-30 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:53:05' and `end` < '2025-03-30 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-03-30 20:53:19] Production.INFO: count ==4003 [2025-03-30 20:53:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:53:05 - End Time 2025-03-30 20:53:05 [2025-03-30 20:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798739', 'tblTempUsageDetail_20' ) start [2025-03-30 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798739', 'tblTempUsageDetail_20' ) end [2025-03-30 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798739', 'tblTempVendorCDR_20' ) start [2025-03-30 20:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798739', 'tblTempVendorCDR_20' ) end [2025-03-30 20:53:21] Production.INFO: ProcessCDR(1,14798739,1,1,2) [2025-03-30 20:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798739', 'tblTempUsageDetail_20' ) start [2025-03-30 20:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798739', 'tblTempUsageDetail_20' ) end [2025-03-30 20:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:53:25] Production.INFO: ==6559== Releasing lock... [2025-03-30 20:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:53:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-30 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:54:05 [end_date_ymd] => 2025-03-30 20:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 17:54:05' and `end` < '2025-03-30 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-03-30 20:54:18] Production.INFO: count ==3972 [2025-03-30 20:54:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:54:05 - End Time 2025-03-30 20:54:05 [2025-03-30 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798744', 'tblTempUsageDetail_20' ) start [2025-03-30 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798744', 'tblTempUsageDetail_20' ) end [2025-03-30 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798744', 'tblTempVendorCDR_20' ) start [2025-03-30 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798744', 'tblTempVendorCDR_20' ) end [2025-03-30 20:54:20] Production.INFO: ProcessCDR(1,14798744,1,1,2) [2025-03-30 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798744', 'tblTempUsageDetail_20' ) start [2025-03-30 20:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798744', 'tblTempUsageDetail_20' ) end [2025-03-30 20:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:54:24] Production.INFO: ==6635== Releasing lock... [2025-03-30 20:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:54:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-30 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:55:06 [end_date_ymd] => 2025-03-30 20:55:06 [RateCDR] => 1 ) [2025-03-30 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:55:06' and `end` < '2025-03-30 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:55:19] Production.INFO: count ==3960 [2025-03-30 20:55:21] Production.ERROR: pbx CDR StartTime 2025-03-30 17:55:06 - End Time 2025-03-30 20:55:06 [2025-03-30 20:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798749', 'tblTempUsageDetail_20' ) start [2025-03-30 20:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798749', 'tblTempUsageDetail_20' ) end [2025-03-30 20:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798749', 'tblTempVendorCDR_20' ) start [2025-03-30 20:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798749', 'tblTempVendorCDR_20' ) end [2025-03-30 20:55:21] Production.INFO: ProcessCDR(1,14798749,1,1,2) [2025-03-30 20:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798749', 'tblTempUsageDetail_20' ) start [2025-03-30 20:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798749', 'tblTempUsageDetail_20' ) end [2025-03-30 20:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:55:26] Production.INFO: ==6712== Releasing lock... [2025-03-30 20:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:55:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-30 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:56:05 [end_date_ymd] => 2025-03-30 20:56:05 [RateCDR] => 1 ) [2025-03-30 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:56:05' and `end` < '2025-03-30 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:56:18] Production.INFO: count ==3902 [2025-03-30 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:56:05 - End Time 2025-03-30 20:56:05 [2025-03-30 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798754', 'tblTempUsageDetail_20' ) start [2025-03-30 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798754', 'tblTempUsageDetail_20' ) end [2025-03-30 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798754', 'tblTempVendorCDR_20' ) start [2025-03-30 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798754', 'tblTempVendorCDR_20' ) end [2025-03-30 20:56:20] Production.INFO: ProcessCDR(1,14798754,1,1,2) [2025-03-30 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798754', 'tblTempUsageDetail_20' ) start [2025-03-30 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798754', 'tblTempUsageDetail_20' ) end [2025-03-30 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:56:25] Production.INFO: ==6785== Releasing lock... [2025-03-30 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:56:25] Production.INFO: 57 MB #Memory Used# [2025-03-30 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:57:06 [end_date_ymd] => 2025-03-30 20:57:06 [RateCDR] => 1 ) [2025-03-30 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:57:06' and `end` < '2025-03-30 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:57:19] Production.INFO: count ==3864 [2025-03-30 20:57:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:57:06 - End Time 2025-03-30 20:57:06 [2025-03-30 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798759', 'tblTempUsageDetail_20' ) start [2025-03-30 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798759', 'tblTempUsageDetail_20' ) end [2025-03-30 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798759', 'tblTempVendorCDR_20' ) start [2025-03-30 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798759', 'tblTempVendorCDR_20' ) end [2025-03-30 20:57:20] Production.INFO: ProcessCDR(1,14798759,1,1,2) [2025-03-30 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798759', 'tblTempUsageDetail_20' ) start [2025-03-30 20:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798759', 'tblTempUsageDetail_20' ) end [2025-03-30 20:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:57:25] Production.INFO: ==6858== Releasing lock... [2025-03-30 20:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:57:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:58:05 [end_date_ymd] => 2025-03-30 20:58:05 [RateCDR] => 1 ) [2025-03-30 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:58:05' and `end` < '2025-03-30 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:58:18] Production.INFO: count ==3824 [2025-03-30 20:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 17:58:05 - End Time 2025-03-30 20:58:05 [2025-03-30 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798764', 'tblTempUsageDetail_20' ) start [2025-03-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798764', 'tblTempUsageDetail_20' ) end [2025-03-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798764', 'tblTempVendorCDR_20' ) start [2025-03-30 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798764', 'tblTempVendorCDR_20' ) end [2025-03-30 20:58:19] Production.INFO: ProcessCDR(1,14798764,1,1,2) [2025-03-30 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798764', 'tblTempUsageDetail_20' ) start [2025-03-30 20:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798764', 'tblTempUsageDetail_20' ) end [2025-03-30 20:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:58:25] Production.INFO: ==6931== Releasing lock... [2025-03-30 20:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:58:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-30 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 17:59:06 [end_date_ymd] => 2025-03-30 20:59:06 [RateCDR] => 1 ) [2025-03-30 20:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 17:59:06' and `end` < '2025-03-30 20:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 20:59:18] Production.INFO: count ==3753 [2025-03-30 20:59:20] Production.ERROR: pbx CDR StartTime 2025-03-30 17:59:06 - End Time 2025-03-30 20:59:06 [2025-03-30 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798769', 'tblTempUsageDetail_20' ) start [2025-03-30 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798769', 'tblTempUsageDetail_20' ) end [2025-03-30 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798769', 'tblTempVendorCDR_20' ) start [2025-03-30 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798769', 'tblTempVendorCDR_20' ) end [2025-03-30 20:59:20] Production.INFO: ProcessCDR(1,14798769,1,1,2) [2025-03-30 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 20:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798769', 'tblTempUsageDetail_20' ) start [2025-03-30 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798769', 'tblTempUsageDetail_20' ) end [2025-03-30 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 20:59:25] Production.INFO: ==7007== Releasing lock... [2025-03-30 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 20:59:25] Production.INFO: 56 MB #Memory Used# [2025-03-30 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:00:06 [end_date_ymd] => 2025-03-30 21:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:00:06' and `end` < '2025-03-30 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-03-30 21:00:19] Production.INFO: count ==3684 [2025-03-30 21:00:21] Production.ERROR: pbx CDR StartTime 2025-03-30 18:00:06 - End Time 2025-03-30 21:00:06 [2025-03-30 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798775', 'tblTempUsageDetail_20' ) start [2025-03-30 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798775', 'tblTempUsageDetail_20' ) end [2025-03-30 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798775', 'tblTempVendorCDR_20' ) start [2025-03-30 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798775', 'tblTempVendorCDR_20' ) end [2025-03-30 21:00:21] Production.INFO: ProcessCDR(1,14798775,1,1,2) [2025-03-30 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798775', 'tblTempUsageDetail_20' ) start [2025-03-30 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798775', 'tblTempUsageDetail_20' ) end [2025-03-30 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:00:24] Production.INFO: ==7122== Releasing lock... [2025-03-30 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:00:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-30 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:01:05 [end_date_ymd] => 2025-03-30 21:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:01:05' and `end` < '2025-03-30 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-03-30 21:01:18] Production.INFO: count ==3591 [2025-03-30 21:01:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:01:05 - End Time 2025-03-30 21:01:05 [2025-03-30 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798780', 'tblTempUsageDetail_20' ) start [2025-03-30 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798780', 'tblTempUsageDetail_20' ) end [2025-03-30 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798780', 'tblTempVendorCDR_20' ) start [2025-03-30 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798780', 'tblTempVendorCDR_20' ) end [2025-03-30 21:01:20] Production.INFO: ProcessCDR(1,14798780,1,1,2) [2025-03-30 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798780', 'tblTempUsageDetail_20' ) start [2025-03-30 21:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798780', 'tblTempUsageDetail_20' ) end [2025-03-30 21:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:01:25] Production.INFO: ==7206== Releasing lock... [2025-03-30 21:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:01:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-30 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:02:05 [end_date_ymd] => 2025-03-30 21:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:02:05' and `end` < '2025-03-30 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-03-30 21:02:18] Production.INFO: count ==3561 [2025-03-30 21:02:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:02:05 - End Time 2025-03-30 21:02:05 [2025-03-30 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798785', 'tblTempUsageDetail_20' ) start [2025-03-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798785', 'tblTempUsageDetail_20' ) end [2025-03-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798785', 'tblTempVendorCDR_20' ) start [2025-03-30 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798785', 'tblTempVendorCDR_20' ) end [2025-03-30 21:02:20] Production.INFO: ProcessCDR(1,14798785,1,1,2) [2025-03-30 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798785', 'tblTempUsageDetail_20' ) start [2025-03-30 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798785', 'tblTempUsageDetail_20' ) end [2025-03-30 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:02:23] Production.INFO: ==7278== Releasing lock... [2025-03-30 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:02:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-30 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:03:05 [end_date_ymd] => 2025-03-30 21:03:05 [RateCDR] => 1 ) [2025-03-30 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:03:05' and `end` < '2025-03-30 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:03:18] Production.INFO: count ==3513 [2025-03-30 21:03:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:03:05 - End Time 2025-03-30 21:03:05 [2025-03-30 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798790', 'tblTempUsageDetail_20' ) start [2025-03-30 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798790', 'tblTempUsageDetail_20' ) end [2025-03-30 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798790', 'tblTempVendorCDR_20' ) start [2025-03-30 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798790', 'tblTempVendorCDR_20' ) end [2025-03-30 21:03:20] Production.INFO: ProcessCDR(1,14798790,1,1,2) [2025-03-30 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798790', 'tblTempUsageDetail_20' ) start [2025-03-30 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798790', 'tblTempUsageDetail_20' ) end [2025-03-30 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:03:23] Production.INFO: ==7353== Releasing lock... [2025-03-30 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:03:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:04:05 [end_date_ymd] => 2025-03-30 21:04:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:04:05' and `end` < '2025-03-30 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-03-30 21:04:18] Production.INFO: count ==3467 [2025-03-30 21:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:04:05 - End Time 2025-03-30 21:04:05 [2025-03-30 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798795', 'tblTempUsageDetail_20' ) start [2025-03-30 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798795', 'tblTempUsageDetail_20' ) end [2025-03-30 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798795', 'tblTempVendorCDR_20' ) start [2025-03-30 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798795', 'tblTempVendorCDR_20' ) end [2025-03-30 21:04:20] Production.INFO: ProcessCDR(1,14798795,1,1,2) [2025-03-30 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798795', 'tblTempUsageDetail_20' ) start [2025-03-30 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798795', 'tblTempUsageDetail_20' ) end [2025-03-30 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:04:23] Production.INFO: ==7424== Releasing lock... [2025-03-30 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:04:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:05:06 [end_date_ymd] => 2025-03-30 21:05:06 [RateCDR] => 1 ) [2025-03-30 21:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:05:06' and `end` < '2025-03-30 21:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:05:19] Production.INFO: count ==3460 [2025-03-30 21:05:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:05:06 - End Time 2025-03-30 21:05:06 [2025-03-30 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798800', 'tblTempUsageDetail_20' ) start [2025-03-30 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798800', 'tblTempUsageDetail_20' ) end [2025-03-30 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798800', 'tblTempVendorCDR_20' ) start [2025-03-30 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798800', 'tblTempVendorCDR_20' ) end [2025-03-30 21:05:20] Production.INFO: ProcessCDR(1,14798800,1,1,2) [2025-03-30 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798800', 'tblTempUsageDetail_20' ) start [2025-03-30 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798800', 'tblTempUsageDetail_20' ) end [2025-03-30 21:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:05:24] Production.INFO: ==7497== Releasing lock... [2025-03-30 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:05:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:06:05 [end_date_ymd] => 2025-03-30 21:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:06:05' and `end` < '2025-03-30 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-03-30 21:06:18] Production.INFO: count ==3465 [2025-03-30 21:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:06:05 - End Time 2025-03-30 21:06:05 [2025-03-30 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798804', 'tblTempUsageDetail_20' ) start [2025-03-30 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798804', 'tblTempUsageDetail_20' ) end [2025-03-30 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798804', 'tblTempVendorCDR_20' ) start [2025-03-30 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798804', 'tblTempVendorCDR_20' ) end [2025-03-30 21:06:20] Production.INFO: ProcessCDR(1,14798804,1,1,2) [2025-03-30 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798804', 'tblTempUsageDetail_20' ) start [2025-03-30 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798804', 'tblTempUsageDetail_20' ) end [2025-03-30 21:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:06:25] Production.INFO: ==7569== Releasing lock... [2025-03-30 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:06:25] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:07:06 [end_date_ymd] => 2025-03-30 21:07:06 [RateCDR] => 1 ) [2025-03-30 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:07:06' and `end` < '2025-03-30 21: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-03-30 21:07:19] Production.INFO: count ==3464 [2025-03-30 21:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:07:06 - End Time 2025-03-30 21:07:06 [2025-03-30 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798810', 'tblTempUsageDetail_20' ) start [2025-03-30 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798810', 'tblTempUsageDetail_20' ) end [2025-03-30 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798810', 'tblTempVendorCDR_20' ) start [2025-03-30 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798810', 'tblTempVendorCDR_20' ) end [2025-03-30 21:07:20] Production.INFO: ProcessCDR(1,14798810,1,1,2) [2025-03-30 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798810', 'tblTempUsageDetail_20' ) start [2025-03-30 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798810', 'tblTempUsageDetail_20' ) end [2025-03-30 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:07:24] Production.INFO: ==7638== Releasing lock... [2025-03-30 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:07:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:08:05 [end_date_ymd] => 2025-03-30 21:08:05 [RateCDR] => 1 ) [2025-03-30 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:08:05' and `end` < '2025-03-30 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:08:18] Production.INFO: count ==3465 [2025-03-30 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:08:05 - End Time 2025-03-30 21:08:05 [2025-03-30 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798815', 'tblTempUsageDetail_20' ) start [2025-03-30 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798815', 'tblTempUsageDetail_20' ) end [2025-03-30 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798815', 'tblTempVendorCDR_20' ) start [2025-03-30 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798815', 'tblTempVendorCDR_20' ) end [2025-03-30 21:08:19] Production.INFO: ProcessCDR(1,14798815,1,1,2) [2025-03-30 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798815', 'tblTempUsageDetail_20' ) start [2025-03-30 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798815', 'tblTempUsageDetail_20' ) end [2025-03-30 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:08:23] Production.INFO: ==7717== Releasing lock... [2025-03-30 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:08:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:09:06 [end_date_ymd] => 2025-03-30 21:09:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:09:06' and `end` < '2025-03-30 21: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-03-30 21:09:19] Production.INFO: count ==3463 [2025-03-30 21:09:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:09:06 - End Time 2025-03-30 21:09:06 [2025-03-30 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798820', 'tblTempUsageDetail_20' ) start [2025-03-30 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798820', 'tblTempUsageDetail_20' ) end [2025-03-30 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798820', 'tblTempVendorCDR_20' ) start [2025-03-30 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798820', 'tblTempVendorCDR_20' ) end [2025-03-30 21:09:20] Production.INFO: ProcessCDR(1,14798820,1,1,2) [2025-03-30 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798820', 'tblTempUsageDetail_20' ) start [2025-03-30 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798820', 'tblTempUsageDetail_20' ) end [2025-03-30 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:09:24] Production.INFO: ==7794== Releasing lock... [2025-03-30 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:09:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:10:07 [end_date_ymd] => 2025-03-30 21:10:07 [RateCDR] => 1 ) [2025-03-30 21:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:10:07' and `end` < '2025-03-30 21:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:10:19] Production.INFO: count ==3458 [2025-03-30 21:10:21] Production.ERROR: pbx CDR StartTime 2025-03-30 18:10:07 - End Time 2025-03-30 21:10:07 [2025-03-30 21:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798825', 'tblTempUsageDetail_20' ) start [2025-03-30 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798825', 'tblTempUsageDetail_20' ) end [2025-03-30 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798825', 'tblTempVendorCDR_20' ) start [2025-03-30 21:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798825', 'tblTempVendorCDR_20' ) end [2025-03-30 21:10:21] Production.INFO: ProcessCDR(1,14798825,1,1,2) [2025-03-30 21:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798825', 'tblTempUsageDetail_20' ) start [2025-03-30 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798825', 'tblTempUsageDetail_20' ) end [2025-03-30 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:10:24] Production.INFO: ==7868== Releasing lock... [2025-03-30 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:10:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:11:05 [end_date_ymd] => 2025-03-30 21:11:05 [RateCDR] => 1 ) [2025-03-30 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:11:05' and `end` < '2025-03-30 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:11:18] Production.INFO: count ==3511 [2025-03-30 21:11:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:11:05 - End Time 2025-03-30 21:11:05 [2025-03-30 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798831', 'tblTempUsageDetail_20' ) start [2025-03-30 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798831', 'tblTempUsageDetail_20' ) end [2025-03-30 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798831', 'tblTempVendorCDR_20' ) start [2025-03-30 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798831', 'tblTempVendorCDR_20' ) end [2025-03-30 21:11:20] Production.INFO: ProcessCDR(1,14798831,1,1,2) [2025-03-30 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798831', 'tblTempUsageDetail_20' ) start [2025-03-30 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798831', 'tblTempUsageDetail_20' ) end [2025-03-30 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:11:24] Production.INFO: ==7946== Releasing lock... [2025-03-30 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:11:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:12:05 [end_date_ymd] => 2025-03-30 21:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:12:05' and `end` < '2025-03-30 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-03-30 21:12:18] Production.INFO: count ==3504 [2025-03-30 21:12:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:12:05 - End Time 2025-03-30 21:12:05 [2025-03-30 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798836', 'tblTempUsageDetail_20' ) start [2025-03-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798836', 'tblTempUsageDetail_20' ) end [2025-03-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798836', 'tblTempVendorCDR_20' ) start [2025-03-30 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798836', 'tblTempVendorCDR_20' ) end [2025-03-30 21:12:20] Production.INFO: ProcessCDR(1,14798836,1,1,2) [2025-03-30 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798836', 'tblTempUsageDetail_20' ) start [2025-03-30 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798836', 'tblTempUsageDetail_20' ) end [2025-03-30 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:12:23] Production.INFO: ==8038== Releasing lock... [2025-03-30 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:12:23] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:13:06 [end_date_ymd] => 2025-03-30 21:13:06 [RateCDR] => 1 ) [2025-03-30 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:13:06' and `end` < '2025-03-30 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:13:19] Production.INFO: count ==3502 [2025-03-30 21:13:21] Production.ERROR: pbx CDR StartTime 2025-03-30 18:13:06 - End Time 2025-03-30 21:13:06 [2025-03-30 21:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798841', 'tblTempUsageDetail_20' ) start [2025-03-30 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798841', 'tblTempUsageDetail_20' ) end [2025-03-30 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798841', 'tblTempVendorCDR_20' ) start [2025-03-30 21:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798841', 'tblTempVendorCDR_20' ) end [2025-03-30 21:13:21] Production.INFO: ProcessCDR(1,14798841,1,1,2) [2025-03-30 21:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798841', 'tblTempUsageDetail_20' ) start [2025-03-30 21:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798841', 'tblTempUsageDetail_20' ) end [2025-03-30 21:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:13:26] Production.INFO: ==8129== Releasing lock... [2025-03-30 21:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:13:26] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:14:05 [end_date_ymd] => 2025-03-30 21:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:14:05' and `end` < '2025-03-30 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-03-30 21:14:18] Production.INFO: count ==3500 [2025-03-30 21:14:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:14:05 - End Time 2025-03-30 21:14:05 [2025-03-30 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798846', 'tblTempUsageDetail_20' ) start [2025-03-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798846', 'tblTempUsageDetail_20' ) end [2025-03-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798846', 'tblTempVendorCDR_20' ) start [2025-03-30 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798846', 'tblTempVendorCDR_20' ) end [2025-03-30 21:14:20] Production.INFO: ProcessCDR(1,14798846,1,1,2) [2025-03-30 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798846', 'tblTempUsageDetail_20' ) start [2025-03-30 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798846', 'tblTempUsageDetail_20' ) end [2025-03-30 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:14:23] Production.INFO: ==8228== Releasing lock... [2025-03-30 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:14:23] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:15:05 [end_date_ymd] => 2025-03-30 21:15:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:15:05' and `end` < '2025-03-30 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-03-30 21:15:18] Production.INFO: count ==3475 [2025-03-30 21:15:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:15:05 - End Time 2025-03-30 21:15:05 [2025-03-30 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798851', 'tblTempUsageDetail_20' ) start [2025-03-30 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798851', 'tblTempUsageDetail_20' ) end [2025-03-30 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798851', 'tblTempVendorCDR_20' ) start [2025-03-30 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798851', 'tblTempVendorCDR_20' ) end [2025-03-30 21:15:20] Production.INFO: ProcessCDR(1,14798851,1,1,2) [2025-03-30 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798851', 'tblTempUsageDetail_20' ) start [2025-03-30 21:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798851', 'tblTempUsageDetail_20' ) end [2025-03-30 21:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:15:25] Production.INFO: ==8358== Releasing lock... [2025-03-30 21:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:15:25] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:16:05 [end_date_ymd] => 2025-03-30 21:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:16:05' and `end` < '2025-03-30 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-03-30 21:16:18] Production.INFO: count ==3474 [2025-03-30 21:16:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:16:05 - End Time 2025-03-30 21:16:05 [2025-03-30 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798856', 'tblTempUsageDetail_20' ) start [2025-03-30 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798856', 'tblTempUsageDetail_20' ) end [2025-03-30 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798856', 'tblTempVendorCDR_20' ) start [2025-03-30 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798856', 'tblTempVendorCDR_20' ) end [2025-03-30 21:16:20] Production.INFO: ProcessCDR(1,14798856,1,1,2) [2025-03-30 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798856', 'tblTempUsageDetail_20' ) start [2025-03-30 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798856', 'tblTempUsageDetail_20' ) end [2025-03-30 21:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:16:25] Production.INFO: ==8449== Releasing lock... [2025-03-30 21:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:16:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:17:05 [end_date_ymd] => 2025-03-30 21:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:17:05' and `end` < '2025-03-30 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-03-30 21:17:18] Production.INFO: count ==3488 [2025-03-30 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:17:05 - End Time 2025-03-30 21:17:05 [2025-03-30 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798861', 'tblTempUsageDetail_20' ) start [2025-03-30 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798861', 'tblTempUsageDetail_20' ) end [2025-03-30 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798861', 'tblTempVendorCDR_20' ) start [2025-03-30 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798861', 'tblTempVendorCDR_20' ) end [2025-03-30 21:17:20] Production.INFO: ProcessCDR(1,14798861,1,1,2) [2025-03-30 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798861', 'tblTempUsageDetail_20' ) start [2025-03-30 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798861', 'tblTempUsageDetail_20' ) end [2025-03-30 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:17:23] Production.INFO: ==8547== Releasing lock... [2025-03-30 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:17:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:18:05 [end_date_ymd] => 2025-03-30 21:18:05 [RateCDR] => 1 ) [2025-03-30 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:18:05' and `end` < '2025-03-30 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:18:18] Production.INFO: count ==3486 [2025-03-30 21:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:18:05 - End Time 2025-03-30 21:18:05 [2025-03-30 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798866', 'tblTempUsageDetail_20' ) start [2025-03-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798866', 'tblTempUsageDetail_20' ) end [2025-03-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798866', 'tblTempVendorCDR_20' ) start [2025-03-30 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798866', 'tblTempVendorCDR_20' ) end [2025-03-30 21:18:19] Production.INFO: ProcessCDR(1,14798866,1,1,2) [2025-03-30 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798866', 'tblTempUsageDetail_20' ) start [2025-03-30 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798866', 'tblTempUsageDetail_20' ) end [2025-03-30 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:18:23] Production.INFO: ==8651== Releasing lock... [2025-03-30 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:18:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:19:05 [end_date_ymd] => 2025-03-30 21:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:19:05' and `end` < '2025-03-30 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-03-30 21:19:18] Production.INFO: count ==3486 [2025-03-30 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:19:05 - End Time 2025-03-30 21:19:05 [2025-03-30 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798871', 'tblTempUsageDetail_20' ) start [2025-03-30 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798871', 'tblTempUsageDetail_20' ) end [2025-03-30 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798871', 'tblTempVendorCDR_20' ) start [2025-03-30 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798871', 'tblTempVendorCDR_20' ) end [2025-03-30 21:19:20] Production.INFO: ProcessCDR(1,14798871,1,1,2) [2025-03-30 21:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798871', 'tblTempUsageDetail_20' ) start [2025-03-30 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798871', 'tblTempUsageDetail_20' ) end [2025-03-30 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:19:23] Production.INFO: ==8743== Releasing lock... [2025-03-30 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:19:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:20:06 [end_date_ymd] => 2025-03-30 21:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:20:06' and `end` < '2025-03-30 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-03-30 21:20:19] Production.INFO: count ==3487 [2025-03-30 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:20:06 - End Time 2025-03-30 21:20:06 [2025-03-30 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798877', 'tblTempUsageDetail_20' ) start [2025-03-30 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798877', 'tblTempUsageDetail_20' ) end [2025-03-30 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798877', 'tblTempVendorCDR_20' ) start [2025-03-30 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798877', 'tblTempVendorCDR_20' ) end [2025-03-30 21:20:20] Production.INFO: ProcessCDR(1,14798877,1,1,2) [2025-03-30 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798877', 'tblTempUsageDetail_20' ) start [2025-03-30 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798877', 'tblTempUsageDetail_20' ) end [2025-03-30 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:20:24] Production.INFO: ==8838== Releasing lock... [2025-03-30 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:20:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:21:05 [end_date_ymd] => 2025-03-30 21:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:21:05' and `end` < '2025-03-30 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-03-30 21:21:18] Production.INFO: count ==3487 [2025-03-30 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:21:05 - End Time 2025-03-30 21:21:05 [2025-03-30 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798882', 'tblTempUsageDetail_20' ) start [2025-03-30 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798882', 'tblTempUsageDetail_20' ) end [2025-03-30 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798882', 'tblTempVendorCDR_20' ) start [2025-03-30 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798882', 'tblTempVendorCDR_20' ) end [2025-03-30 21:21:20] Production.INFO: ProcessCDR(1,14798882,1,1,2) [2025-03-30 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798882', 'tblTempUsageDetail_20' ) start [2025-03-30 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798882', 'tblTempUsageDetail_20' ) end [2025-03-30 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:21:23] Production.INFO: ==8934== Releasing lock... [2025-03-30 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:21:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-30 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:22:05 [end_date_ymd] => 2025-03-30 21:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:22:05' and `end` < '2025-03-30 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-03-30 21:22:18] Production.INFO: count ==3462 [2025-03-30 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:22:05 - End Time 2025-03-30 21:22:05 [2025-03-30 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798887', 'tblTempUsageDetail_20' ) start [2025-03-30 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798887', 'tblTempUsageDetail_20' ) end [2025-03-30 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798887', 'tblTempVendorCDR_20' ) start [2025-03-30 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798887', 'tblTempVendorCDR_20' ) end [2025-03-30 21:22:19] Production.INFO: ProcessCDR(1,14798887,1,1,2) [2025-03-30 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798887', 'tblTempUsageDetail_20' ) start [2025-03-30 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798887', 'tblTempUsageDetail_20' ) end [2025-03-30 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:22:24] Production.INFO: ==9029== Releasing lock... [2025-03-30 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:22:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-30 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:23:05 [end_date_ymd] => 2025-03-30 21:23:05 [RateCDR] => 1 ) [2025-03-30 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:23:05' and `end` < '2025-03-30 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:23:18] Production.INFO: count ==3429 [2025-03-30 21:23:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:23:05 - End Time 2025-03-30 21:23:05 [2025-03-30 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798892', 'tblTempUsageDetail_20' ) start [2025-03-30 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798892', 'tblTempUsageDetail_20' ) end [2025-03-30 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798892', 'tblTempVendorCDR_20' ) start [2025-03-30 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798892', 'tblTempVendorCDR_20' ) end [2025-03-30 21:23:20] Production.INFO: ProcessCDR(1,14798892,1,1,2) [2025-03-30 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798892', 'tblTempUsageDetail_20' ) start [2025-03-30 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798892', 'tblTempUsageDetail_20' ) end [2025-03-30 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:23:23] Production.INFO: ==9122== Releasing lock... [2025-03-30 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:23:23] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:24:05 [end_date_ymd] => 2025-03-30 21:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:24:05' and `end` < '2025-03-30 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-03-30 21:24:18] Production.INFO: count ==3385 [2025-03-30 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:24:05 - End Time 2025-03-30 21:24:05 [2025-03-30 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798897', 'tblTempUsageDetail_20' ) start [2025-03-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798897', 'tblTempUsageDetail_20' ) end [2025-03-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798897', 'tblTempVendorCDR_20' ) start [2025-03-30 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798897', 'tblTempVendorCDR_20' ) end [2025-03-30 21:24:19] Production.INFO: ProcessCDR(1,14798897,1,1,2) [2025-03-30 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798897', 'tblTempUsageDetail_20' ) start [2025-03-30 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798897', 'tblTempUsageDetail_20' ) end [2025-03-30 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:24:24] Production.INFO: ==9215== Releasing lock... [2025-03-30 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:24:24] Production.INFO: 54 MB #Memory Used# [2025-03-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:25:05 [end_date_ymd] => 2025-03-30 21:25:05 [RateCDR] => 1 ) [2025-03-30 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:25:05' and `end` < '2025-03-30 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:25:18] Production.INFO: count ==3359 [2025-03-30 21:25:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:25:05 - End Time 2025-03-30 21:25:05 [2025-03-30 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798902', 'tblTempUsageDetail_20' ) start [2025-03-30 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798902', 'tblTempUsageDetail_20' ) end [2025-03-30 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798902', 'tblTempVendorCDR_20' ) start [2025-03-30 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798902', 'tblTempVendorCDR_20' ) end [2025-03-30 21:25:20] Production.INFO: ProcessCDR(1,14798902,1,1,2) [2025-03-30 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798902', 'tblTempUsageDetail_20' ) start [2025-03-30 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798902', 'tblTempUsageDetail_20' ) end [2025-03-30 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:25:23] Production.INFO: ==9314== Releasing lock... [2025-03-30 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:25:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:26:05 [end_date_ymd] => 2025-03-30 21:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:26:05' and `end` < '2025-03-30 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-03-30 21:26:18] Production.INFO: count ==3347 [2025-03-30 21:26:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:26:05 - End Time 2025-03-30 21:26:05 [2025-03-30 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798907', 'tblTempUsageDetail_20' ) start [2025-03-30 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798907', 'tblTempUsageDetail_20' ) end [2025-03-30 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798907', 'tblTempVendorCDR_20' ) start [2025-03-30 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798907', 'tblTempVendorCDR_20' ) end [2025-03-30 21:26:20] Production.INFO: ProcessCDR(1,14798907,1,1,2) [2025-03-30 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798907', 'tblTempUsageDetail_20' ) start [2025-03-30 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798907', 'tblTempUsageDetail_20' ) end [2025-03-30 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:26:23] Production.INFO: ==9407== Releasing lock... [2025-03-30 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:26:23] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:27:05 [end_date_ymd] => 2025-03-30 21:27:05 [RateCDR] => 1 ) [2025-03-30 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:27:05' and `end` < '2025-03-30 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:27:18] Production.INFO: count ==3342 [2025-03-30 21:27:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:27:05 - End Time 2025-03-30 21:27:05 [2025-03-30 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798912', 'tblTempUsageDetail_20' ) start [2025-03-30 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798912', 'tblTempUsageDetail_20' ) end [2025-03-30 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798912', 'tblTempVendorCDR_20' ) start [2025-03-30 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798912', 'tblTempVendorCDR_20' ) end [2025-03-30 21:27:20] Production.INFO: ProcessCDR(1,14798912,1,1,2) [2025-03-30 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798912', 'tblTempUsageDetail_20' ) start [2025-03-30 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798912', 'tblTempUsageDetail_20' ) end [2025-03-30 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:27:23] Production.INFO: ==9500== Releasing lock... [2025-03-30 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:27:23] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:28:06 [end_date_ymd] => 2025-03-30 21:28:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:28:06' and `end` < '2025-03-30 21: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-03-30 21:28:19] Production.INFO: count ==3319 [2025-03-30 21:28:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:28:06 - End Time 2025-03-30 21:28:06 [2025-03-30 21:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798917', 'tblTempUsageDetail_20' ) start [2025-03-30 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798917', 'tblTempUsageDetail_20' ) end [2025-03-30 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798917', 'tblTempVendorCDR_20' ) start [2025-03-30 21:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798917', 'tblTempVendorCDR_20' ) end [2025-03-30 21:28:20] Production.INFO: ProcessCDR(1,14798917,1,1,2) [2025-03-30 21:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798917', 'tblTempUsageDetail_20' ) start [2025-03-30 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798917', 'tblTempUsageDetail_20' ) end [2025-03-30 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:28:24] Production.INFO: ==9593== Releasing lock... [2025-03-30 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:28:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:29:05 [end_date_ymd] => 2025-03-30 21:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:29:05' and `end` < '2025-03-30 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-03-30 21:29:18] Production.INFO: count ==3311 [2025-03-30 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:29:05 - End Time 2025-03-30 21:29:05 [2025-03-30 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798922', 'tblTempUsageDetail_20' ) start [2025-03-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798922', 'tblTempUsageDetail_20' ) end [2025-03-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798922', 'tblTempVendorCDR_20' ) start [2025-03-30 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798922', 'tblTempVendorCDR_20' ) end [2025-03-30 21:29:19] Production.INFO: ProcessCDR(1,14798922,1,1,2) [2025-03-30 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798922', 'tblTempUsageDetail_20' ) start [2025-03-30 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798922', 'tblTempUsageDetail_20' ) end [2025-03-30 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:29:24] Production.INFO: ==9682== Releasing lock... [2025-03-30 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:29:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:30:06 [end_date_ymd] => 2025-03-30 21:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:30:06' and `end` < '2025-03-30 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-03-30 21:30:19] Production.INFO: count ==3298 [2025-03-30 21:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:30:06 - End Time 2025-03-30 21:30:06 [2025-03-30 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798928', 'tblTempUsageDetail_20' ) start [2025-03-30 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798928', 'tblTempUsageDetail_20' ) end [2025-03-30 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798928', 'tblTempVendorCDR_20' ) start [2025-03-30 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798928', 'tblTempVendorCDR_20' ) end [2025-03-30 21:30:21] Production.INFO: ProcessCDR(1,14798928,1,1,2) [2025-03-30 21:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798928', 'tblTempUsageDetail_20' ) start [2025-03-30 21:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798928', 'tblTempUsageDetail_20' ) end [2025-03-30 21:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:30:26] Production.INFO: ==9778== Releasing lock... [2025-03-30 21:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:30:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:31:06 [end_date_ymd] => 2025-03-30 21:31:06 [RateCDR] => 1 ) [2025-03-30 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:31:06' and `end` < '2025-03-30 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:31:18] Production.INFO: count ==3294 [2025-03-30 21:31:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:31:06 - End Time 2025-03-30 21:31:06 [2025-03-30 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798933', 'tblTempUsageDetail_20' ) start [2025-03-30 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798933', 'tblTempUsageDetail_20' ) end [2025-03-30 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798933', 'tblTempVendorCDR_20' ) start [2025-03-30 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798933', 'tblTempVendorCDR_20' ) end [2025-03-30 21:31:20] Production.INFO: ProcessCDR(1,14798933,1,1,2) [2025-03-30 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798933', 'tblTempUsageDetail_20' ) start [2025-03-30 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798933', 'tblTempUsageDetail_20' ) end [2025-03-30 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:31:23] Production.INFO: ==9913== Releasing lock... [2025-03-30 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:31:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-30 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:32:06 [end_date_ymd] => 2025-03-30 21:32:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:32:06' and `end` < '2025-03-30 21: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-03-30 21:32:19] Production.INFO: count ==3309 [2025-03-30 21:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:32:06 - End Time 2025-03-30 21:32:06 [2025-03-30 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798938', 'tblTempUsageDetail_20' ) start [2025-03-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798938', 'tblTempUsageDetail_20' ) end [2025-03-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798938', 'tblTempVendorCDR_20' ) start [2025-03-30 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798938', 'tblTempVendorCDR_20' ) end [2025-03-30 21:32:20] Production.INFO: ProcessCDR(1,14798938,1,1,2) [2025-03-30 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798938', 'tblTempUsageDetail_20' ) start [2025-03-30 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798938', 'tblTempUsageDetail_20' ) end [2025-03-30 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:32:24] Production.INFO: ==10006== Releasing lock... [2025-03-30 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:32:24] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:33:05 [end_date_ymd] => 2025-03-30 21:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:33:05' and `end` < '2025-03-30 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-03-30 21:33:18] Production.INFO: count ==3276 [2025-03-30 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:33:05 - End Time 2025-03-30 21:33:05 [2025-03-30 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798943', 'tblTempUsageDetail_20' ) start [2025-03-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798943', 'tblTempUsageDetail_20' ) end [2025-03-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798943', 'tblTempVendorCDR_20' ) start [2025-03-30 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798943', 'tblTempVendorCDR_20' ) end [2025-03-30 21:33:19] Production.INFO: ProcessCDR(1,14798943,1,1,2) [2025-03-30 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798943', 'tblTempUsageDetail_20' ) start [2025-03-30 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798943', 'tblTempUsageDetail_20' ) end [2025-03-30 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:33:23] Production.INFO: ==10104== Releasing lock... [2025-03-30 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:33:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:34:05 [end_date_ymd] => 2025-03-30 21:34:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:34:05' and `end` < '2025-03-30 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-03-30 21:34:18] Production.INFO: count ==3240 [2025-03-30 21:34:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:34:05 - End Time 2025-03-30 21:34:05 [2025-03-30 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798948', 'tblTempUsageDetail_20' ) start [2025-03-30 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798948', 'tblTempUsageDetail_20' ) end [2025-03-30 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798948', 'tblTempVendorCDR_20' ) start [2025-03-30 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798948', 'tblTempVendorCDR_20' ) end [2025-03-30 21:34:20] Production.INFO: ProcessCDR(1,14798948,1,1,2) [2025-03-30 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798948', 'tblTempUsageDetail_20' ) start [2025-03-30 21:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798948', 'tblTempUsageDetail_20' ) end [2025-03-30 21:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:34:25] Production.INFO: ==10198== Releasing lock... [2025-03-30 21:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:34:25] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:35:05 [end_date_ymd] => 2025-03-30 21:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:35:05' and `end` < '2025-03-30 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-03-30 21:35:18] Production.INFO: count ==3209 [2025-03-30 21:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:35:05 - End Time 2025-03-30 21:35:05 [2025-03-30 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798953', 'tblTempUsageDetail_20' ) start [2025-03-30 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798953', 'tblTempUsageDetail_20' ) end [2025-03-30 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798953', 'tblTempVendorCDR_20' ) start [2025-03-30 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798953', 'tblTempVendorCDR_20' ) end [2025-03-30 21:35:19] Production.INFO: ProcessCDR(1,14798953,1,1,2) [2025-03-30 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798953', 'tblTempUsageDetail_20' ) start [2025-03-30 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798953', 'tblTempUsageDetail_20' ) end [2025-03-30 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:35:23] Production.INFO: ==10281== Releasing lock... [2025-03-30 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:35:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:36:05 [end_date_ymd] => 2025-03-30 21:36:05 [RateCDR] => 1 ) [2025-03-30 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:36:05' and `end` < '2025-03-30 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:36:18] Production.INFO: count ==3208 [2025-03-30 21:36:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:36:05 - End Time 2025-03-30 21:36:05 [2025-03-30 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798958', 'tblTempUsageDetail_20' ) start [2025-03-30 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798958', 'tblTempUsageDetail_20' ) end [2025-03-30 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798958', 'tblTempVendorCDR_20' ) start [2025-03-30 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798958', 'tblTempVendorCDR_20' ) end [2025-03-30 21:36:20] Production.INFO: ProcessCDR(1,14798958,1,1,2) [2025-03-30 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798958', 'tblTempUsageDetail_20' ) start [2025-03-30 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798958', 'tblTempUsageDetail_20' ) end [2025-03-30 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:36:24] Production.INFO: ==10360== Releasing lock... [2025-03-30 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:36:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-30 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:37:05 [end_date_ymd] => 2025-03-30 21:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:37:05' and `end` < '2025-03-30 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-03-30 21:37:17] Production.INFO: count ==3272 [2025-03-30 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:37:05 - End Time 2025-03-30 21:37:05 [2025-03-30 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798963', 'tblTempUsageDetail_20' ) start [2025-03-30 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798963', 'tblTempUsageDetail_20' ) end [2025-03-30 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798963', 'tblTempVendorCDR_20' ) start [2025-03-30 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798963', 'tblTempVendorCDR_20' ) end [2025-03-30 21:37:19] Production.INFO: ProcessCDR(1,14798963,1,1,2) [2025-03-30 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798963', 'tblTempUsageDetail_20' ) start [2025-03-30 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798963', 'tblTempUsageDetail_20' ) end [2025-03-30 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:37:23] Production.INFO: ==10432== Releasing lock... [2025-03-30 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:37:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:38:05 [end_date_ymd] => 2025-03-30 21:38:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:38:05' and `end` < '2025-03-30 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-03-30 21:38:18] Production.INFO: count ==3276 [2025-03-30 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:38:05 - End Time 2025-03-30 21:38:05 [2025-03-30 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798968', 'tblTempUsageDetail_20' ) start [2025-03-30 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798968', 'tblTempUsageDetail_20' ) end [2025-03-30 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798968', 'tblTempVendorCDR_20' ) start [2025-03-30 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798968', 'tblTempVendorCDR_20' ) end [2025-03-30 21:38:20] Production.INFO: ProcessCDR(1,14798968,1,1,2) [2025-03-30 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798968', 'tblTempUsageDetail_20' ) start [2025-03-30 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798968', 'tblTempUsageDetail_20' ) end [2025-03-30 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:38:23] Production.INFO: ==10505== Releasing lock... [2025-03-30 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:38:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:39:05 [end_date_ymd] => 2025-03-30 21:39:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:39:05' and `end` < '2025-03-30 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-03-30 21:39:18] Production.INFO: count ==3286 [2025-03-30 21:39:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:39:05 - End Time 2025-03-30 21:39:05 [2025-03-30 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798973', 'tblTempUsageDetail_20' ) start [2025-03-30 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798973', 'tblTempUsageDetail_20' ) end [2025-03-30 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798973', 'tblTempVendorCDR_20' ) start [2025-03-30 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798973', 'tblTempVendorCDR_20' ) end [2025-03-30 21:39:20] Production.INFO: ProcessCDR(1,14798973,1,1,2) [2025-03-30 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798973', 'tblTempUsageDetail_20' ) start [2025-03-30 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798973', 'tblTempUsageDetail_20' ) end [2025-03-30 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:39:23] Production.INFO: ==10578== Releasing lock... [2025-03-30 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:39:23] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:40:06 [end_date_ymd] => 2025-03-30 21:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:40:06' and `end` < '2025-03-30 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-03-30 21:40:19] Production.INFO: count ==3275 [2025-03-30 21:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:40:06 - End Time 2025-03-30 21:40:06 [2025-03-30 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798979', 'tblTempUsageDetail_20' ) start [2025-03-30 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798979', 'tblTempUsageDetail_20' ) end [2025-03-30 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798979', 'tblTempVendorCDR_20' ) start [2025-03-30 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798979', 'tblTempVendorCDR_20' ) end [2025-03-30 21:40:20] Production.INFO: ProcessCDR(1,14798979,1,1,2) [2025-03-30 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798979', 'tblTempUsageDetail_20' ) start [2025-03-30 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798979', 'tblTempUsageDetail_20' ) end [2025-03-30 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:40:24] Production.INFO: ==10656== Releasing lock... [2025-03-30 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:40:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:41:06 [end_date_ymd] => 2025-03-30 21:41:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:41:06' and `end` < '2025-03-30 21: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-03-30 21:41:18] Production.INFO: count ==3266 [2025-03-30 21:41:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:41:06 - End Time 2025-03-30 21:41:06 [2025-03-30 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798984', 'tblTempUsageDetail_20' ) start [2025-03-30 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798984', 'tblTempUsageDetail_20' ) end [2025-03-30 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798984', 'tblTempVendorCDR_20' ) start [2025-03-30 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798984', 'tblTempVendorCDR_20' ) end [2025-03-30 21:41:20] Production.INFO: ProcessCDR(1,14798984,1,1,2) [2025-03-30 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798984', 'tblTempUsageDetail_20' ) start [2025-03-30 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798984', 'tblTempUsageDetail_20' ) end [2025-03-30 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:41:23] Production.INFO: ==10735== Releasing lock... [2025-03-30 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:41:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:42:05 [end_date_ymd] => 2025-03-30 21:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:42:05' and `end` < '2025-03-30 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-03-30 21:42:18] Production.INFO: count ==3274 [2025-03-30 21:42:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:42:05 - End Time 2025-03-30 21:42:05 [2025-03-30 21:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798989', 'tblTempUsageDetail_20' ) start [2025-03-30 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798989', 'tblTempUsageDetail_20' ) end [2025-03-30 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798989', 'tblTempVendorCDR_20' ) start [2025-03-30 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798989', 'tblTempVendorCDR_20' ) end [2025-03-30 21:42:20] Production.INFO: ProcessCDR(1,14798989,1,1,2) [2025-03-30 21:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798989', 'tblTempUsageDetail_20' ) start [2025-03-30 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798989', 'tblTempUsageDetail_20' ) end [2025-03-30 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:42:23] Production.INFO: ==10807== Releasing lock... [2025-03-30 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:42:23] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:43:06 [end_date_ymd] => 2025-03-30 21:43:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:43:06' and `end` < '2025-03-30 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-03-30 21:43:19] Production.INFO: count ==3271 [2025-03-30 21:43:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:43:06 - End Time 2025-03-30 21:43:06 [2025-03-30 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798994', 'tblTempUsageDetail_20' ) start [2025-03-30 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798994', 'tblTempUsageDetail_20' ) end [2025-03-30 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798994', 'tblTempVendorCDR_20' ) start [2025-03-30 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798994', 'tblTempVendorCDR_20' ) end [2025-03-30 21:43:20] Production.INFO: ProcessCDR(1,14798994,1,1,2) [2025-03-30 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798994', 'tblTempUsageDetail_20' ) start [2025-03-30 21:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798994', 'tblTempUsageDetail_20' ) end [2025-03-30 21:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:43:25] Production.INFO: ==10889== Releasing lock... [2025-03-30 21:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:43:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:44:05 [end_date_ymd] => 2025-03-30 21:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:44:05' and `end` < '2025-03-30 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-03-30 21:44:18] Production.INFO: count ==3273 [2025-03-30 21:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:44:05 - End Time 2025-03-30 21:44:05 [2025-03-30 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798999', 'tblTempUsageDetail_20' ) start [2025-03-30 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14798999', 'tblTempUsageDetail_20' ) end [2025-03-30 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798999', 'tblTempVendorCDR_20' ) start [2025-03-30 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14798999', 'tblTempVendorCDR_20' ) end [2025-03-30 21:44:19] Production.INFO: ProcessCDR(1,14798999,1,1,2) [2025-03-30 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14798999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14798999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14798999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14798999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798999', 'tblTempUsageDetail_20' ) start [2025-03-30 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14798999', 'tblTempUsageDetail_20' ) end [2025-03-30 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:44:23] Production.INFO: ==10961== Releasing lock... [2025-03-30 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:44:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:45:06 [end_date_ymd] => 2025-03-30 21:45:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:45:06' and `end` < '2025-03-30 21: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-03-30 21:45:19] Production.INFO: count ==3273 [2025-03-30 21:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:45:06 - End Time 2025-03-30 21:45:06 [2025-03-30 21:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799004', 'tblTempUsageDetail_20' ) start [2025-03-30 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799004', 'tblTempUsageDetail_20' ) end [2025-03-30 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799004', 'tblTempVendorCDR_20' ) start [2025-03-30 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799004', 'tblTempVendorCDR_20' ) end [2025-03-30 21:45:20] Production.INFO: ProcessCDR(1,14799004,1,1,2) [2025-03-30 21:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799004', 'tblTempUsageDetail_20' ) start [2025-03-30 21:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799004', 'tblTempUsageDetail_20' ) end [2025-03-30 21:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:45:25] Production.INFO: ==11033== Releasing lock... [2025-03-30 21:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:45:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-30 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:46:05 [end_date_ymd] => 2025-03-30 21:46:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:46:05' and `end` < '2025-03-30 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-03-30 21:46:18] Production.INFO: count ==3260 [2025-03-30 21:46:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:46:05 - End Time 2025-03-30 21:46:05 [2025-03-30 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799009', 'tblTempUsageDetail_20' ) start [2025-03-30 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799009', 'tblTempUsageDetail_20' ) end [2025-03-30 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799009', 'tblTempVendorCDR_20' ) start [2025-03-30 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799009', 'tblTempVendorCDR_20' ) end [2025-03-30 21:46:20] Production.INFO: ProcessCDR(1,14799009,1,1,2) [2025-03-30 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799009', 'tblTempUsageDetail_20' ) start [2025-03-30 21:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799009', 'tblTempUsageDetail_20' ) end [2025-03-30 21:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:46:25] Production.INFO: ==11145== Releasing lock... [2025-03-30 21:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:46:25] Production.INFO: 53 MB #Memory Used# [2025-03-30 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:47:06 [end_date_ymd] => 2025-03-30 21:47:06 [RateCDR] => 1 ) [2025-03-30 21: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-03-30 18:47:06' and `end` < '2025-03-30 21: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-03-30 21:47:19] Production.INFO: count ==3262 [2025-03-30 21:47:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:47:06 - End Time 2025-03-30 21:47:06 [2025-03-30 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799014', 'tblTempUsageDetail_20' ) start [2025-03-30 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799014', 'tblTempUsageDetail_20' ) end [2025-03-30 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799014', 'tblTempVendorCDR_20' ) start [2025-03-30 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799014', 'tblTempVendorCDR_20' ) end [2025-03-30 21:47:20] Production.INFO: ProcessCDR(1,14799014,1,1,2) [2025-03-30 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799014', 'tblTempUsageDetail_20' ) start [2025-03-30 21:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799014', 'tblTempUsageDetail_20' ) end [2025-03-30 21:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:47:24] Production.INFO: ==11218== Releasing lock... [2025-03-30 21:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:47:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:48:05 [end_date_ymd] => 2025-03-30 21:48:05 [RateCDR] => 1 ) [2025-03-30 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:48:05' and `end` < '2025-03-30 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:48:17] Production.INFO: count ==3253 [2025-03-30 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:48:05 - End Time 2025-03-30 21:48:05 [2025-03-30 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799016', 'tblTempUsageDetail_20' ) start [2025-03-30 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799016', 'tblTempUsageDetail_20' ) end [2025-03-30 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799016', 'tblTempVendorCDR_20' ) start [2025-03-30 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799016', 'tblTempVendorCDR_20' ) end [2025-03-30 21:48:19] Production.INFO: ProcessCDR(1,14799016,1,1,2) [2025-03-30 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799016', 'tblTempUsageDetail_20' ) start [2025-03-30 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799016', 'tblTempUsageDetail_20' ) end [2025-03-30 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:48:24] Production.INFO: ==11288== Releasing lock... [2025-03-30 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:48:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-30 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:49:06 [end_date_ymd] => 2025-03-30 21:49:06 [RateCDR] => 1 ) [2025-03-30 21:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:49:06' and `end` < '2025-03-30 21:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:49:18] Production.INFO: count ==3248 [2025-03-30 21:49:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:49:06 - End Time 2025-03-30 21:49:06 [2025-03-30 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799024', 'tblTempUsageDetail_20' ) start [2025-03-30 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799024', 'tblTempUsageDetail_20' ) end [2025-03-30 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799024', 'tblTempVendorCDR_20' ) start [2025-03-30 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799024', 'tblTempVendorCDR_20' ) end [2025-03-30 21:49:20] Production.INFO: ProcessCDR(1,14799024,1,1,2) [2025-03-30 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799024', 'tblTempUsageDetail_20' ) start [2025-03-30 21:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799024', 'tblTempUsageDetail_20' ) end [2025-03-30 21:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:49:25] Production.INFO: ==11364== Releasing lock... [2025-03-30 21:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:49:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-30 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:50:05 [end_date_ymd] => 2025-03-30 21:50:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:50:05' and `end` < '2025-03-30 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-03-30 21:50:18] Production.INFO: count ==3252 [2025-03-30 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:50:05 - End Time 2025-03-30 21:50:05 [2025-03-30 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799030', 'tblTempUsageDetail_20' ) start [2025-03-30 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799030', 'tblTempUsageDetail_20' ) end [2025-03-30 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799030', 'tblTempVendorCDR_20' ) start [2025-03-30 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799030', 'tblTempVendorCDR_20' ) end [2025-03-30 21:50:20] Production.INFO: ProcessCDR(1,14799030,1,1,2) [2025-03-30 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799030', 'tblTempUsageDetail_20' ) start [2025-03-30 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799030', 'tblTempUsageDetail_20' ) end [2025-03-30 21:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:50:25] Production.INFO: ==11440== Releasing lock... [2025-03-30 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:50:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:51:05 [end_date_ymd] => 2025-03-30 21:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:51:05' and `end` < '2025-03-30 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-03-30 21:51:18] Production.INFO: count ==3245 [2025-03-30 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:51:05 - End Time 2025-03-30 21:51:05 [2025-03-30 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799035', 'tblTempUsageDetail_20' ) start [2025-03-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799035', 'tblTempUsageDetail_20' ) end [2025-03-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799035', 'tblTempVendorCDR_20' ) start [2025-03-30 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799035', 'tblTempVendorCDR_20' ) end [2025-03-30 21:51:19] Production.INFO: ProcessCDR(1,14799035,1,1,2) [2025-03-30 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799035', 'tblTempUsageDetail_20' ) start [2025-03-30 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799035', 'tblTempUsageDetail_20' ) end [2025-03-30 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:51:24] Production.INFO: ==11513== Releasing lock... [2025-03-30 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:51:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-30 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:52:06 [end_date_ymd] => 2025-03-30 21:52:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:52:06' and `end` < '2025-03-30 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-03-30 21:52:19] Production.INFO: count ==3198 [2025-03-30 21:52:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:52:06 - End Time 2025-03-30 21:52:06 [2025-03-30 21:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799040', 'tblTempUsageDetail_20' ) start [2025-03-30 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799040', 'tblTempUsageDetail_20' ) end [2025-03-30 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799040', 'tblTempVendorCDR_20' ) start [2025-03-30 21:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799040', 'tblTempVendorCDR_20' ) end [2025-03-30 21:52:20] Production.INFO: ProcessCDR(1,14799040,1,1,2) [2025-03-30 21:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799040', 'tblTempUsageDetail_20' ) start [2025-03-30 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799040', 'tblTempUsageDetail_20' ) end [2025-03-30 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:52:24] Production.INFO: ==11592== Releasing lock... [2025-03-30 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:52:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-30 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:53:05 [end_date_ymd] => 2025-03-30 21:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:53:05' and `end` < '2025-03-30 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-03-30 21:53:18] Production.INFO: count ==3163 [2025-03-30 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:53:05 - End Time 2025-03-30 21:53:05 [2025-03-30 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799045', 'tblTempUsageDetail_20' ) start [2025-03-30 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799045', 'tblTempUsageDetail_20' ) end [2025-03-30 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799045', 'tblTempVendorCDR_20' ) start [2025-03-30 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799045', 'tblTempVendorCDR_20' ) end [2025-03-30 21:53:19] Production.INFO: ProcessCDR(1,14799045,1,1,2) [2025-03-30 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799045', 'tblTempUsageDetail_20' ) start [2025-03-30 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799045', 'tblTempUsageDetail_20' ) end [2025-03-30 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:53:23] Production.INFO: ==11667== Releasing lock... [2025-03-30 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:53:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-30 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:54:06 [end_date_ymd] => 2025-03-30 21:54:06 [RateCDR] => 1 ) [2025-03-30 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:54:06' and `end` < '2025-03-30 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:54:18] Production.INFO: count ==3134 [2025-03-30 21:54:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:54:06 - End Time 2025-03-30 21:54:06 [2025-03-30 21:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799050', 'tblTempUsageDetail_20' ) start [2025-03-30 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799050', 'tblTempUsageDetail_20' ) end [2025-03-30 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799050', 'tblTempVendorCDR_20' ) start [2025-03-30 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799050', 'tblTempVendorCDR_20' ) end [2025-03-30 21:54:20] Production.INFO: ProcessCDR(1,14799050,1,1,2) [2025-03-30 21:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799050', 'tblTempUsageDetail_20' ) start [2025-03-30 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799050', 'tblTempUsageDetail_20' ) end [2025-03-30 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:54:23] Production.INFO: ==11739== Releasing lock... [2025-03-30 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:54:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-30 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:55:05 [end_date_ymd] => 2025-03-30 21:55:05 [RateCDR] => 1 ) [2025-03-30 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:55:05' and `end` < '2025-03-30 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:55:18] Production.INFO: count ==3133 [2025-03-30 21:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:55:05 - End Time 2025-03-30 21:55:05 [2025-03-30 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799055', 'tblTempUsageDetail_20' ) start [2025-03-30 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799055', 'tblTempUsageDetail_20' ) end [2025-03-30 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799055', 'tblTempVendorCDR_20' ) start [2025-03-30 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799055', 'tblTempVendorCDR_20' ) end [2025-03-30 21:55:19] Production.INFO: ProcessCDR(1,14799055,1,1,2) [2025-03-30 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799055', 'tblTempUsageDetail_20' ) start [2025-03-30 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799055', 'tblTempUsageDetail_20' ) end [2025-03-30 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:55:23] Production.INFO: ==11810== Releasing lock... [2025-03-30 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:55:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-30 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:56:06 [end_date_ymd] => 2025-03-30 21:56:06 [RateCDR] => 1 ) [2025-03-30 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:56:06' and `end` < '2025-03-30 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:56:19] Production.INFO: count ==3058 [2025-03-30 21:56:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:56:06 - End Time 2025-03-30 21:56:06 [2025-03-30 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799060', 'tblTempUsageDetail_20' ) start [2025-03-30 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799060', 'tblTempUsageDetail_20' ) end [2025-03-30 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799060', 'tblTempVendorCDR_20' ) start [2025-03-30 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799060', 'tblTempVendorCDR_20' ) end [2025-03-30 21:56:20] Production.INFO: ProcessCDR(1,14799060,1,1,2) [2025-03-30 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799060', 'tblTempUsageDetail_20' ) start [2025-03-30 21:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799060', 'tblTempUsageDetail_20' ) end [2025-03-30 21:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:56:25] Production.INFO: ==11883== Releasing lock... [2025-03-30 21:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:56:25] Production.INFO: 52 MB #Memory Used# [2025-03-30 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:57:05 [end_date_ymd] => 2025-03-30 21:57:05 [RateCDR] => 1 ) [2025-03-30 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 18:57:05' and `end` < '2025-03-30 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 21:57:18] Production.INFO: count ==2999 [2025-03-30 21:57:20] Production.ERROR: pbx CDR StartTime 2025-03-30 18:57:05 - End Time 2025-03-30 21:57:05 [2025-03-30 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799065', 'tblTempUsageDetail_20' ) start [2025-03-30 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799065', 'tblTempUsageDetail_20' ) end [2025-03-30 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799065', 'tblTempVendorCDR_20' ) start [2025-03-30 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799065', 'tblTempVendorCDR_20' ) end [2025-03-30 21:57:20] Production.INFO: ProcessCDR(1,14799065,1,1,2) [2025-03-30 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799065', 'tblTempUsageDetail_20' ) start [2025-03-30 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799065', 'tblTempUsageDetail_20' ) end [2025-03-30 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:57:23] Production.INFO: ==11953== Releasing lock... [2025-03-30 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:57:23] Production.INFO: 50.25 MB #Memory Used# [2025-03-30 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:58:05 [end_date_ymd] => 2025-03-30 21:58:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:58:05' and `end` < '2025-03-30 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-03-30 21:58:18] Production.INFO: count ==2989 [2025-03-30 21:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:58:05 - End Time 2025-03-30 21:58:05 [2025-03-30 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799070', 'tblTempUsageDetail_20' ) start [2025-03-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799070', 'tblTempUsageDetail_20' ) end [2025-03-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799070', 'tblTempVendorCDR_20' ) start [2025-03-30 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799070', 'tblTempVendorCDR_20' ) end [2025-03-30 21:58:19] Production.INFO: ProcessCDR(1,14799070,1,1,2) [2025-03-30 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799070', 'tblTempUsageDetail_20' ) start [2025-03-30 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799070', 'tblTempUsageDetail_20' ) end [2025-03-30 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:58:23] Production.INFO: ==12026== Releasing lock... [2025-03-30 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:58:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-30 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 18:59:05 [end_date_ymd] => 2025-03-30 21:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 18:59:05' and `end` < '2025-03-30 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-03-30 21:59:18] Production.INFO: count ==2968 [2025-03-30 21:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 18:59:05 - End Time 2025-03-30 21:59:05 [2025-03-30 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799075', 'tblTempUsageDetail_20' ) start [2025-03-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799075', 'tblTempUsageDetail_20' ) end [2025-03-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799075', 'tblTempVendorCDR_20' ) start [2025-03-30 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799075', 'tblTempVendorCDR_20' ) end [2025-03-30 21:59:19] Production.INFO: ProcessCDR(1,14799075,1,1,2) [2025-03-30 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799075', 'tblTempUsageDetail_20' ) start [2025-03-30 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799075', 'tblTempUsageDetail_20' ) end [2025-03-30 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 21:59:23] Production.INFO: ==12099== Releasing lock... [2025-03-30 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 21:59:23] Production.INFO: 50 MB #Memory Used# [2025-03-30 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:00:06 [end_date_ymd] => 2025-03-30 22:00:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:00:06' and `end` < '2025-03-30 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-03-30 22:00:19] Production.INFO: count ==2936 [2025-03-30 22:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:00:06 - End Time 2025-03-30 22:00:06 [2025-03-30 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799080', 'tblTempUsageDetail_20' ) start [2025-03-30 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799080', 'tblTempUsageDetail_20' ) end [2025-03-30 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799080', 'tblTempVendorCDR_20' ) start [2025-03-30 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799080', 'tblTempVendorCDR_20' ) end [2025-03-30 22:00:20] Production.INFO: ProcessCDR(1,14799080,1,1,2) [2025-03-30 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799080', 'tblTempUsageDetail_20' ) start [2025-03-30 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799080', 'tblTempUsageDetail_20' ) end [2025-03-30 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:00:23] Production.INFO: ==12174== Releasing lock... [2025-03-30 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:00:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-30 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:01:05 [end_date_ymd] => 2025-03-30 22:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:01:05' and `end` < '2025-03-30 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-03-30 22:01:18] Production.INFO: count ==2952 [2025-03-30 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:01:05 - End Time 2025-03-30 22:01:05 [2025-03-30 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799086', 'tblTempUsageDetail_20' ) start [2025-03-30 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799086', 'tblTempUsageDetail_20' ) end [2025-03-30 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799086', 'tblTempVendorCDR_20' ) start [2025-03-30 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799086', 'tblTempVendorCDR_20' ) end [2025-03-30 22:01:19] Production.INFO: ProcessCDR(1,14799086,1,1,2) [2025-03-30 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799086', 'tblTempUsageDetail_20' ) start [2025-03-30 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799086', 'tblTempUsageDetail_20' ) end [2025-03-30 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:01:24] Production.INFO: ==12263== Releasing lock... [2025-03-30 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:01:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-30 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:02:06 [end_date_ymd] => 2025-03-30 22:02:06 [RateCDR] => 1 ) [2025-03-30 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:02:06' and `end` < '2025-03-30 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:02:19] Production.INFO: count ==2925 [2025-03-30 22:02:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:02:06 - End Time 2025-03-30 22:02:06 [2025-03-30 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799091', 'tblTempUsageDetail_20' ) start [2025-03-30 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799091', 'tblTempUsageDetail_20' ) end [2025-03-30 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799091', 'tblTempVendorCDR_20' ) start [2025-03-30 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799091', 'tblTempVendorCDR_20' ) end [2025-03-30 22:02:20] Production.INFO: ProcessCDR(1,14799091,1,1,2) [2025-03-30 22:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799091', 'tblTempUsageDetail_20' ) start [2025-03-30 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799091', 'tblTempUsageDetail_20' ) end [2025-03-30 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:02:24] Production.INFO: ==12376== Releasing lock... [2025-03-30 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:02:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-30 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:03:05 [end_date_ymd] => 2025-03-30 22:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:03:05' and `end` < '2025-03-30 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-03-30 22:03:18] Production.INFO: count ==2866 [2025-03-30 22:03:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:03:05 - End Time 2025-03-30 22:03:05 [2025-03-30 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799096', 'tblTempUsageDetail_20' ) start [2025-03-30 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799096', 'tblTempUsageDetail_20' ) end [2025-03-30 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799096', 'tblTempVendorCDR_20' ) start [2025-03-30 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799096', 'tblTempVendorCDR_20' ) end [2025-03-30 22:03:19] Production.INFO: ProcessCDR(1,14799096,1,1,2) [2025-03-30 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799096', 'tblTempUsageDetail_20' ) start [2025-03-30 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799096', 'tblTempUsageDetail_20' ) end [2025-03-30 22:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:03:24] Production.INFO: ==12451== Releasing lock... [2025-03-30 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:03:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-30 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:04:06 [end_date_ymd] => 2025-03-30 22:04:06 [RateCDR] => 1 ) [2025-03-30 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:04:06' and `end` < '2025-03-30 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:04:18] Production.INFO: count ==2797 [2025-03-30 22:04:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:04:06 - End Time 2025-03-30 22:04:06 [2025-03-30 22:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799101', 'tblTempUsageDetail_20' ) start [2025-03-30 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799101', 'tblTempUsageDetail_20' ) end [2025-03-30 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799101', 'tblTempVendorCDR_20' ) start [2025-03-30 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799101', 'tblTempVendorCDR_20' ) end [2025-03-30 22:04:20] Production.INFO: ProcessCDR(1,14799101,1,1,2) [2025-03-30 22:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799101', 'tblTempUsageDetail_20' ) start [2025-03-30 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799101', 'tblTempUsageDetail_20' ) end [2025-03-30 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:04:23] Production.INFO: ==12525== Releasing lock... [2025-03-30 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:04:23] Production.INFO: 49 MB #Memory Used# [2025-03-30 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:05:05 [end_date_ymd] => 2025-03-30 22:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:05:05' and `end` < '2025-03-30 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-03-30 22:05:18] Production.INFO: count ==2785 [2025-03-30 22:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:05:05 - End Time 2025-03-30 22:05:05 [2025-03-30 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799106', 'tblTempUsageDetail_20' ) start [2025-03-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799106', 'tblTempUsageDetail_20' ) end [2025-03-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799106', 'tblTempVendorCDR_20' ) start [2025-03-30 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799106', 'tblTempVendorCDR_20' ) end [2025-03-30 22:05:19] Production.INFO: ProcessCDR(1,14799106,1,1,2) [2025-03-30 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799106', 'tblTempUsageDetail_20' ) start [2025-03-30 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799106', 'tblTempUsageDetail_20' ) end [2025-03-30 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:05:22] Production.INFO: ==12597== Releasing lock... [2025-03-30 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:05:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:06:06 [end_date_ymd] => 2025-03-30 22:06:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:06:06' and `end` < '2025-03-30 22: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-03-30 22:06:18] Production.INFO: count ==2754 [2025-03-30 22:06:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:06:06 - End Time 2025-03-30 22:06:06 [2025-03-30 22:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799111', 'tblTempUsageDetail_20' ) start [2025-03-30 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799111', 'tblTempUsageDetail_20' ) end [2025-03-30 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799111', 'tblTempVendorCDR_20' ) start [2025-03-30 22:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799111', 'tblTempVendorCDR_20' ) end [2025-03-30 22:06:20] Production.INFO: ProcessCDR(1,14799111,1,1,2) [2025-03-30 22:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799111', 'tblTempUsageDetail_20' ) start [2025-03-30 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799111', 'tblTempUsageDetail_20' ) end [2025-03-30 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:06:23] Production.INFO: ==12668== Releasing lock... [2025-03-30 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:06:23] Production.INFO: 49 MB #Memory Used# [2025-03-30 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:07:05 [end_date_ymd] => 2025-03-30 22:07:05 [RateCDR] => 1 ) [2025-03-30 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:07:05' and `end` < '2025-03-30 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:07:18] Production.INFO: count ==2748 [2025-03-30 22:07:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:07:05 - End Time 2025-03-30 22:07:05 [2025-03-30 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799116', 'tblTempUsageDetail_20' ) start [2025-03-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799116', 'tblTempUsageDetail_20' ) end [2025-03-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799116', 'tblTempVendorCDR_20' ) start [2025-03-30 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799116', 'tblTempVendorCDR_20' ) end [2025-03-30 22:07:19] Production.INFO: ProcessCDR(1,14799116,1,1,2) [2025-03-30 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799116', 'tblTempUsageDetail_20' ) start [2025-03-30 22:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799116', 'tblTempUsageDetail_20' ) end [2025-03-30 22:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:07:24] Production.INFO: ==12740== Releasing lock... [2025-03-30 22:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:07:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-30 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:08:06 [end_date_ymd] => 2025-03-30 22:08:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:08:06' and `end` < '2025-03-30 22: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-03-30 22:08:18] Production.INFO: count ==2749 [2025-03-30 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:08:06 - End Time 2025-03-30 22:08:06 [2025-03-30 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799121', 'tblTempUsageDetail_20' ) start [2025-03-30 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799121', 'tblTempUsageDetail_20' ) end [2025-03-30 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799121', 'tblTempVendorCDR_20' ) start [2025-03-30 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799121', 'tblTempVendorCDR_20' ) end [2025-03-30 22:08:20] Production.INFO: ProcessCDR(1,14799121,1,1,2) [2025-03-30 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799121', 'tblTempUsageDetail_20' ) start [2025-03-30 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799121', 'tblTempUsageDetail_20' ) end [2025-03-30 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:08:23] Production.INFO: ==12813== Releasing lock... [2025-03-30 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:08:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:09:06 [end_date_ymd] => 2025-03-30 22:09:06 [RateCDR] => 1 ) [2025-03-30 22:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:09:06' and `end` < '2025-03-30 22:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:09:18] Production.INFO: count ==2748 [2025-03-30 22:09:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:09:06 - End Time 2025-03-30 22:09:06 [2025-03-30 22:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799126', 'tblTempUsageDetail_20' ) start [2025-03-30 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799126', 'tblTempUsageDetail_20' ) end [2025-03-30 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799126', 'tblTempVendorCDR_20' ) start [2025-03-30 22:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799126', 'tblTempVendorCDR_20' ) end [2025-03-30 22:09:20] Production.INFO: ProcessCDR(1,14799126,1,1,2) [2025-03-30 22:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799126', 'tblTempUsageDetail_20' ) start [2025-03-30 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799126', 'tblTempUsageDetail_20' ) end [2025-03-30 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:09:23] Production.INFO: ==12892== Releasing lock... [2025-03-30 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:09:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-30 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:10:06 [end_date_ymd] => 2025-03-30 22:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:10:06' and `end` < '2025-03-30 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-03-30 22:10:19] Production.INFO: count ==2835 [2025-03-30 22:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:10:06 - End Time 2025-03-30 22:10:06 [2025-03-30 22:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799132', 'tblTempUsageDetail_20' ) start [2025-03-30 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799132', 'tblTempUsageDetail_20' ) end [2025-03-30 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799132', 'tblTempVendorCDR_20' ) start [2025-03-30 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799132', 'tblTempVendorCDR_20' ) end [2025-03-30 22:10:20] Production.INFO: ProcessCDR(1,14799132,1,1,2) [2025-03-30 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799132', 'tblTempUsageDetail_20' ) start [2025-03-30 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799132', 'tblTempUsageDetail_20' ) end [2025-03-30 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:10:24] Production.INFO: ==12965== Releasing lock... [2025-03-30 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:10:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-30 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:11:05 [end_date_ymd] => 2025-03-30 22:11:05 [RateCDR] => 1 ) [2025-03-30 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:11:05' and `end` < '2025-03-30 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:11:18] Production.INFO: count ==2810 [2025-03-30 22:11:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:11:05 - End Time 2025-03-30 22:11:05 [2025-03-30 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799137', 'tblTempUsageDetail_20' ) start [2025-03-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799137', 'tblTempUsageDetail_20' ) end [2025-03-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799137', 'tblTempVendorCDR_20' ) start [2025-03-30 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799137', 'tblTempVendorCDR_20' ) end [2025-03-30 22:11:19] Production.INFO: ProcessCDR(1,14799137,1,1,2) [2025-03-30 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799137', 'tblTempUsageDetail_20' ) start [2025-03-30 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799137', 'tblTempUsageDetail_20' ) end [2025-03-30 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:11:23] Production.INFO: ==13043== Releasing lock... [2025-03-30 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:11:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:12:05 [end_date_ymd] => 2025-03-30 22:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:12:05' and `end` < '2025-03-30 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-03-30 22:12:18] Production.INFO: count ==2794 [2025-03-30 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:12:05 - End Time 2025-03-30 22:12:05 [2025-03-30 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799142', 'tblTempUsageDetail_20' ) start [2025-03-30 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799142', 'tblTempUsageDetail_20' ) end [2025-03-30 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799142', 'tblTempVendorCDR_20' ) start [2025-03-30 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799142', 'tblTempVendorCDR_20' ) end [2025-03-30 22:12:19] Production.INFO: ProcessCDR(1,14799142,1,1,2) [2025-03-30 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799142', 'tblTempUsageDetail_20' ) start [2025-03-30 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799142', 'tblTempUsageDetail_20' ) end [2025-03-30 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:12:23] Production.INFO: ==13122== Releasing lock... [2025-03-30 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:12:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:13:06 [end_date_ymd] => 2025-03-30 22:13:06 [RateCDR] => 1 ) [2025-03-30 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:13:06' and `end` < '2025-03-30 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:13:18] Production.INFO: count ==2790 [2025-03-30 22:13:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:13:06 - End Time 2025-03-30 22:13:06 [2025-03-30 22:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799147', 'tblTempUsageDetail_20' ) start [2025-03-30 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799147', 'tblTempUsageDetail_20' ) end [2025-03-30 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799147', 'tblTempVendorCDR_20' ) start [2025-03-30 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799147', 'tblTempVendorCDR_20' ) end [2025-03-30 22:13:20] Production.INFO: ProcessCDR(1,14799147,1,1,2) [2025-03-30 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799147', 'tblTempUsageDetail_20' ) start [2025-03-30 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799147', 'tblTempUsageDetail_20' ) end [2025-03-30 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:13:23] Production.INFO: ==13195== Releasing lock... [2025-03-30 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:13:23] Production.INFO: 49 MB #Memory Used# [2025-03-30 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:14:05 [end_date_ymd] => 2025-03-30 22:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:14:05' and `end` < '2025-03-30 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-03-30 22:14:18] Production.INFO: count ==2762 [2025-03-30 22:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:14:05 - End Time 2025-03-30 22:14:05 [2025-03-30 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799152', 'tblTempUsageDetail_20' ) start [2025-03-30 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799152', 'tblTempUsageDetail_20' ) end [2025-03-30 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799152', 'tblTempVendorCDR_20' ) start [2025-03-30 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799152', 'tblTempVendorCDR_20' ) end [2025-03-30 22:14:19] Production.INFO: ProcessCDR(1,14799152,1,1,2) [2025-03-30 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799152', 'tblTempUsageDetail_20' ) start [2025-03-30 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799152', 'tblTempUsageDetail_20' ) end [2025-03-30 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:14:23] Production.INFO: ==13267== Releasing lock... [2025-03-30 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:14:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:15:05 [end_date_ymd] => 2025-03-30 22:15:05 [RateCDR] => 1 ) [2025-03-30 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:15:05' and `end` < '2025-03-30 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:15:18] Production.INFO: count ==2771 [2025-03-30 22:15:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:15:05 - End Time 2025-03-30 22:15:05 [2025-03-30 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799157', 'tblTempUsageDetail_20' ) start [2025-03-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799157', 'tblTempUsageDetail_20' ) end [2025-03-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799157', 'tblTempVendorCDR_20' ) start [2025-03-30 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799157', 'tblTempVendorCDR_20' ) end [2025-03-30 22:15:19] Production.INFO: ProcessCDR(1,14799157,1,1,2) [2025-03-30 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799157', 'tblTempUsageDetail_20' ) start [2025-03-30 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799157', 'tblTempUsageDetail_20' ) end [2025-03-30 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:15:23] Production.INFO: ==13341== Releasing lock... [2025-03-30 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:15:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:16:05 [end_date_ymd] => 2025-03-30 22:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:16:05' and `end` < '2025-03-30 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-03-30 22:16:18] Production.INFO: count ==2751 [2025-03-30 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:16:05 - End Time 2025-03-30 22:16:05 [2025-03-30 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799162', 'tblTempUsageDetail_20' ) start [2025-03-30 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799162', 'tblTempUsageDetail_20' ) end [2025-03-30 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799162', 'tblTempVendorCDR_20' ) start [2025-03-30 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799162', 'tblTempVendorCDR_20' ) end [2025-03-30 22:16:19] Production.INFO: ProcessCDR(1,14799162,1,1,2) [2025-03-30 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799162', 'tblTempUsageDetail_20' ) start [2025-03-30 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799162', 'tblTempUsageDetail_20' ) end [2025-03-30 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:16:22] Production.INFO: ==13413== Releasing lock... [2025-03-30 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:16:22] Production.INFO: 49 MB #Memory Used# [2025-03-30 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:17:05 [end_date_ymd] => 2025-03-30 22:17:05 [RateCDR] => 1 ) [2025-03-30 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:17:05' and `end` < '2025-03-30 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:17:18] Production.INFO: count ==2751 [2025-03-30 22:17:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:17:05 - End Time 2025-03-30 22:17:05 [2025-03-30 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799167', 'tblTempUsageDetail_20' ) start [2025-03-30 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799167', 'tblTempUsageDetail_20' ) end [2025-03-30 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799167', 'tblTempVendorCDR_20' ) start [2025-03-30 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799167', 'tblTempVendorCDR_20' ) end [2025-03-30 22:17:19] Production.INFO: ProcessCDR(1,14799167,1,1,2) [2025-03-30 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799167', 'tblTempUsageDetail_20' ) start [2025-03-30 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799167', 'tblTempUsageDetail_20' ) end [2025-03-30 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:17:23] Production.INFO: ==13526== Releasing lock... [2025-03-30 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:17:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:18:05 [end_date_ymd] => 2025-03-30 22:18:05 [RateCDR] => 1 ) [2025-03-30 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:18:05' and `end` < '2025-03-30 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:18:18] Production.INFO: count ==2742 [2025-03-30 22:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:18:05 - End Time 2025-03-30 22:18:05 [2025-03-30 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799172', 'tblTempUsageDetail_20' ) start [2025-03-30 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799172', 'tblTempUsageDetail_20' ) end [2025-03-30 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799172', 'tblTempVendorCDR_20' ) start [2025-03-30 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799172', 'tblTempVendorCDR_20' ) end [2025-03-30 22:18:19] Production.INFO: ProcessCDR(1,14799172,1,1,2) [2025-03-30 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799172', 'tblTempUsageDetail_20' ) start [2025-03-30 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799172', 'tblTempUsageDetail_20' ) end [2025-03-30 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:18:22] Production.INFO: ==13597== Releasing lock... [2025-03-30 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:18:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:19:05 [end_date_ymd] => 2025-03-30 22:19:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:19:05' and `end` < '2025-03-30 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-03-30 22:19:18] Production.INFO: count ==2744 [2025-03-30 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:19:05 - End Time 2025-03-30 22:19:05 [2025-03-30 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799177', 'tblTempUsageDetail_20' ) start [2025-03-30 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799177', 'tblTempUsageDetail_20' ) end [2025-03-30 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799177', 'tblTempVendorCDR_20' ) start [2025-03-30 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799177', 'tblTempVendorCDR_20' ) end [2025-03-30 22:19:19] Production.INFO: ProcessCDR(1,14799177,1,1,2) [2025-03-30 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799177', 'tblTempUsageDetail_20' ) start [2025-03-30 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799177', 'tblTempUsageDetail_20' ) end [2025-03-30 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:19:23] Production.INFO: ==13675== Releasing lock... [2025-03-30 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:19:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-30 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:20:06 [end_date_ymd] => 2025-03-30 22:20:06 [RateCDR] => 1 ) [2025-03-30 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:20:06' and `end` < '2025-03-30 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:20:19] Production.INFO: count ==2744 [2025-03-30 22:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:20:06 - End Time 2025-03-30 22:20:06 [2025-03-30 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799183', 'tblTempUsageDetail_20' ) start [2025-03-30 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799183', 'tblTempUsageDetail_20' ) end [2025-03-30 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799183', 'tblTempVendorCDR_20' ) start [2025-03-30 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799183', 'tblTempVendorCDR_20' ) end [2025-03-30 22:20:20] Production.INFO: ProcessCDR(1,14799183,1,1,2) [2025-03-30 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799183', 'tblTempUsageDetail_20' ) start [2025-03-30 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799183', 'tblTempUsageDetail_20' ) end [2025-03-30 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:20:23] Production.INFO: ==13748== Releasing lock... [2025-03-30 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:20:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:21:05 [end_date_ymd] => 2025-03-30 22:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:21:05' and `end` < '2025-03-30 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-03-30 22:21:18] Production.INFO: count ==2723 [2025-03-30 22:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:21:05 - End Time 2025-03-30 22:21:05 [2025-03-30 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799188', 'tblTempUsageDetail_20' ) start [2025-03-30 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799188', 'tblTempUsageDetail_20' ) end [2025-03-30 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799188', 'tblTempVendorCDR_20' ) start [2025-03-30 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799188', 'tblTempVendorCDR_20' ) end [2025-03-30 22:21:19] Production.INFO: ProcessCDR(1,14799188,1,1,2) [2025-03-30 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799188', 'tblTempUsageDetail_20' ) start [2025-03-30 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799188', 'tblTempUsageDetail_20' ) end [2025-03-30 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:21:22] Production.INFO: ==13822== Releasing lock... [2025-03-30 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:21:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:22:04 [end_date_ymd] => 2025-03-30 22:22:04 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:22:04' and `end` < '2025-03-30 22: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-03-30 22:22:17] Production.INFO: count ==2729 [2025-03-30 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-30 19:22:04 - End Time 2025-03-30 22:22:04 [2025-03-30 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799193', 'tblTempUsageDetail_20' ) start [2025-03-30 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799193', 'tblTempUsageDetail_20' ) end [2025-03-30 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799193', 'tblTempVendorCDR_20' ) start [2025-03-30 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799193', 'tblTempVendorCDR_20' ) end [2025-03-30 22:22:18] Production.INFO: ProcessCDR(1,14799193,1,1,2) [2025-03-30 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799193', 'tblTempUsageDetail_20' ) start [2025-03-30 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799193', 'tblTempUsageDetail_20' ) end [2025-03-30 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:22:22] Production.INFO: ==13897== Releasing lock... [2025-03-30 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:22:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:23:06 [end_date_ymd] => 2025-03-30 22:23:06 [RateCDR] => 1 ) [2025-03-30 22:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:23:06' and `end` < '2025-03-30 22:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:23:18] Production.INFO: count ==2726 [2025-03-30 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:23:06 - End Time 2025-03-30 22:23:06 [2025-03-30 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799198', 'tblTempUsageDetail_20' ) start [2025-03-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799198', 'tblTempUsageDetail_20' ) end [2025-03-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799198', 'tblTempVendorCDR_20' ) start [2025-03-30 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799198', 'tblTempVendorCDR_20' ) end [2025-03-30 22:23:19] Production.INFO: ProcessCDR(1,14799198,1,1,2) [2025-03-30 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799198', 'tblTempUsageDetail_20' ) start [2025-03-30 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799198', 'tblTempUsageDetail_20' ) end [2025-03-30 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:23:24] Production.INFO: ==13971== Releasing lock... [2025-03-30 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:23:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:24:05 [end_date_ymd] => 2025-03-30 22:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:24:05' and `end` < '2025-03-30 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-03-30 22:24:17] Production.INFO: count ==2724 [2025-03-30 22:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:24:05 - End Time 2025-03-30 22:24:05 [2025-03-30 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799203', 'tblTempUsageDetail_20' ) start [2025-03-30 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799203', 'tblTempUsageDetail_20' ) end [2025-03-30 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799203', 'tblTempVendorCDR_20' ) start [2025-03-30 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799203', 'tblTempVendorCDR_20' ) end [2025-03-30 22:24:19] Production.INFO: ProcessCDR(1,14799203,1,1,2) [2025-03-30 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799203', 'tblTempUsageDetail_20' ) start [2025-03-30 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799203', 'tblTempUsageDetail_20' ) end [2025-03-30 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:24:22] Production.INFO: ==14046== Releasing lock... [2025-03-30 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:24:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:25:05 [end_date_ymd] => 2025-03-30 22:25:05 [RateCDR] => 1 ) [2025-03-30 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:25:05' and `end` < '2025-03-30 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:25:17] Production.INFO: count ==2668 [2025-03-30 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-30 19:25:05 - End Time 2025-03-30 22:25:05 [2025-03-30 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799208', 'tblTempUsageDetail_20' ) start [2025-03-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799208', 'tblTempUsageDetail_20' ) end [2025-03-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799208', 'tblTempVendorCDR_20' ) start [2025-03-30 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799208', 'tblTempVendorCDR_20' ) end [2025-03-30 22:25:19] Production.INFO: ProcessCDR(1,14799208,1,1,2) [2025-03-30 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799208', 'tblTempUsageDetail_20' ) start [2025-03-30 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799208', 'tblTempUsageDetail_20' ) end [2025-03-30 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:25:22] Production.INFO: ==14118== Releasing lock... [2025-03-30 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:25:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-30 22:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:26:06 [end_date_ymd] => 2025-03-30 22:26:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:26:06' and `end` < '2025-03-30 22: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-03-30 22:26:19] Production.INFO: count ==2673 [2025-03-30 22:26:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:26:06 - End Time 2025-03-30 22:26:06 [2025-03-30 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799213', 'tblTempUsageDetail_20' ) start [2025-03-30 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799213', 'tblTempUsageDetail_20' ) end [2025-03-30 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799213', 'tblTempVendorCDR_20' ) start [2025-03-30 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799213', 'tblTempVendorCDR_20' ) end [2025-03-30 22:26:20] Production.INFO: ProcessCDR(1,14799213,1,1,2) [2025-03-30 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799213', 'tblTempUsageDetail_20' ) start [2025-03-30 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799213', 'tblTempUsageDetail_20' ) end [2025-03-30 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:26:24] Production.INFO: ==14193== Releasing lock... [2025-03-30 22:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:26:24] Production.INFO: 48 MB #Memory Used# [2025-03-30 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:27:05 [end_date_ymd] => 2025-03-30 22:27:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:27:05' and `end` < '2025-03-30 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-03-30 22:27:18] Production.INFO: count ==2690 [2025-03-30 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:27:05 - End Time 2025-03-30 22:27:05 [2025-03-30 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799218', 'tblTempUsageDetail_20' ) start [2025-03-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799218', 'tblTempUsageDetail_20' ) end [2025-03-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799218', 'tblTempVendorCDR_20' ) start [2025-03-30 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799218', 'tblTempVendorCDR_20' ) end [2025-03-30 22:27:19] Production.INFO: ProcessCDR(1,14799218,1,1,2) [2025-03-30 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799218', 'tblTempUsageDetail_20' ) start [2025-03-30 22:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799218', 'tblTempUsageDetail_20' ) end [2025-03-30 22:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:27:24] Production.INFO: ==14264== Releasing lock... [2025-03-30 22:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:27:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-30 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:28:05 [end_date_ymd] => 2025-03-30 22:28:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:28:05' and `end` < '2025-03-30 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-03-30 22:28:18] Production.INFO: count ==2710 [2025-03-30 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:28:05 - End Time 2025-03-30 22:28:05 [2025-03-30 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799223', 'tblTempUsageDetail_20' ) start [2025-03-30 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799223', 'tblTempUsageDetail_20' ) end [2025-03-30 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799223', 'tblTempVendorCDR_20' ) start [2025-03-30 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799223', 'tblTempVendorCDR_20' ) end [2025-03-30 22:28:19] Production.INFO: ProcessCDR(1,14799223,1,1,2) [2025-03-30 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799223', 'tblTempUsageDetail_20' ) start [2025-03-30 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799223', 'tblTempUsageDetail_20' ) end [2025-03-30 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:28:23] Production.INFO: ==14334== Releasing lock... [2025-03-30 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:28:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-30 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:29:05 [end_date_ymd] => 2025-03-30 22:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:29:05' and `end` < '2025-03-30 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-03-30 22:29:18] Production.INFO: count ==2699 [2025-03-30 22:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:29:05 - End Time 2025-03-30 22:29:05 [2025-03-30 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799228', 'tblTempUsageDetail_20' ) start [2025-03-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799228', 'tblTempUsageDetail_20' ) end [2025-03-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799228', 'tblTempVendorCDR_20' ) start [2025-03-30 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799228', 'tblTempVendorCDR_20' ) end [2025-03-30 22:29:19] Production.INFO: ProcessCDR(1,14799228,1,1,2) [2025-03-30 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799228', 'tblTempUsageDetail_20' ) start [2025-03-30 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799228', 'tblTempUsageDetail_20' ) end [2025-03-30 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:29:23] Production.INFO: ==14411== Releasing lock... [2025-03-30 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:29:23] Production.INFO: 49 MB #Memory Used# [2025-03-30 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:30:06 [end_date_ymd] => 2025-03-30 22:30:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:30:06' and `end` < '2025-03-30 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-03-30 22:30:19] Production.INFO: count ==2704 [2025-03-30 22:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:30:06 - End Time 2025-03-30 22:30:06 [2025-03-30 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799233', 'tblTempUsageDetail_20' ) start [2025-03-30 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799233', 'tblTempUsageDetail_20' ) end [2025-03-30 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799233', 'tblTempVendorCDR_20' ) start [2025-03-30 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799233', 'tblTempVendorCDR_20' ) end [2025-03-30 22:30:20] Production.INFO: ProcessCDR(1,14799233,1,1,2) [2025-03-30 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799233', 'tblTempUsageDetail_20' ) start [2025-03-30 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799233', 'tblTempUsageDetail_20' ) end [2025-03-30 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:30:24] Production.INFO: ==14490== Releasing lock... [2025-03-30 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:30:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-30 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:31:05 [end_date_ymd] => 2025-03-30 22:31:05 [RateCDR] => 1 ) [2025-03-30 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:31:05' and `end` < '2025-03-30 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:31:18] Production.INFO: count ==2670 [2025-03-30 22:31:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:31:05 - End Time 2025-03-30 22:31:05 [2025-03-30 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799239', 'tblTempUsageDetail_20' ) start [2025-03-30 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799239', 'tblTempUsageDetail_20' ) end [2025-03-30 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799239', 'tblTempVendorCDR_20' ) start [2025-03-30 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799239', 'tblTempVendorCDR_20' ) end [2025-03-30 22:31:19] Production.INFO: ProcessCDR(1,14799239,1,1,2) [2025-03-30 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799239', 'tblTempUsageDetail_20' ) start [2025-03-30 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799239', 'tblTempUsageDetail_20' ) end [2025-03-30 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:31:22] Production.INFO: ==14567== Releasing lock... [2025-03-30 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:31:22] Production.INFO: 48 MB #Memory Used# [2025-03-30 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:32:06 [end_date_ymd] => 2025-03-30 22:32:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:32:06' and `end` < '2025-03-30 22: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-03-30 22:32:18] Production.INFO: count ==2676 [2025-03-30 22:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:32:06 - End Time 2025-03-30 22:32:06 [2025-03-30 22:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799244', 'tblTempUsageDetail_20' ) start [2025-03-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799244', 'tblTempUsageDetail_20' ) end [2025-03-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799244', 'tblTempVendorCDR_20' ) start [2025-03-30 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799244', 'tblTempVendorCDR_20' ) end [2025-03-30 22:32:20] Production.INFO: ProcessCDR(1,14799244,1,1,2) [2025-03-30 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799244', 'tblTempUsageDetail_20' ) start [2025-03-30 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799244', 'tblTempUsageDetail_20' ) end [2025-03-30 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:32:23] Production.INFO: ==14642== Releasing lock... [2025-03-30 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:32:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-30 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:33:05 [end_date_ymd] => 2025-03-30 22:33:05 [RateCDR] => 1 ) [2025-03-30 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:33:05' and `end` < '2025-03-30 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:33:18] Production.INFO: count ==2662 [2025-03-30 22:33:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:33:05 - End Time 2025-03-30 22:33:05 [2025-03-30 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799249', 'tblTempUsageDetail_20' ) start [2025-03-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799249', 'tblTempUsageDetail_20' ) end [2025-03-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799249', 'tblTempVendorCDR_20' ) start [2025-03-30 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799249', 'tblTempVendorCDR_20' ) end [2025-03-30 22:33:19] Production.INFO: ProcessCDR(1,14799249,1,1,2) [2025-03-30 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799249', 'tblTempUsageDetail_20' ) start [2025-03-30 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799249', 'tblTempUsageDetail_20' ) end [2025-03-30 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:33:23] Production.INFO: ==14759== Releasing lock... [2025-03-30 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:33:23] Production.INFO: 48 MB #Memory Used# [2025-03-30 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:34:06 [end_date_ymd] => 2025-03-30 22:34:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:34:06' and `end` < '2025-03-30 22: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-03-30 22:34:19] Production.INFO: count ==2652 [2025-03-30 22:34:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:34:06 - End Time 2025-03-30 22:34:06 [2025-03-30 22:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799254', 'tblTempUsageDetail_20' ) start [2025-03-30 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799254', 'tblTempUsageDetail_20' ) end [2025-03-30 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799254', 'tblTempVendorCDR_20' ) start [2025-03-30 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799254', 'tblTempVendorCDR_20' ) end [2025-03-30 22:34:20] Production.INFO: ProcessCDR(1,14799254,1,1,2) [2025-03-30 22:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799254', 'tblTempUsageDetail_20' ) start [2025-03-30 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799254', 'tblTempUsageDetail_20' ) end [2025-03-30 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:34:23] Production.INFO: ==14850== Releasing lock... [2025-03-30 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:34:23] Production.INFO: 48 MB #Memory Used# [2025-03-30 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:35:05 [end_date_ymd] => 2025-03-30 22:35:05 [RateCDR] => 1 ) [2025-03-30 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:35:05' and `end` < '2025-03-30 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:35:18] Production.INFO: count ==2643 [2025-03-30 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:35:05 - End Time 2025-03-30 22:35:05 [2025-03-30 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799259', 'tblTempUsageDetail_20' ) start [2025-03-30 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799259', 'tblTempUsageDetail_20' ) end [2025-03-30 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799259', 'tblTempVendorCDR_20' ) start [2025-03-30 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799259', 'tblTempVendorCDR_20' ) end [2025-03-30 22:35:19] Production.INFO: ProcessCDR(1,14799259,1,1,2) [2025-03-30 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799259', 'tblTempUsageDetail_20' ) start [2025-03-30 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799259', 'tblTempUsageDetail_20' ) end [2025-03-30 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:35:22] Production.INFO: ==14921== Releasing lock... [2025-03-30 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:35:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:36:05 [end_date_ymd] => 2025-03-30 22:36:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:36:05' and `end` < '2025-03-30 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-03-30 22:36:18] Production.INFO: count ==2635 [2025-03-30 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:36:05 - End Time 2025-03-30 22:36:05 [2025-03-30 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799264', 'tblTempUsageDetail_20' ) start [2025-03-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799264', 'tblTempUsageDetail_20' ) end [2025-03-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799264', 'tblTempVendorCDR_20' ) start [2025-03-30 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799264', 'tblTempVendorCDR_20' ) end [2025-03-30 22:36:19] Production.INFO: ProcessCDR(1,14799264,1,1,2) [2025-03-30 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799264', 'tblTempUsageDetail_20' ) start [2025-03-30 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799264', 'tblTempUsageDetail_20' ) end [2025-03-30 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:36:22] Production.INFO: ==14994== Releasing lock... [2025-03-30 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:36:22] Production.INFO: 48 MB #Memory Used# [2025-03-30 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:37:05 [end_date_ymd] => 2025-03-30 22:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:37:05' and `end` < '2025-03-30 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-03-30 22:37:18] Production.INFO: count ==2616 [2025-03-30 22:37:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:37:05 - End Time 2025-03-30 22:37:05 [2025-03-30 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799269', 'tblTempUsageDetail_20' ) start [2025-03-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799269', 'tblTempUsageDetail_20' ) end [2025-03-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799269', 'tblTempVendorCDR_20' ) start [2025-03-30 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799269', 'tblTempVendorCDR_20' ) end [2025-03-30 22:37:19] Production.INFO: ProcessCDR(1,14799269,1,1,2) [2025-03-30 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799269', 'tblTempUsageDetail_20' ) start [2025-03-30 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799269', 'tblTempUsageDetail_20' ) end [2025-03-30 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:37:22] Production.INFO: ==15066== Releasing lock... [2025-03-30 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:37:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-30 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:38:06 [end_date_ymd] => 2025-03-30 22:38:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:38:06' and `end` < '2025-03-30 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-03-30 22:38:18] Production.INFO: count ==2581 [2025-03-30 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:38:06 - End Time 2025-03-30 22:38:06 [2025-03-30 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799274', 'tblTempUsageDetail_20' ) start [2025-03-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799274', 'tblTempUsageDetail_20' ) end [2025-03-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799274', 'tblTempVendorCDR_20' ) start [2025-03-30 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799274', 'tblTempVendorCDR_20' ) end [2025-03-30 22:38:19] Production.INFO: ProcessCDR(1,14799274,1,1,2) [2025-03-30 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799274', 'tblTempUsageDetail_20' ) start [2025-03-30 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799274', 'tblTempUsageDetail_20' ) end [2025-03-30 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:38:23] Production.INFO: ==15140== Releasing lock... [2025-03-30 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:38:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-30 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:39:05 [end_date_ymd] => 2025-03-30 22:39:05 [RateCDR] => 1 ) [2025-03-30 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:39:05' and `end` < '2025-03-30 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:39:18] Production.INFO: count ==2543 [2025-03-30 22:39:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:39:05 - End Time 2025-03-30 22:39:05 [2025-03-30 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799279', 'tblTempUsageDetail_20' ) start [2025-03-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799279', 'tblTempUsageDetail_20' ) end [2025-03-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799279', 'tblTempVendorCDR_20' ) start [2025-03-30 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799279', 'tblTempVendorCDR_20' ) end [2025-03-30 22:39:19] Production.INFO: ProcessCDR(1,14799279,1,1,2) [2025-03-30 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799279', 'tblTempUsageDetail_20' ) start [2025-03-30 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799279', 'tblTempUsageDetail_20' ) end [2025-03-30 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:39:22] Production.INFO: ==15212== Releasing lock... [2025-03-30 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:39:22] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:40:06 [end_date_ymd] => 2025-03-30 22:40:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:40:06' and `end` < '2025-03-30 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-03-30 22:40:19] Production.INFO: count ==2533 [2025-03-30 22:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:40:06 - End Time 2025-03-30 22:40:06 [2025-03-30 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799284', 'tblTempUsageDetail_20' ) start [2025-03-30 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799284', 'tblTempUsageDetail_20' ) end [2025-03-30 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799284', 'tblTempVendorCDR_20' ) start [2025-03-30 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799284', 'tblTempVendorCDR_20' ) end [2025-03-30 22:40:20] Production.INFO: ProcessCDR(1,14799284,1,1,2) [2025-03-30 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799284', 'tblTempUsageDetail_20' ) start [2025-03-30 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799284', 'tblTempUsageDetail_20' ) end [2025-03-30 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:40:23] Production.INFO: ==15287== Releasing lock... [2025-03-30 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:40:23] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:41:05 [end_date_ymd] => 2025-03-30 22:41:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:41:05' and `end` < '2025-03-30 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-03-30 22:41:18] Production.INFO: count ==2517 [2025-03-30 22:41:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:41:05 - End Time 2025-03-30 22:41:05 [2025-03-30 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799290', 'tblTempUsageDetail_20' ) start [2025-03-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799290', 'tblTempUsageDetail_20' ) end [2025-03-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799290', 'tblTempVendorCDR_20' ) start [2025-03-30 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799290', 'tblTempVendorCDR_20' ) end [2025-03-30 22:41:19] Production.INFO: ProcessCDR(1,14799290,1,1,2) [2025-03-30 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799290', 'tblTempUsageDetail_20' ) start [2025-03-30 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799290', 'tblTempUsageDetail_20' ) end [2025-03-30 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:41:23] Production.INFO: ==15361== Releasing lock... [2025-03-30 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:41:23] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:42:05 [end_date_ymd] => 2025-03-30 22:42:05 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:42:05' and `end` < '2025-03-30 22: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-03-30 22:42:18] Production.INFO: count ==2505 [2025-03-30 22:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:42:05 - End Time 2025-03-30 22:42:05 [2025-03-30 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799295', 'tblTempUsageDetail_20' ) start [2025-03-30 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799295', 'tblTempUsageDetail_20' ) end [2025-03-30 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799295', 'tblTempVendorCDR_20' ) start [2025-03-30 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799295', 'tblTempVendorCDR_20' ) end [2025-03-30 22:42:19] Production.INFO: ProcessCDR(1,14799295,1,1,2) [2025-03-30 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799295', 'tblTempUsageDetail_20' ) start [2025-03-30 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799295', 'tblTempUsageDetail_20' ) end [2025-03-30 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:42:24] Production.INFO: ==15434== Releasing lock... [2025-03-30 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:42:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:43:06 [end_date_ymd] => 2025-03-30 22:43:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:43:06' and `end` < '2025-03-30 22: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-03-30 22:43:18] Production.INFO: count ==2514 [2025-03-30 22:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:43:06 - End Time 2025-03-30 22:43:06 [2025-03-30 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799300', 'tblTempUsageDetail_20' ) start [2025-03-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799300', 'tblTempUsageDetail_20' ) end [2025-03-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799300', 'tblTempVendorCDR_20' ) start [2025-03-30 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799300', 'tblTempVendorCDR_20' ) end [2025-03-30 22:43:19] Production.INFO: ProcessCDR(1,14799300,1,1,2) [2025-03-30 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799300', 'tblTempUsageDetail_20' ) start [2025-03-30 22:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799300', 'tblTempUsageDetail_20' ) end [2025-03-30 22:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:43:24] Production.INFO: ==15513== Releasing lock... [2025-03-30 22:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:43:24] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:44:05 [end_date_ymd] => 2025-03-30 22:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:44:05' and `end` < '2025-03-30 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-03-30 22:44:18] Production.INFO: count ==2515 [2025-03-30 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:44:05 - End Time 2025-03-30 22:44:05 [2025-03-30 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799305', 'tblTempUsageDetail_20' ) start [2025-03-30 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799305', 'tblTempUsageDetail_20' ) end [2025-03-30 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799305', 'tblTempVendorCDR_20' ) start [2025-03-30 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799305', 'tblTempVendorCDR_20' ) end [2025-03-30 22:44:19] Production.INFO: ProcessCDR(1,14799305,1,1,2) [2025-03-30 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799305', 'tblTempUsageDetail_20' ) start [2025-03-30 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799305', 'tblTempUsageDetail_20' ) end [2025-03-30 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:44:25] Production.INFO: ==15595== Releasing lock... [2025-03-30 22:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:44:25] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:45:06 [end_date_ymd] => 2025-03-30 22:45:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:45:06' and `end` < '2025-03-30 22: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-03-30 22:45:19] Production.INFO: count ==2527 [2025-03-30 22:45:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:45:06 - End Time 2025-03-30 22:45:06 [2025-03-30 22:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799310', 'tblTempUsageDetail_20' ) start [2025-03-30 22:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799310', 'tblTempUsageDetail_20' ) end [2025-03-30 22:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799310', 'tblTempVendorCDR_20' ) start [2025-03-30 22:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799310', 'tblTempVendorCDR_20' ) end [2025-03-30 22:45:20] Production.INFO: ProcessCDR(1,14799310,1,1,2) [2025-03-30 22:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799310', 'tblTempUsageDetail_20' ) start [2025-03-30 22:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799310', 'tblTempUsageDetail_20' ) end [2025-03-30 22:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:45:25] Production.INFO: ==15673== Releasing lock... [2025-03-30 22:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:45:25] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:46:06 [end_date_ymd] => 2025-03-30 22:46:06 [RateCDR] => 1 ) [2025-03-30 22: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-03-30 19:46:06' and `end` < '2025-03-30 22: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-03-30 22:46:18] Production.INFO: count ==2528 [2025-03-30 22:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:46:06 - End Time 2025-03-30 22:46:06 [2025-03-30 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799315', 'tblTempUsageDetail_20' ) start [2025-03-30 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799315', 'tblTempUsageDetail_20' ) end [2025-03-30 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799315', 'tblTempVendorCDR_20' ) start [2025-03-30 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799315', 'tblTempVendorCDR_20' ) end [2025-03-30 22:46:19] Production.INFO: ProcessCDR(1,14799315,1,1,2) [2025-03-30 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799315', 'tblTempUsageDetail_20' ) start [2025-03-30 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799315', 'tblTempUsageDetail_20' ) end [2025-03-30 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:46:23] Production.INFO: ==15749== Releasing lock... [2025-03-30 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:46:23] Production.INFO: 47 MB #Memory Used# [2025-03-30 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:47:05 [end_date_ymd] => 2025-03-30 22:47:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:47:05' and `end` < '2025-03-30 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-03-30 22:47:18] Production.INFO: count ==2524 [2025-03-30 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:47:05 - End Time 2025-03-30 22:47:05 [2025-03-30 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799320', 'tblTempUsageDetail_20' ) start [2025-03-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799320', 'tblTempUsageDetail_20' ) end [2025-03-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799320', 'tblTempVendorCDR_20' ) start [2025-03-30 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799320', 'tblTempVendorCDR_20' ) end [2025-03-30 22:47:19] Production.INFO: ProcessCDR(1,14799320,1,1,2) [2025-03-30 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799320', 'tblTempUsageDetail_20' ) start [2025-03-30 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799320', 'tblTempUsageDetail_20' ) end [2025-03-30 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:47:23] Production.INFO: ==15821== Releasing lock... [2025-03-30 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:47:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-30 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:48:05 [end_date_ymd] => 2025-03-30 22:48:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:48:05' and `end` < '2025-03-30 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-03-30 22:48:18] Production.INFO: count ==2509 [2025-03-30 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:48:05 - End Time 2025-03-30 22:48:05 [2025-03-30 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799325', 'tblTempUsageDetail_20' ) start [2025-03-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799325', 'tblTempUsageDetail_20' ) end [2025-03-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799325', 'tblTempVendorCDR_20' ) start [2025-03-30 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799325', 'tblTempVendorCDR_20' ) end [2025-03-30 22:48:19] Production.INFO: ProcessCDR(1,14799325,1,1,2) [2025-03-30 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799325', 'tblTempUsageDetail_20' ) start [2025-03-30 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799325', 'tblTempUsageDetail_20' ) end [2025-03-30 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:48:22] Production.INFO: ==15935== Releasing lock... [2025-03-30 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:48:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:49:05 [end_date_ymd] => 2025-03-30 22:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:49:05' and `end` < '2025-03-30 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-03-30 22:49:18] Production.INFO: count ==2505 [2025-03-30 22:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:49:05 - End Time 2025-03-30 22:49:05 [2025-03-30 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799330', 'tblTempUsageDetail_20' ) start [2025-03-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799330', 'tblTempUsageDetail_20' ) end [2025-03-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799330', 'tblTempVendorCDR_20' ) start [2025-03-30 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799330', 'tblTempVendorCDR_20' ) end [2025-03-30 22:49:19] Production.INFO: ProcessCDR(1,14799330,1,1,2) [2025-03-30 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799330', 'tblTempUsageDetail_20' ) start [2025-03-30 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799330', 'tblTempUsageDetail_20' ) end [2025-03-30 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:49:23] Production.INFO: ==16013== Releasing lock... [2025-03-30 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:49:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:50:06 [end_date_ymd] => 2025-03-30 22:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:50:06' and `end` < '2025-03-30 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-03-30 22:50:18] Production.INFO: count ==2503 [2025-03-30 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:50:06 - End Time 2025-03-30 22:50:06 [2025-03-30 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799336', 'tblTempUsageDetail_20' ) start [2025-03-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799336', 'tblTempUsageDetail_20' ) end [2025-03-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799336', 'tblTempVendorCDR_20' ) start [2025-03-30 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799336', 'tblTempVendorCDR_20' ) end [2025-03-30 22:50:19] Production.INFO: ProcessCDR(1,14799336,1,1,2) [2025-03-30 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799336', 'tblTempUsageDetail_20' ) start [2025-03-30 22:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799336', 'tblTempUsageDetail_20' ) end [2025-03-30 22:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:50:25] Production.INFO: ==16094== Releasing lock... [2025-03-30 22:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:50:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:51:05 [end_date_ymd] => 2025-03-30 22:51:05 [RateCDR] => 1 ) [2025-03-30 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:51:05' and `end` < '2025-03-30 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:51:18] Production.INFO: count ==2476 [2025-03-30 22:51:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:51:05 - End Time 2025-03-30 22:51:05 [2025-03-30 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799341', 'tblTempUsageDetail_20' ) start [2025-03-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799341', 'tblTempUsageDetail_20' ) end [2025-03-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799341', 'tblTempVendorCDR_20' ) start [2025-03-30 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799341', 'tblTempVendorCDR_20' ) end [2025-03-30 22:51:19] Production.INFO: ProcessCDR(1,14799341,1,1,2) [2025-03-30 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799341', 'tblTempUsageDetail_20' ) start [2025-03-30 22:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799341', 'tblTempUsageDetail_20' ) end [2025-03-30 22:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:51:24] Production.INFO: ==16173== Releasing lock... [2025-03-30 22:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:51:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:52:06 [end_date_ymd] => 2025-03-30 22:52:06 [RateCDR] => 1 ) [2025-03-30 22:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:52:06' and `end` < '2025-03-30 22:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:52:18] Production.INFO: count ==2475 [2025-03-30 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:52:06 - End Time 2025-03-30 22:52:06 [2025-03-30 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799346', 'tblTempUsageDetail_20' ) start [2025-03-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799346', 'tblTempUsageDetail_20' ) end [2025-03-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799346', 'tblTempVendorCDR_20' ) start [2025-03-30 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799346', 'tblTempVendorCDR_20' ) end [2025-03-30 22:52:19] Production.INFO: ProcessCDR(1,14799346,1,1,2) [2025-03-30 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799346', 'tblTempUsageDetail_20' ) start [2025-03-30 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799346', 'tblTempUsageDetail_20' ) end [2025-03-30 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:52:23] Production.INFO: ==16252== Releasing lock... [2025-03-30 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:52:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:53:05 [end_date_ymd] => 2025-03-30 22:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:53:05' and `end` < '2025-03-30 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-03-30 22:53:18] Production.INFO: count ==2462 [2025-03-30 22:53:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:53:05 - End Time 2025-03-30 22:53:05 [2025-03-30 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799351', 'tblTempUsageDetail_20' ) start [2025-03-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799351', 'tblTempUsageDetail_20' ) end [2025-03-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799351', 'tblTempVendorCDR_20' ) start [2025-03-30 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799351', 'tblTempVendorCDR_20' ) end [2025-03-30 22:53:19] Production.INFO: ProcessCDR(1,14799351,1,1,2) [2025-03-30 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799351', 'tblTempUsageDetail_20' ) start [2025-03-30 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799351', 'tblTempUsageDetail_20' ) end [2025-03-30 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:53:23] Production.INFO: ==16329== Releasing lock... [2025-03-30 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:53:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:54:05 [end_date_ymd] => 2025-03-30 22:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:54:05' and `end` < '2025-03-30 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-03-30 22:54:17] Production.INFO: count ==2462 [2025-03-30 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-30 19:54:05 - End Time 2025-03-30 22:54:05 [2025-03-30 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799356', 'tblTempUsageDetail_20' ) start [2025-03-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799356', 'tblTempUsageDetail_20' ) end [2025-03-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799356', 'tblTempVendorCDR_20' ) start [2025-03-30 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799356', 'tblTempVendorCDR_20' ) end [2025-03-30 22:54:18] Production.INFO: ProcessCDR(1,14799356,1,1,2) [2025-03-30 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799356', 'tblTempUsageDetail_20' ) start [2025-03-30 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799356', 'tblTempUsageDetail_20' ) end [2025-03-30 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:54:23] Production.INFO: ==16404== Releasing lock... [2025-03-30 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:54:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:55:05 [end_date_ymd] => 2025-03-30 22:55:05 [RateCDR] => 1 ) [2025-03-30 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:55:05' and `end` < '2025-03-30 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:55:18] Production.INFO: count ==2468 [2025-03-30 22:55:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:55:05 - End Time 2025-03-30 22:55:05 [2025-03-30 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799361', 'tblTempUsageDetail_20' ) start [2025-03-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799361', 'tblTempUsageDetail_20' ) end [2025-03-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799361', 'tblTempVendorCDR_20' ) start [2025-03-30 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799361', 'tblTempVendorCDR_20' ) end [2025-03-30 22:55:19] Production.INFO: ProcessCDR(1,14799361,1,1,2) [2025-03-30 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799361', 'tblTempUsageDetail_20' ) start [2025-03-30 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799361', 'tblTempUsageDetail_20' ) end [2025-03-30 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:55:23] Production.INFO: ==16481== Releasing lock... [2025-03-30 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:55:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-30 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:56:05 [end_date_ymd] => 2025-03-30 22:56:05 [RateCDR] => 1 ) [2025-03-30 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:56:05' and `end` < '2025-03-30 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-03-30 22:56:18] Production.INFO: count ==2467 [2025-03-30 22:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:56:05 - End Time 2025-03-30 22:56:05 [2025-03-30 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799366', 'tblTempUsageDetail_20' ) start [2025-03-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799366', 'tblTempUsageDetail_20' ) end [2025-03-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799366', 'tblTempVendorCDR_20' ) start [2025-03-30 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799366', 'tblTempVendorCDR_20' ) end [2025-03-30 22:56:19] Production.INFO: ProcessCDR(1,14799366,1,1,2) [2025-03-30 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799366', 'tblTempUsageDetail_20' ) start [2025-03-30 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799366', 'tblTempUsageDetail_20' ) end [2025-03-30 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:56:23] Production.INFO: ==16558== Releasing lock... [2025-03-30 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:56:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:57:05 [end_date_ymd] => 2025-03-30 22:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:57:05' and `end` < '2025-03-30 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-03-30 22:57:18] Production.INFO: count ==2466 [2025-03-30 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-30 19:57:05 - End Time 2025-03-30 22:57:05 [2025-03-30 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799371', 'tblTempUsageDetail_20' ) start [2025-03-30 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799371', 'tblTempUsageDetail_20' ) end [2025-03-30 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799371', 'tblTempVendorCDR_20' ) start [2025-03-30 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799371', 'tblTempVendorCDR_20' ) end [2025-03-30 22:57:19] Production.INFO: ProcessCDR(1,14799371,1,1,2) [2025-03-30 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799371', 'tblTempUsageDetail_20' ) start [2025-03-30 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799371', 'tblTempUsageDetail_20' ) end [2025-03-30 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:57:22] Production.INFO: ==16640== Releasing lock... [2025-03-30 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:57:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-30 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:58:06 [end_date_ymd] => 2025-03-30 22:58:06 [RateCDR] => 1 ) [2025-03-30 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 19:58:06' and `end` < '2025-03-30 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 22:58:19] Production.INFO: count ==2408 [2025-03-30 22:58:20] Production.ERROR: pbx CDR StartTime 2025-03-30 19:58:06 - End Time 2025-03-30 22:58:06 [2025-03-30 22:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799376', 'tblTempUsageDetail_20' ) start [2025-03-30 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799376', 'tblTempUsageDetail_20' ) end [2025-03-30 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799376', 'tblTempVendorCDR_20' ) start [2025-03-30 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799376', 'tblTempVendorCDR_20' ) end [2025-03-30 22:58:20] Production.INFO: ProcessCDR(1,14799376,1,1,2) [2025-03-30 22:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799376', 'tblTempUsageDetail_20' ) start [2025-03-30 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799376', 'tblTempUsageDetail_20' ) end [2025-03-30 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:58:23] Production.INFO: ==16716== Releasing lock... [2025-03-30 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:58:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-30 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 19:59:05 [end_date_ymd] => 2025-03-30 22:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 19:59:05' and `end` < '2025-03-30 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-03-30 22:59:18] Production.INFO: count ==2366 [2025-03-30 22:59:19] Production.ERROR: pbx CDR StartTime 2025-03-30 19:59:05 - End Time 2025-03-30 22:59:05 [2025-03-30 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799381', 'tblTempUsageDetail_20' ) start [2025-03-30 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799381', 'tblTempUsageDetail_20' ) end [2025-03-30 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799381', 'tblTempVendorCDR_20' ) start [2025-03-30 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799381', 'tblTempVendorCDR_20' ) end [2025-03-30 22:59:19] Production.INFO: ProcessCDR(1,14799381,1,1,2) [2025-03-30 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799381', 'tblTempUsageDetail_20' ) start [2025-03-30 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799381', 'tblTempUsageDetail_20' ) end [2025-03-30 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 22:59:22] Production.INFO: ==16794== Releasing lock... [2025-03-30 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 22:59:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-30 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:00:06 [end_date_ymd] => 2025-03-30 23:00:06 [RateCDR] => 1 ) [2025-03-30 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:00:06' and `end` < '2025-03-30 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:00:19] Production.INFO: count ==2336 [2025-03-30 23:00:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:00:06 - End Time 2025-03-30 23:00:06 [2025-03-30 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799387', 'tblTempUsageDetail_20' ) start [2025-03-30 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799387', 'tblTempUsageDetail_20' ) end [2025-03-30 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799387', 'tblTempVendorCDR_20' ) start [2025-03-30 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799387', 'tblTempVendorCDR_20' ) end [2025-03-30 23:00:20] Production.INFO: ProcessCDR(1,14799387,1,1,2) [2025-03-30 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799387', 'tblTempUsageDetail_20' ) start [2025-03-30 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799387', 'tblTempUsageDetail_20' ) end [2025-03-30 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:00:24] Production.INFO: ==16871== Releasing lock... [2025-03-30 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:00:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:01:05 [end_date_ymd] => 2025-03-30 23:01:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:01:05' and `end` < '2025-03-30 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-03-30 23:01:18] Production.INFO: count ==2270 [2025-03-30 23:01:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:01:05 - End Time 2025-03-30 23:01:05 [2025-03-30 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799392', 'tblTempUsageDetail_20' ) start [2025-03-30 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799392', 'tblTempUsageDetail_20' ) end [2025-03-30 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799392', 'tblTempVendorCDR_20' ) start [2025-03-30 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799392', 'tblTempVendorCDR_20' ) end [2025-03-30 23:01:19] Production.INFO: ProcessCDR(1,14799392,1,1,2) [2025-03-30 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799392', 'tblTempUsageDetail_20' ) start [2025-03-30 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799392', 'tblTempUsageDetail_20' ) end [2025-03-30 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:01:22] Production.INFO: ==17005== Releasing lock... [2025-03-30 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:01:22] Production.INFO: 45 MB #Memory Used# [2025-03-30 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:02:05 [end_date_ymd] => 2025-03-30 23:02:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:02:05' and `end` < '2025-03-30 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-03-30 23:02:18] Production.INFO: count ==2228 [2025-03-30 23:02:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:02:05 - End Time 2025-03-30 23:02:05 [2025-03-30 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799397', 'tblTempUsageDetail_20' ) start [2025-03-30 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799397', 'tblTempUsageDetail_20' ) end [2025-03-30 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799397', 'tblTempVendorCDR_20' ) start [2025-03-30 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799397', 'tblTempVendorCDR_20' ) end [2025-03-30 23:02:19] Production.INFO: ProcessCDR(1,14799397,1,1,2) [2025-03-30 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799397', 'tblTempUsageDetail_20' ) start [2025-03-30 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799397', 'tblTempUsageDetail_20' ) end [2025-03-30 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:02:23] Production.INFO: ==17122== Releasing lock... [2025-03-30 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:02:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:03:05 [end_date_ymd] => 2025-03-30 23:03:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:03:05' and `end` < '2025-03-30 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-03-30 23:03:17] Production.INFO: count ==2203 [2025-03-30 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:03:05 - End Time 2025-03-30 23:03:05 [2025-03-30 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799402', 'tblTempUsageDetail_20' ) start [2025-03-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799402', 'tblTempUsageDetail_20' ) end [2025-03-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799402', 'tblTempVendorCDR_20' ) start [2025-03-30 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799402', 'tblTempVendorCDR_20' ) end [2025-03-30 23:03:18] Production.INFO: ProcessCDR(1,14799402,1,1,2) [2025-03-30 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799402', 'tblTempUsageDetail_20' ) start [2025-03-30 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799402', 'tblTempUsageDetail_20' ) end [2025-03-30 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:03:21] Production.INFO: ==17234== Releasing lock... [2025-03-30 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:03:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:04:06 [end_date_ymd] => 2025-03-30 23:04:06 [RateCDR] => 1 ) [2025-03-30 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:04:06' and `end` < '2025-03-30 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:04:18] Production.INFO: count ==2191 [2025-03-30 23:04:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:04:06 - End Time 2025-03-30 23:04:06 [2025-03-30 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799407', 'tblTempUsageDetail_20' ) start [2025-03-30 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799407', 'tblTempUsageDetail_20' ) end [2025-03-30 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799407', 'tblTempVendorCDR_20' ) start [2025-03-30 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799407', 'tblTempVendorCDR_20' ) end [2025-03-30 23:04:19] Production.INFO: ProcessCDR(1,14799407,1,1,2) [2025-03-30 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799407', 'tblTempUsageDetail_20' ) start [2025-03-30 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799407', 'tblTempUsageDetail_20' ) end [2025-03-30 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:04:23] Production.INFO: ==17312== Releasing lock... [2025-03-30 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:04:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:05:05 [end_date_ymd] => 2025-03-30 23:05:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:05:05' and `end` < '2025-03-30 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-03-30 23:05:18] Production.INFO: count ==2200 [2025-03-30 23:05:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:05:05 - End Time 2025-03-30 23:05:05 [2025-03-30 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799412', 'tblTempUsageDetail_20' ) start [2025-03-30 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799412', 'tblTempUsageDetail_20' ) end [2025-03-30 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799412', 'tblTempVendorCDR_20' ) start [2025-03-30 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799412', 'tblTempVendorCDR_20' ) end [2025-03-30 23:05:19] Production.INFO: ProcessCDR(1,14799412,1,1,2) [2025-03-30 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799412', 'tblTempUsageDetail_20' ) start [2025-03-30 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799412', 'tblTempUsageDetail_20' ) end [2025-03-30 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:05:22] Production.INFO: ==17466== Releasing lock... [2025-03-30 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:05:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:06:05 [end_date_ymd] => 2025-03-30 23:06:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:06:05' and `end` < '2025-03-30 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-03-30 23:06:18] Production.INFO: count ==2204 [2025-03-30 23:06:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:06:05 - End Time 2025-03-30 23:06:05 [2025-03-30 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799417', 'tblTempUsageDetail_20' ) start [2025-03-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799417', 'tblTempUsageDetail_20' ) end [2025-03-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799417', 'tblTempVendorCDR_20' ) start [2025-03-30 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799417', 'tblTempVendorCDR_20' ) end [2025-03-30 23:06:19] Production.INFO: ProcessCDR(1,14799417,1,1,2) [2025-03-30 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799417', 'tblTempUsageDetail_20' ) start [2025-03-30 23:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799417', 'tblTempUsageDetail_20' ) end [2025-03-30 23:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:06:24] Production.INFO: ==17542== Releasing lock... [2025-03-30 23:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:06:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-30 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:07:06 [end_date_ymd] => 2025-03-30 23:07:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:07:06' and `end` < '2025-03-30 23: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-03-30 23:07:19] Production.INFO: count ==2220 [2025-03-30 23:07:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:07:06 - End Time 2025-03-30 23:07:06 [2025-03-30 23:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799422', 'tblTempUsageDetail_20' ) start [2025-03-30 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799422', 'tblTempUsageDetail_20' ) end [2025-03-30 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799422', 'tblTempVendorCDR_20' ) start [2025-03-30 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799422', 'tblTempVendorCDR_20' ) end [2025-03-30 23:07:20] Production.INFO: ProcessCDR(1,14799422,1,1,2) [2025-03-30 23:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799422', 'tblTempUsageDetail_20' ) start [2025-03-30 23:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799422', 'tblTempUsageDetail_20' ) end [2025-03-30 23:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:07:25] Production.INFO: ==17616== Releasing lock... [2025-03-30 23:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:07:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:08:06 [end_date_ymd] => 2025-03-30 23:08:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:08:06' and `end` < '2025-03-30 23: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-03-30 23:08:18] Production.INFO: count ==2250 [2025-03-30 23:08:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:08:06 - End Time 2025-03-30 23:08:06 [2025-03-30 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799427', 'tblTempUsageDetail_20' ) start [2025-03-30 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799427', 'tblTempUsageDetail_20' ) end [2025-03-30 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799427', 'tblTempVendorCDR_20' ) start [2025-03-30 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799427', 'tblTempVendorCDR_20' ) end [2025-03-30 23:08:19] Production.INFO: ProcessCDR(1,14799427,1,1,2) [2025-03-30 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799427', 'tblTempUsageDetail_20' ) start [2025-03-30 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799427', 'tblTempUsageDetail_20' ) end [2025-03-30 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:08:23] Production.INFO: ==17774== Releasing lock... [2025-03-30 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:08:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:09:06 [end_date_ymd] => 2025-03-30 23:09:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:09:06' and `end` < '2025-03-30 23: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-03-30 23:09:19] Production.INFO: count ==2266 [2025-03-30 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:09:06 - End Time 2025-03-30 23:09:06 [2025-03-30 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799432', 'tblTempUsageDetail_20' ) start [2025-03-30 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799432', 'tblTempUsageDetail_20' ) end [2025-03-30 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799432', 'tblTempVendorCDR_20' ) start [2025-03-30 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799432', 'tblTempVendorCDR_20' ) end [2025-03-30 23:09:19] Production.INFO: ProcessCDR(1,14799432,1,1,2) [2025-03-30 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799432', 'tblTempUsageDetail_20' ) start [2025-03-30 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799432', 'tblTempUsageDetail_20' ) end [2025-03-30 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:09:23] Production.INFO: ==17850== Releasing lock... [2025-03-30 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:09:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:10:06 [end_date_ymd] => 2025-03-30 23:10:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:10:06' and `end` < '2025-03-30 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-03-30 23:10:19] Production.INFO: count ==2283 [2025-03-30 23:10:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:10:06 - End Time 2025-03-30 23:10:06 [2025-03-30 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799437', 'tblTempUsageDetail_20' ) start [2025-03-30 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799437', 'tblTempUsageDetail_20' ) end [2025-03-30 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799437', 'tblTempVendorCDR_20' ) start [2025-03-30 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799437', 'tblTempVendorCDR_20' ) end [2025-03-30 23:10:20] Production.INFO: ProcessCDR(1,14799437,1,1,2) [2025-03-30 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799437', 'tblTempUsageDetail_20' ) start [2025-03-30 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799437', 'tblTempUsageDetail_20' ) end [2025-03-30 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:10:23] Production.INFO: ==17936== Releasing lock... [2025-03-30 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:10:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:11:06 [end_date_ymd] => 2025-03-30 23:11:06 [RateCDR] => 1 ) [2025-03-30 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:11:06' and `end` < '2025-03-30 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:11:19] Production.INFO: count ==2311 [2025-03-30 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:11:06 - End Time 2025-03-30 23:11:06 [2025-03-30 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799443', 'tblTempUsageDetail_20' ) start [2025-03-30 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799443', 'tblTempUsageDetail_20' ) end [2025-03-30 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799443', 'tblTempVendorCDR_20' ) start [2025-03-30 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799443', 'tblTempVendorCDR_20' ) end [2025-03-30 23:11:19] Production.INFO: ProcessCDR(1,14799443,1,1,2) [2025-03-30 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799443', 'tblTempUsageDetail_20' ) start [2025-03-30 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799443', 'tblTempUsageDetail_20' ) end [2025-03-30 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:11:24] Production.INFO: ==18015== Releasing lock... [2025-03-30 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:11:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:12:05 [end_date_ymd] => 2025-03-30 23:12:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:12:05' and `end` < '2025-03-30 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-03-30 23:12:18] Production.INFO: count ==2299 [2025-03-30 23:12:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:12:05 - End Time 2025-03-30 23:12:05 [2025-03-30 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799448', 'tblTempUsageDetail_20' ) start [2025-03-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799448', 'tblTempUsageDetail_20' ) end [2025-03-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799448', 'tblTempVendorCDR_20' ) start [2025-03-30 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799448', 'tblTempVendorCDR_20' ) end [2025-03-30 23:12:19] Production.INFO: ProcessCDR(1,14799448,1,1,2) [2025-03-30 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799448', 'tblTempUsageDetail_20' ) start [2025-03-30 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799448', 'tblTempUsageDetail_20' ) end [2025-03-30 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:12:22] Production.INFO: ==18168== Releasing lock... [2025-03-30 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:12:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:13:06 [end_date_ymd] => 2025-03-30 23:13:06 [RateCDR] => 1 ) [2025-03-30 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:13:06' and `end` < '2025-03-30 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:13:19] Production.INFO: count ==2311 [2025-03-30 23:13:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:13:06 - End Time 2025-03-30 23:13:06 [2025-03-30 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799453', 'tblTempUsageDetail_20' ) start [2025-03-30 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799453', 'tblTempUsageDetail_20' ) end [2025-03-30 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799453', 'tblTempVendorCDR_20' ) start [2025-03-30 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799453', 'tblTempVendorCDR_20' ) end [2025-03-30 23:13:20] Production.INFO: ProcessCDR(1,14799453,1,1,2) [2025-03-30 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799453', 'tblTempUsageDetail_20' ) start [2025-03-30 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799453', 'tblTempUsageDetail_20' ) end [2025-03-30 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:13:23] Production.INFO: ==18246== Releasing lock... [2025-03-30 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:13:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:14:05 [end_date_ymd] => 2025-03-30 23:14:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:14:05' and `end` < '2025-03-30 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-03-30 23:14:18] Production.INFO: count ==2323 [2025-03-30 23:14:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:14:05 - End Time 2025-03-30 23:14:05 [2025-03-30 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799458', 'tblTempUsageDetail_20' ) start [2025-03-30 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799458', 'tblTempUsageDetail_20' ) end [2025-03-30 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799458', 'tblTempVendorCDR_20' ) start [2025-03-30 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799458', 'tblTempVendorCDR_20' ) end [2025-03-30 23:14:19] Production.INFO: ProcessCDR(1,14799458,1,1,2) [2025-03-30 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799458', 'tblTempUsageDetail_20' ) start [2025-03-30 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799458', 'tblTempUsageDetail_20' ) end [2025-03-30 23:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:14:24] Production.INFO: ==18321== Releasing lock... [2025-03-30 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:14:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:15:04 [end_date_ymd] => 2025-03-30 23:15:04 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:15:04' and `end` < '2025-03-30 23: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-03-30 23:15:17] Production.INFO: count ==2336 [2025-03-30 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:15:04 - End Time 2025-03-30 23:15:04 [2025-03-30 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799463', 'tblTempUsageDetail_20' ) start [2025-03-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799463', 'tblTempUsageDetail_20' ) end [2025-03-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799463', 'tblTempVendorCDR_20' ) start [2025-03-30 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799463', 'tblTempVendorCDR_20' ) end [2025-03-30 23:15:18] Production.INFO: ProcessCDR(1,14799463,1,1,2) [2025-03-30 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799463', 'tblTempUsageDetail_20' ) start [2025-03-30 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799463', 'tblTempUsageDetail_20' ) end [2025-03-30 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:15:23] Production.INFO: ==18475== Releasing lock... [2025-03-30 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:15:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-30 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:16:05 [end_date_ymd] => 2025-03-30 23:16:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:16:05' and `end` < '2025-03-30 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-03-30 23:16:18] Production.INFO: count ==2317 [2025-03-30 23:16:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:16:05 - End Time 2025-03-30 23:16:05 [2025-03-30 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799468', 'tblTempUsageDetail_20' ) start [2025-03-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799468', 'tblTempUsageDetail_20' ) end [2025-03-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799468', 'tblTempVendorCDR_20' ) start [2025-03-30 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799468', 'tblTempVendorCDR_20' ) end [2025-03-30 23:16:19] Production.INFO: ProcessCDR(1,14799468,1,1,2) [2025-03-30 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799468', 'tblTempUsageDetail_20' ) start [2025-03-30 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799468', 'tblTempUsageDetail_20' ) end [2025-03-30 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:16:22] Production.INFO: ==18555== Releasing lock... [2025-03-30 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:16:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:17:05 [end_date_ymd] => 2025-03-30 23:17:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:17:05' and `end` < '2025-03-30 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-03-30 23:17:17] Production.INFO: count ==2307 [2025-03-30 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:17:05 - End Time 2025-03-30 23:17:05 [2025-03-30 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799473', 'tblTempUsageDetail_20' ) start [2025-03-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799473', 'tblTempUsageDetail_20' ) end [2025-03-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799473', 'tblTempVendorCDR_20' ) start [2025-03-30 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799473', 'tblTempVendorCDR_20' ) end [2025-03-30 23:17:18] Production.INFO: ProcessCDR(1,14799473,1,1,2) [2025-03-30 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799473', 'tblTempUsageDetail_20' ) start [2025-03-30 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799473', 'tblTempUsageDetail_20' ) end [2025-03-30 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:17:22] Production.INFO: ==18632== Releasing lock... [2025-03-30 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:17:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:18:05 [end_date_ymd] => 2025-03-30 23:18:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:18:05' and `end` < '2025-03-30 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-03-30 23:18:18] Production.INFO: count ==2281 [2025-03-30 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:18:05 - End Time 2025-03-30 23:18:05 [2025-03-30 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799478', 'tblTempUsageDetail_20' ) start [2025-03-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799478', 'tblTempUsageDetail_20' ) end [2025-03-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799478', 'tblTempVendorCDR_20' ) start [2025-03-30 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799478', 'tblTempVendorCDR_20' ) end [2025-03-30 23:18:19] Production.INFO: ProcessCDR(1,14799478,1,1,2) [2025-03-30 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799478', 'tblTempUsageDetail_20' ) start [2025-03-30 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799478', 'tblTempUsageDetail_20' ) end [2025-03-30 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:18:22] Production.INFO: ==18705== Releasing lock... [2025-03-30 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:18:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-30 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:19:05 [end_date_ymd] => 2025-03-30 23:19:05 [RateCDR] => 1 ) [2025-03-30 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:19:05' and `end` < '2025-03-30 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:19:17] Production.INFO: count ==2243 [2025-03-30 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:19:05 - End Time 2025-03-30 23:19:05 [2025-03-30 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799483', 'tblTempUsageDetail_20' ) start [2025-03-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799483', 'tblTempUsageDetail_20' ) end [2025-03-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799483', 'tblTempVendorCDR_20' ) start [2025-03-30 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799483', 'tblTempVendorCDR_20' ) end [2025-03-30 23:19:18] Production.INFO: ProcessCDR(1,14799483,1,1,2) [2025-03-30 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799483', 'tblTempUsageDetail_20' ) start [2025-03-30 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799483', 'tblTempUsageDetail_20' ) end [2025-03-30 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:19:22] Production.INFO: ==18823== Releasing lock... [2025-03-30 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:19:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-30 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:20:06 [end_date_ymd] => 2025-03-30 23:20:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:20:06' and `end` < '2025-03-30 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-03-30 23:20:19] Production.INFO: count ==2224 [2025-03-30 23:20:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:20:06 - End Time 2025-03-30 23:20:06 [2025-03-30 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799489', 'tblTempUsageDetail_20' ) start [2025-03-30 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799489', 'tblTempUsageDetail_20' ) end [2025-03-30 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799489', 'tblTempVendorCDR_20' ) start [2025-03-30 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799489', 'tblTempVendorCDR_20' ) end [2025-03-30 23:20:20] Production.INFO: ProcessCDR(1,14799489,1,1,2) [2025-03-30 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799489', 'tblTempUsageDetail_20' ) start [2025-03-30 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799489', 'tblTempUsageDetail_20' ) end [2025-03-30 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:20:23] Production.INFO: ==18903== Releasing lock... [2025-03-30 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:20:23] Production.INFO: 45 MB #Memory Used# [2025-03-30 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:21:05 [end_date_ymd] => 2025-03-30 23:21:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:21:05' and `end` < '2025-03-30 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-03-30 23:21:18] Production.INFO: count ==2139 [2025-03-30 23:21:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:21:05 - End Time 2025-03-30 23:21:05 [2025-03-30 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799494', 'tblTempUsageDetail_20' ) start [2025-03-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799494', 'tblTempUsageDetail_20' ) end [2025-03-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799494', 'tblTempVendorCDR_20' ) start [2025-03-30 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799494', 'tblTempVendorCDR_20' ) end [2025-03-30 23:21:19] Production.INFO: ProcessCDR(1,14799494,1,1,2) [2025-03-30 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799494', 'tblTempUsageDetail_20' ) start [2025-03-30 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799494', 'tblTempUsageDetail_20' ) end [2025-03-30 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:21:22] Production.INFO: ==18983== Releasing lock... [2025-03-30 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:21:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-30 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:22:05 [end_date_ymd] => 2025-03-30 23:22:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:22:05' and `end` < '2025-03-30 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-03-30 23:22:18] Production.INFO: count ==2135 [2025-03-30 23:22:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:22:05 - End Time 2025-03-30 23:22:05 [2025-03-30 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799499', 'tblTempUsageDetail_20' ) start [2025-03-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799499', 'tblTempUsageDetail_20' ) end [2025-03-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799499', 'tblTempVendorCDR_20' ) start [2025-03-30 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799499', 'tblTempVendorCDR_20' ) end [2025-03-30 23:22:19] Production.INFO: ProcessCDR(1,14799499,1,1,2) [2025-03-30 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799499', 'tblTempUsageDetail_20' ) start [2025-03-30 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799499', 'tblTempUsageDetail_20' ) end [2025-03-30 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:22:22] Production.INFO: ==19060== Releasing lock... [2025-03-30 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:22:22] Production.INFO: 44 MB #Memory Used# [2025-03-30 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:23:05 [end_date_ymd] => 2025-03-30 23:23:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:23:05' and `end` < '2025-03-30 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-03-30 23:23:18] Production.INFO: count ==2118 [2025-03-30 23:23:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:23:05 - End Time 2025-03-30 23:23:05 [2025-03-30 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799504', 'tblTempUsageDetail_20' ) start [2025-03-30 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799504', 'tblTempUsageDetail_20' ) end [2025-03-30 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799504', 'tblTempVendorCDR_20' ) start [2025-03-30 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799504', 'tblTempVendorCDR_20' ) end [2025-03-30 23:23:19] Production.INFO: ProcessCDR(1,14799504,1,1,2) [2025-03-30 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799504', 'tblTempUsageDetail_20' ) start [2025-03-30 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799504', 'tblTempUsageDetail_20' ) end [2025-03-30 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:23:22] Production.INFO: ==19146== Releasing lock... [2025-03-30 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:23:22] Production.INFO: 44 MB #Memory Used# [2025-03-30 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:24:05 [end_date_ymd] => 2025-03-30 23:24:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:24:05' and `end` < '2025-03-30 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-03-30 23:24:18] Production.INFO: count ==2098 [2025-03-30 23:24:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:24:05 - End Time 2025-03-30 23:24:05 [2025-03-30 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799509', 'tblTempUsageDetail_20' ) start [2025-03-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799509', 'tblTempUsageDetail_20' ) end [2025-03-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799509', 'tblTempVendorCDR_20' ) start [2025-03-30 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799509', 'tblTempVendorCDR_20' ) end [2025-03-30 23:24:19] Production.INFO: ProcessCDR(1,14799509,1,1,2) [2025-03-30 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799509', 'tblTempUsageDetail_20' ) start [2025-03-30 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799509', 'tblTempUsageDetail_20' ) end [2025-03-30 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:24:22] Production.INFO: ==19234== Releasing lock... [2025-03-30 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:24:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:25:06 [end_date_ymd] => 2025-03-30 23:25:06 [RateCDR] => 1 ) [2025-03-30 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:25:06' and `end` < '2025-03-30 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:25:18] Production.INFO: count ==2092 [2025-03-30 23:25:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:25:06 - End Time 2025-03-30 23:25:06 [2025-03-30 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799514', 'tblTempUsageDetail_20' ) start [2025-03-30 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799514', 'tblTempUsageDetail_20' ) end [2025-03-30 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799514', 'tblTempVendorCDR_20' ) start [2025-03-30 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799514', 'tblTempVendorCDR_20' ) end [2025-03-30 23:25:19] Production.INFO: ProcessCDR(1,14799514,1,1,2) [2025-03-30 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799514', 'tblTempUsageDetail_20' ) start [2025-03-30 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799514', 'tblTempUsageDetail_20' ) end [2025-03-30 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:25:23] Production.INFO: ==19319== Releasing lock... [2025-03-30 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:25:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:26:05 [end_date_ymd] => 2025-03-30 23:26:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:26:05' and `end` < '2025-03-30 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-03-30 23:26:18] Production.INFO: count ==2089 [2025-03-30 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:26:05 - End Time 2025-03-30 23:26:05 [2025-03-30 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799519', 'tblTempUsageDetail_20' ) start [2025-03-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799519', 'tblTempUsageDetail_20' ) end [2025-03-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799519', 'tblTempVendorCDR_20' ) start [2025-03-30 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799519', 'tblTempVendorCDR_20' ) end [2025-03-30 23:26:18] Production.INFO: ProcessCDR(1,14799519,1,1,2) [2025-03-30 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799519', 'tblTempUsageDetail_20' ) start [2025-03-30 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799519', 'tblTempUsageDetail_20' ) end [2025-03-30 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:26:22] Production.INFO: ==19397== Releasing lock... [2025-03-30 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:26:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:27:06 [end_date_ymd] => 2025-03-30 23:27:06 [RateCDR] => 1 ) [2025-03-30 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:27:06' and `end` < '2025-03-30 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:27:18] Production.INFO: count ==2075 [2025-03-30 23:27:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:27:06 - End Time 2025-03-30 23:27:06 [2025-03-30 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799524', 'tblTempUsageDetail_20' ) start [2025-03-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799524', 'tblTempUsageDetail_20' ) end [2025-03-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799524', 'tblTempVendorCDR_20' ) start [2025-03-30 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799524', 'tblTempVendorCDR_20' ) end [2025-03-30 23:27:19] Production.INFO: ProcessCDR(1,14799524,1,1,2) [2025-03-30 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799524', 'tblTempUsageDetail_20' ) start [2025-03-30 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799524', 'tblTempUsageDetail_20' ) end [2025-03-30 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:27:22] Production.INFO: ==19475== Releasing lock... [2025-03-30 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:27:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:28:05 [end_date_ymd] => 2025-03-30 23:28:05 [RateCDR] => 1 ) [2025-03-30 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:28:05' and `end` < '2025-03-30 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:28:17] Production.INFO: count ==2081 [2025-03-30 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:28:05 - End Time 2025-03-30 23:28:05 [2025-03-30 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799529', 'tblTempUsageDetail_20' ) start [2025-03-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799529', 'tblTempUsageDetail_20' ) end [2025-03-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799529', 'tblTempVendorCDR_20' ) start [2025-03-30 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799529', 'tblTempVendorCDR_20' ) end [2025-03-30 23:28:18] Production.INFO: ProcessCDR(1,14799529,1,1,2) [2025-03-30 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799529', 'tblTempUsageDetail_20' ) start [2025-03-30 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799529', 'tblTempUsageDetail_20' ) end [2025-03-30 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:28:21] Production.INFO: ==19551== Releasing lock... [2025-03-30 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:28:21] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:29:05 [end_date_ymd] => 2025-03-30 23:29:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:29:05' and `end` < '2025-03-30 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-03-30 23:29:18] Production.INFO: count ==2087 [2025-03-30 23:29:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:29:05 - End Time 2025-03-30 23:29:05 [2025-03-30 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799534', 'tblTempUsageDetail_20' ) start [2025-03-30 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799534', 'tblTempUsageDetail_20' ) end [2025-03-30 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799534', 'tblTempVendorCDR_20' ) start [2025-03-30 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799534', 'tblTempVendorCDR_20' ) end [2025-03-30 23:29:19] Production.INFO: ProcessCDR(1,14799534,1,1,2) [2025-03-30 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799534', 'tblTempUsageDetail_20' ) start [2025-03-30 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799534', 'tblTempUsageDetail_20' ) end [2025-03-30 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:29:22] Production.INFO: ==19639== Releasing lock... [2025-03-30 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:29:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:30:07 [end_date_ymd] => 2025-03-30 23:30:07 [RateCDR] => 1 ) [2025-03-30 23:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:30:07' and `end` < '2025-03-30 23:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:30:19] Production.INFO: count ==2080 [2025-03-30 23:30:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:30:07 - End Time 2025-03-30 23:30:07 [2025-03-30 23:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799540', 'tblTempUsageDetail_20' ) start [2025-03-30 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799540', 'tblTempUsageDetail_20' ) end [2025-03-30 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799540', 'tblTempVendorCDR_20' ) start [2025-03-30 23:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799540', 'tblTempVendorCDR_20' ) end [2025-03-30 23:30:20] Production.INFO: ProcessCDR(1,14799540,1,1,2) [2025-03-30 23:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799540', 'tblTempUsageDetail_20' ) start [2025-03-30 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799540', 'tblTempUsageDetail_20' ) end [2025-03-30 23:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:30:24] Production.INFO: ==19732== Releasing lock... [2025-03-30 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:30:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:31:05 [end_date_ymd] => 2025-03-30 23:31:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:31:05' and `end` < '2025-03-30 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-03-30 23:31:18] Production.INFO: count ==2050 [2025-03-30 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:31:05 - End Time 2025-03-30 23:31:05 [2025-03-30 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799545', 'tblTempUsageDetail_20' ) start [2025-03-30 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799545', 'tblTempUsageDetail_20' ) end [2025-03-30 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799545', 'tblTempVendorCDR_20' ) start [2025-03-30 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799545', 'tblTempVendorCDR_20' ) end [2025-03-30 23:31:19] Production.INFO: ProcessCDR(1,14799545,1,1,2) [2025-03-30 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799545', 'tblTempUsageDetail_20' ) start [2025-03-30 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799545', 'tblTempUsageDetail_20' ) end [2025-03-30 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:31:22] Production.INFO: ==19813== Releasing lock... [2025-03-30 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:31:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:32:06 [end_date_ymd] => 2025-03-30 23:32:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:32:06' and `end` < '2025-03-30 23: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-03-30 23:32:19] Production.INFO: count ==2044 [2025-03-30 23:32:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:32:06 - End Time 2025-03-30 23:32:06 [2025-03-30 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799550', 'tblTempUsageDetail_20' ) start [2025-03-30 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799550', 'tblTempUsageDetail_20' ) end [2025-03-30 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799550', 'tblTempVendorCDR_20' ) start [2025-03-30 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799550', 'tblTempVendorCDR_20' ) end [2025-03-30 23:32:20] Production.INFO: ProcessCDR(1,14799550,1,1,2) [2025-03-30 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799550', 'tblTempUsageDetail_20' ) start [2025-03-30 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799550', 'tblTempUsageDetail_20' ) end [2025-03-30 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:32:23] Production.INFO: ==19895== Releasing lock... [2025-03-30 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:32:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:33:05 [end_date_ymd] => 2025-03-30 23:33:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:33:05' and `end` < '2025-03-30 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-03-30 23:33:18] Production.INFO: count ==2049 [2025-03-30 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:33:05 - End Time 2025-03-30 23:33:05 [2025-03-30 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799555', 'tblTempUsageDetail_20' ) start [2025-03-30 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799555', 'tblTempUsageDetail_20' ) end [2025-03-30 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799555', 'tblTempVendorCDR_20' ) start [2025-03-30 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799555', 'tblTempVendorCDR_20' ) end [2025-03-30 23:33:18] Production.INFO: ProcessCDR(1,14799555,1,1,2) [2025-03-30 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799555', 'tblTempUsageDetail_20' ) start [2025-03-30 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799555', 'tblTempUsageDetail_20' ) end [2025-03-30 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:33:22] Production.INFO: ==19977== Releasing lock... [2025-03-30 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:33:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:34:06 [end_date_ymd] => 2025-03-30 23:34:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:34:06' and `end` < '2025-03-30 23: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-03-30 23:34:19] Production.INFO: count ==2044 [2025-03-30 23:34:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:34:06 - End Time 2025-03-30 23:34:06 [2025-03-30 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799560', 'tblTempUsageDetail_20' ) start [2025-03-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799560', 'tblTempUsageDetail_20' ) end [2025-03-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799560', 'tblTempVendorCDR_20' ) start [2025-03-30 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799560', 'tblTempVendorCDR_20' ) end [2025-03-30 23:34:19] Production.INFO: ProcessCDR(1,14799560,1,1,2) [2025-03-30 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799560', 'tblTempUsageDetail_20' ) start [2025-03-30 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799560', 'tblTempUsageDetail_20' ) end [2025-03-30 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:34:22] Production.INFO: ==20101== Releasing lock... [2025-03-30 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:34:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-30 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:35:05 [end_date_ymd] => 2025-03-30 23:35:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:35:05' and `end` < '2025-03-30 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-03-30 23:35:17] Production.INFO: count ==2043 [2025-03-30 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:35:05 - End Time 2025-03-30 23:35:05 [2025-03-30 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799565', 'tblTempUsageDetail_20' ) start [2025-03-30 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799565', 'tblTempUsageDetail_20' ) end [2025-03-30 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799565', 'tblTempVendorCDR_20' ) start [2025-03-30 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799565', 'tblTempVendorCDR_20' ) end [2025-03-30 23:35:18] Production.INFO: ProcessCDR(1,14799565,1,1,2) [2025-03-30 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799565', 'tblTempUsageDetail_20' ) start [2025-03-30 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799565', 'tblTempUsageDetail_20' ) end [2025-03-30 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:35:22] Production.INFO: ==20180== Releasing lock... [2025-03-30 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:35:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:36:06 [end_date_ymd] => 2025-03-30 23:36:06 [RateCDR] => 1 ) [2025-03-30 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:36:06' and `end` < '2025-03-30 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:36:18] Production.INFO: count ==2039 [2025-03-30 23:36:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:36:06 - End Time 2025-03-30 23:36:06 [2025-03-30 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799570', 'tblTempUsageDetail_20' ) start [2025-03-30 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799570', 'tblTempUsageDetail_20' ) end [2025-03-30 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799570', 'tblTempVendorCDR_20' ) start [2025-03-30 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799570', 'tblTempVendorCDR_20' ) end [2025-03-30 23:36:19] Production.INFO: ProcessCDR(1,14799570,1,1,2) [2025-03-30 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799570', 'tblTempUsageDetail_20' ) start [2025-03-30 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799570', 'tblTempUsageDetail_20' ) end [2025-03-30 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:36:23] Production.INFO: ==20260== Releasing lock... [2025-03-30 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:36:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:37:05 [end_date_ymd] => 2025-03-30 23:37:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:37:05' and `end` < '2025-03-30 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-03-30 23:37:18] Production.INFO: count ==2031 [2025-03-30 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:37:05 - End Time 2025-03-30 23:37:05 [2025-03-30 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799575', 'tblTempUsageDetail_20' ) start [2025-03-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799575', 'tblTempUsageDetail_20' ) end [2025-03-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799575', 'tblTempVendorCDR_20' ) start [2025-03-30 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799575', 'tblTempVendorCDR_20' ) end [2025-03-30 23:37:18] Production.INFO: ProcessCDR(1,14799575,1,1,2) [2025-03-30 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799575', 'tblTempUsageDetail_20' ) start [2025-03-30 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799575', 'tblTempUsageDetail_20' ) end [2025-03-30 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:37:22] Production.INFO: ==20340== Releasing lock... [2025-03-30 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:37:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:38:06 [end_date_ymd] => 2025-03-30 23:38:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:38:06' and `end` < '2025-03-30 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-03-30 23:38:18] Production.INFO: count ==2018 [2025-03-30 23:38:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:38:06 - End Time 2025-03-30 23:38:06 [2025-03-30 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799580', 'tblTempUsageDetail_20' ) start [2025-03-30 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799580', 'tblTempUsageDetail_20' ) end [2025-03-30 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799580', 'tblTempVendorCDR_20' ) start [2025-03-30 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799580', 'tblTempVendorCDR_20' ) end [2025-03-30 23:38:19] Production.INFO: ProcessCDR(1,14799580,1,1,2) [2025-03-30 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799580', 'tblTempUsageDetail_20' ) start [2025-03-30 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799580', 'tblTempUsageDetail_20' ) end [2025-03-30 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:38:22] Production.INFO: ==20422== Releasing lock... [2025-03-30 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:39:05 [end_date_ymd] => 2025-03-30 23:39:05 [RateCDR] => 1 ) [2025-03-30 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:39:05' and `end` < '2025-03-30 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:39:17] Production.INFO: count ==2017 [2025-03-30 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:39:05 - End Time 2025-03-30 23:39:05 [2025-03-30 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799585', 'tblTempUsageDetail_20' ) start [2025-03-30 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799585', 'tblTempUsageDetail_20' ) end [2025-03-30 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799585', 'tblTempVendorCDR_20' ) start [2025-03-30 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799585', 'tblTempVendorCDR_20' ) end [2025-03-30 23:39:18] Production.INFO: ProcessCDR(1,14799585,1,1,2) [2025-03-30 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799585', 'tblTempUsageDetail_20' ) start [2025-03-30 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799585', 'tblTempUsageDetail_20' ) end [2025-03-30 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:39:21] Production.INFO: ==20505== Releasing lock... [2025-03-30 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:39:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:40:06 [end_date_ymd] => 2025-03-30 23:40:06 [RateCDR] => 1 ) [2025-03-30 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:40:06' and `end` < '2025-03-30 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:40:19] Production.INFO: count ==2013 [2025-03-30 23:40:20] Production.ERROR: pbx CDR StartTime 2025-03-30 20:40:06 - End Time 2025-03-30 23:40:06 [2025-03-30 23:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799591', 'tblTempUsageDetail_20' ) start [2025-03-30 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799591', 'tblTempUsageDetail_20' ) end [2025-03-30 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799591', 'tblTempVendorCDR_20' ) start [2025-03-30 23:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799591', 'tblTempVendorCDR_20' ) end [2025-03-30 23:40:20] Production.INFO: ProcessCDR(1,14799591,1,1,2) [2025-03-30 23:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799591', 'tblTempUsageDetail_20' ) start [2025-03-30 23:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799591', 'tblTempUsageDetail_20' ) end [2025-03-30 23:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:40:25] Production.INFO: ==20587== Releasing lock... [2025-03-30 23:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:40:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:41:05 [end_date_ymd] => 2025-03-30 23:41:05 [RateCDR] => 1 ) [2025-03-30 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:41:05' and `end` < '2025-03-30 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:41:18] Production.INFO: count ==1994 [2025-03-30 23:41:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:41:05 - End Time 2025-03-30 23:41:05 [2025-03-30 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799596', 'tblTempUsageDetail_20' ) start [2025-03-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799596', 'tblTempUsageDetail_20' ) end [2025-03-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799596', 'tblTempVendorCDR_20' ) start [2025-03-30 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799596', 'tblTempVendorCDR_20' ) end [2025-03-30 23:41:19] Production.INFO: ProcessCDR(1,14799596,1,1,2) [2025-03-30 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799596', 'tblTempUsageDetail_20' ) start [2025-03-30 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799596', 'tblTempUsageDetail_20' ) end [2025-03-30 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:41:22] Production.INFO: ==20673== Releasing lock... [2025-03-30 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:41:22] Production.INFO: 43 MB #Memory Used# [2025-03-30 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:42:05 [end_date_ymd] => 2025-03-30 23:42:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:42:05' and `end` < '2025-03-30 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-03-30 23:42:18] Production.INFO: count ==1979 [2025-03-30 23:42:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:42:05 - End Time 2025-03-30 23:42:05 [2025-03-30 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799601', 'tblTempUsageDetail_20' ) start [2025-03-30 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799601', 'tblTempUsageDetail_20' ) end [2025-03-30 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799601', 'tblTempVendorCDR_20' ) start [2025-03-30 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799601', 'tblTempVendorCDR_20' ) end [2025-03-30 23:42:19] Production.INFO: ProcessCDR(1,14799601,1,1,2) [2025-03-30 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799601', 'tblTempUsageDetail_20' ) start [2025-03-30 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799601', 'tblTempUsageDetail_20' ) end [2025-03-30 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:42:22] Production.INFO: ==20751== Releasing lock... [2025-03-30 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:42:22] Production.INFO: 43 MB #Memory Used# [2025-03-30 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:43:05 [end_date_ymd] => 2025-03-30 23:43:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:43:05' and `end` < '2025-03-30 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-03-30 23:43:18] Production.INFO: count ==1984 [2025-03-30 23:43:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:43:05 - End Time 2025-03-30 23:43:05 [2025-03-30 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799606', 'tblTempUsageDetail_20' ) start [2025-03-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799606', 'tblTempUsageDetail_20' ) end [2025-03-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799606', 'tblTempVendorCDR_20' ) start [2025-03-30 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799606', 'tblTempVendorCDR_20' ) end [2025-03-30 23:43:19] Production.INFO: ProcessCDR(1,14799606,1,1,2) [2025-03-30 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799606', 'tblTempUsageDetail_20' ) start [2025-03-30 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799606', 'tblTempUsageDetail_20' ) end [2025-03-30 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:43:22] Production.INFO: ==20830== Releasing lock... [2025-03-30 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:43:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:44:05 [end_date_ymd] => 2025-03-30 23:44:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:44:05' and `end` < '2025-03-30 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-03-30 23:44:18] Production.INFO: count ==1977 [2025-03-30 23:44:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:44:05 - End Time 2025-03-30 23:44:05 [2025-03-30 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799611', 'tblTempUsageDetail_20' ) start [2025-03-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799611', 'tblTempUsageDetail_20' ) end [2025-03-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799611', 'tblTempVendorCDR_20' ) start [2025-03-30 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799611', 'tblTempVendorCDR_20' ) end [2025-03-30 23:44:19] Production.INFO: ProcessCDR(1,14799611,1,1,2) [2025-03-30 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799611', 'tblTempUsageDetail_20' ) start [2025-03-30 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799611', 'tblTempUsageDetail_20' ) end [2025-03-30 23:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:44:24] Production.INFO: ==20913== Releasing lock... [2025-03-30 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:44:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:45:05 [end_date_ymd] => 2025-03-30 23:45:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:45:05' and `end` < '2025-03-30 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-03-30 23:45:18] Production.INFO: count ==1987 [2025-03-30 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:45:05 - End Time 2025-03-30 23:45:05 [2025-03-30 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799616', 'tblTempUsageDetail_20' ) start [2025-03-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799616', 'tblTempUsageDetail_20' ) end [2025-03-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799616', 'tblTempVendorCDR_20' ) start [2025-03-30 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799616', 'tblTempVendorCDR_20' ) end [2025-03-30 23:45:19] Production.INFO: ProcessCDR(1,14799616,1,1,2) [2025-03-30 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799616', 'tblTempUsageDetail_20' ) start [2025-03-30 23:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799616', 'tblTempUsageDetail_20' ) end [2025-03-30 23:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:45:24] Production.INFO: ==20994== Releasing lock... [2025-03-30 23:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:45:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:46:06 [end_date_ymd] => 2025-03-30 23:46:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:46:06' and `end` < '2025-03-30 23: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-03-30 23:46:19] Production.INFO: count ==1985 [2025-03-30 23:46:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:46:06 - End Time 2025-03-30 23:46:06 [2025-03-30 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799621', 'tblTempUsageDetail_20' ) start [2025-03-30 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799621', 'tblTempUsageDetail_20' ) end [2025-03-30 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799621', 'tblTempVendorCDR_20' ) start [2025-03-30 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799621', 'tblTempVendorCDR_20' ) end [2025-03-30 23:46:20] Production.INFO: ProcessCDR(1,14799621,1,1,2) [2025-03-30 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799621', 'tblTempUsageDetail_20' ) start [2025-03-30 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799621', 'tblTempUsageDetail_20' ) end [2025-03-30 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:46:23] Production.INFO: ==21074== Releasing lock... [2025-03-30 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:46:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-30 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:47:06 [end_date_ymd] => 2025-03-30 23:47:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:47:06' and `end` < '2025-03-30 23: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-03-30 23:47:18] Production.INFO: count ==1990 [2025-03-30 23:47:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:47:06 - End Time 2025-03-30 23:47:06 [2025-03-30 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799626', 'tblTempUsageDetail_20' ) start [2025-03-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799626', 'tblTempUsageDetail_20' ) end [2025-03-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799626', 'tblTempVendorCDR_20' ) start [2025-03-30 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799626', 'tblTempVendorCDR_20' ) end [2025-03-30 23:47:19] Production.INFO: ProcessCDR(1,14799626,1,1,2) [2025-03-30 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799626', 'tblTempUsageDetail_20' ) start [2025-03-30 23:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799626', 'tblTempUsageDetail_20' ) end [2025-03-30 23:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:47:23] Production.INFO: ==21154== Releasing lock... [2025-03-30 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:47:23] Production.INFO: 43 MB #Memory Used# [2025-03-30 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:48:06 [end_date_ymd] => 2025-03-30 23:48:06 [RateCDR] => 1 ) [2025-03-30 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:48:06' and `end` < '2025-03-30 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:48:18] Production.INFO: count ==1982 [2025-03-30 23:48:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:48:06 - End Time 2025-03-30 23:48:06 [2025-03-30 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799631', 'tblTempUsageDetail_20' ) start [2025-03-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799631', 'tblTempUsageDetail_20' ) end [2025-03-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799631', 'tblTempVendorCDR_20' ) start [2025-03-30 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799631', 'tblTempVendorCDR_20' ) end [2025-03-30 23:48:19] Production.INFO: ProcessCDR(1,14799631,1,1,2) [2025-03-30 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799631', 'tblTempUsageDetail_20' ) start [2025-03-30 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799631', 'tblTempUsageDetail_20' ) end [2025-03-30 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:48:23] Production.INFO: ==21235== Releasing lock... [2025-03-30 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:48:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-30 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:49:05 [end_date_ymd] => 2025-03-30 23:49:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:49:05' and `end` < '2025-03-30 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-03-30 23:49:18] Production.INFO: count ==1979 [2025-03-30 23:49:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:49:05 - End Time 2025-03-30 23:49:05 [2025-03-30 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799636', 'tblTempUsageDetail_20' ) start [2025-03-30 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799636', 'tblTempUsageDetail_20' ) end [2025-03-30 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799636', 'tblTempVendorCDR_20' ) start [2025-03-30 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799636', 'tblTempVendorCDR_20' ) end [2025-03-30 23:49:19] Production.INFO: ProcessCDR(1,14799636,1,1,2) [2025-03-30 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799636', 'tblTempUsageDetail_20' ) start [2025-03-30 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799636', 'tblTempUsageDetail_20' ) end [2025-03-30 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:49:22] Production.INFO: ==21321== Releasing lock... [2025-03-30 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:49:22] Production.INFO: 43 MB #Memory Used# [2025-03-30 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:50:06 [end_date_ymd] => 2025-03-30 23:50:06 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:50:06' and `end` < '2025-03-30 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-03-30 23:50:19] Production.INFO: count ==1971 [2025-03-30 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:50:06 - End Time 2025-03-30 23:50:06 [2025-03-30 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799641', 'tblTempUsageDetail_20' ) start [2025-03-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799641', 'tblTempUsageDetail_20' ) end [2025-03-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799641', 'tblTempVendorCDR_20' ) start [2025-03-30 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799641', 'tblTempVendorCDR_20' ) end [2025-03-30 23:50:19] Production.INFO: ProcessCDR(1,14799641,1,1,2) [2025-03-30 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799641', 'tblTempUsageDetail_20' ) start [2025-03-30 23:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799641', 'tblTempUsageDetail_20' ) end [2025-03-30 23:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:50:24] Production.INFO: ==21441== Releasing lock... [2025-03-30 23:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:50:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:51:05 [end_date_ymd] => 2025-03-30 23:51:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:51:05' and `end` < '2025-03-30 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-03-30 23:51:17] Production.INFO: count ==1960 [2025-03-30 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:51:05 - End Time 2025-03-30 23:51:05 [2025-03-30 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799647', 'tblTempUsageDetail_20' ) start [2025-03-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799647', 'tblTempUsageDetail_20' ) end [2025-03-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799647', 'tblTempVendorCDR_20' ) start [2025-03-30 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799647', 'tblTempVendorCDR_20' ) end [2025-03-30 23:51:18] Production.INFO: ProcessCDR(1,14799647,1,1,2) [2025-03-30 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799647', 'tblTempUsageDetail_20' ) start [2025-03-30 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799647', 'tblTempUsageDetail_20' ) end [2025-03-30 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:51:23] Production.INFO: ==21529== Releasing lock... [2025-03-30 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:51:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:52:05 [end_date_ymd] => 2025-03-30 23:52:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:52:05' and `end` < '2025-03-30 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-03-30 23:52:18] Production.INFO: count ==1936 [2025-03-30 23:52:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:52:05 - End Time 2025-03-30 23:52:05 [2025-03-30 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799652', 'tblTempUsageDetail_20' ) start [2025-03-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799652', 'tblTempUsageDetail_20' ) end [2025-03-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799652', 'tblTempVendorCDR_20' ) start [2025-03-30 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799652', 'tblTempVendorCDR_20' ) end [2025-03-30 23:52:19] Production.INFO: ProcessCDR(1,14799652,1,1,2) [2025-03-30 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799652', 'tblTempUsageDetail_20' ) start [2025-03-30 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799652', 'tblTempUsageDetail_20' ) end [2025-03-30 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:52:22] Production.INFO: ==21613== Releasing lock... [2025-03-30 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:52:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-30 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:53:05 [end_date_ymd] => 2025-03-30 23:53:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:53:05' and `end` < '2025-03-30 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-03-30 23:53:17] Production.INFO: count ==1932 [2025-03-30 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:53:05 - End Time 2025-03-30 23:53:05 [2025-03-30 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799657', 'tblTempUsageDetail_20' ) start [2025-03-30 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799657', 'tblTempUsageDetail_20' ) end [2025-03-30 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799657', 'tblTempVendorCDR_20' ) start [2025-03-30 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799657', 'tblTempVendorCDR_20' ) end [2025-03-30 23:53:18] Production.INFO: ProcessCDR(1,14799657,1,1,2) [2025-03-30 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799657', 'tblTempUsageDetail_20' ) start [2025-03-30 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799657', 'tblTempUsageDetail_20' ) end [2025-03-30 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:53:22] Production.INFO: ==21690== Releasing lock... [2025-03-30 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:53:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-30 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:54:05 [end_date_ymd] => 2025-03-30 23:54:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:54:05' and `end` < '2025-03-30 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-03-30 23:54:18] Production.INFO: count ==1906 [2025-03-30 23:54:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:54:05 - End Time 2025-03-30 23:54:05 [2025-03-30 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799662', 'tblTempUsageDetail_20' ) start [2025-03-30 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799662', 'tblTempUsageDetail_20' ) end [2025-03-30 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799662', 'tblTempVendorCDR_20' ) start [2025-03-30 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799662', 'tblTempVendorCDR_20' ) end [2025-03-30 23:54:19] Production.INFO: ProcessCDR(1,14799662,1,1,2) [2025-03-30 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799662', 'tblTempUsageDetail_20' ) start [2025-03-30 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799662', 'tblTempUsageDetail_20' ) end [2025-03-30 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:54:22] Production.INFO: ==21768== Releasing lock... [2025-03-30 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:54:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:55:05 [end_date_ymd] => 2025-03-30 23:55:05 [RateCDR] => 1 ) [2025-03-30 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-30 20:55:05' and `end` < '2025-03-30 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-30 23:55:18] Production.INFO: count ==1907 [2025-03-30 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:55:05 - End Time 2025-03-30 23:55:05 [2025-03-30 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799667', 'tblTempUsageDetail_20' ) start [2025-03-30 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799667', 'tblTempUsageDetail_20' ) end [2025-03-30 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799667', 'tblTempVendorCDR_20' ) start [2025-03-30 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799667', 'tblTempVendorCDR_20' ) end [2025-03-30 23:55:18] Production.INFO: ProcessCDR(1,14799667,1,1,2) [2025-03-30 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799667', 'tblTempUsageDetail_20' ) start [2025-03-30 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799667', 'tblTempUsageDetail_20' ) end [2025-03-30 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:55:22] Production.INFO: ==21848== Releasing lock... [2025-03-30 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:56:06 [end_date_ymd] => 2025-03-30 23:56:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:56:06' and `end` < '2025-03-30 23: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-03-30 23:56:18] Production.INFO: count ==1893 [2025-03-30 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:56:06 - End Time 2025-03-30 23:56:06 [2025-03-30 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799672', 'tblTempUsageDetail_20' ) start [2025-03-30 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799672', 'tblTempUsageDetail_20' ) end [2025-03-30 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799672', 'tblTempVendorCDR_20' ) start [2025-03-30 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799672', 'tblTempVendorCDR_20' ) end [2025-03-30 23:56:19] Production.INFO: ProcessCDR(1,14799672,1,1,2) [2025-03-30 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799672', 'tblTempUsageDetail_20' ) start [2025-03-30 23:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799672', 'tblTempUsageDetail_20' ) end [2025-03-30 23:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:56:24] Production.INFO: ==21927== Releasing lock... [2025-03-30 23:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:56:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:57:05 [end_date_ymd] => 2025-03-30 23:57:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:57:05' and `end` < '2025-03-30 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-03-30 23:57:18] Production.INFO: count ==1893 [2025-03-30 23:57:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:57:05 - End Time 2025-03-30 23:57:05 [2025-03-30 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799677', 'tblTempUsageDetail_20' ) start [2025-03-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799677', 'tblTempUsageDetail_20' ) end [2025-03-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799677', 'tblTempVendorCDR_20' ) start [2025-03-30 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799677', 'tblTempVendorCDR_20' ) end [2025-03-30 23:57:19] Production.INFO: ProcessCDR(1,14799677,1,1,2) [2025-03-30 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799677', 'tblTempUsageDetail_20' ) start [2025-03-30 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799677', 'tblTempUsageDetail_20' ) end [2025-03-30 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:57:24] Production.INFO: ==22011== Releasing lock... [2025-03-30 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:57:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:58:06 [end_date_ymd] => 2025-03-30 23:58:06 [RateCDR] => 1 ) [2025-03-30 23: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-03-30 20:58:06' and `end` < '2025-03-30 23: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-03-30 23:58:18] Production.INFO: count ==1882 [2025-03-30 23:58:19] Production.ERROR: pbx CDR StartTime 2025-03-30 20:58:06 - End Time 2025-03-30 23:58:06 [2025-03-30 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799682', 'tblTempUsageDetail_20' ) start [2025-03-30 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799682', 'tblTempUsageDetail_20' ) end [2025-03-30 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799682', 'tblTempVendorCDR_20' ) start [2025-03-30 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799682', 'tblTempVendorCDR_20' ) end [2025-03-30 23:58:19] Production.INFO: ProcessCDR(1,14799682,1,1,2) [2025-03-30 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799682', 'tblTempUsageDetail_20' ) start [2025-03-30 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799682', 'tblTempUsageDetail_20' ) end [2025-03-30 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:58:23] Production.INFO: ==22090== Releasing lock... [2025-03-30 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:58:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-30 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-30 20:59:05 [end_date_ymd] => 2025-03-30 23:59:05 [RateCDR] => 1 ) [2025-03-30 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-03-30 20:59:05' and `end` < '2025-03-30 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-03-30 23:59:17] Production.INFO: count ==1884 [2025-03-30 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-30 20:59:05 - End Time 2025-03-30 23:59:05 [2025-03-30 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799687', 'tblTempUsageDetail_20' ) start [2025-03-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14799687', 'tblTempUsageDetail_20' ) end [2025-03-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799687', 'tblTempVendorCDR_20' ) start [2025-03-30 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14799687', 'tblTempVendorCDR_20' ) end [2025-03-30 23:59:18] Production.INFO: ProcessCDR(1,14799687,1,1,2) [2025-03-30 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14799687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14799687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-30 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14799687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14799687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799687', 'tblTempUsageDetail_20' ) start [2025-03-30 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14799687', 'tblTempUsageDetail_20' ) end [2025-03-30 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-30 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-30 23:59:21] Production.INFO: ==22170== Releasing lock... [2025-03-30 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-30 23:59:21] Production.INFO: 42.25 MB #Memory Used#