[2025-07-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 21:25:05 [end_date_ymd] => 2025-07-20 00:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-19 21:25:05' and `end` < '2025-07-20 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-07-20 00:25:17] Production.INFO: count ==619 [2025-07-20 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 21:25:05 - End Time 2025-07-20 00:25:05 [2025-07-20 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503462', 'tblTempUsageDetail_20' ) start [2025-07-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503462', 'tblTempUsageDetail_20' ) end [2025-07-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503462', 'tblTempVendorCDR_20' ) start [2025-07-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503462', 'tblTempVendorCDR_20' ) end [2025-07-20 00:25:18] Production.INFO: ProcessCDR(1,15503462,1,1,2) [2025-07-20 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15503462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15503462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15503462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15503462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503462', 'tblTempUsageDetail_20' ) start [2025-07-20 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503462', 'tblTempUsageDetail_20' ) end [2025-07-20 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 00:25:26] Production.INFO: ==25067== Releasing lock... [2025-07-20 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 00:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-07-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 22:25:05 [end_date_ymd] => 2025-07-20 01:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-19 22:25:05' and `end` < '2025-07-20 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-07-20 01:25:17] Production.INFO: count ==660 [2025-07-20 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 22:25:05 - End Time 2025-07-20 01:25:05 [2025-07-20 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503709', 'tblTempUsageDetail_20' ) start [2025-07-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503709', 'tblTempUsageDetail_20' ) end [2025-07-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503709', 'tblTempVendorCDR_20' ) start [2025-07-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503709', 'tblTempVendorCDR_20' ) end [2025-07-20 01:25:18] Production.INFO: ProcessCDR(1,15503709,1,1,2) [2025-07-20 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15503709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15503709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15503709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15503709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503709', 'tblTempUsageDetail_20' ) start [2025-07-20 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503709', 'tblTempUsageDetail_20' ) end [2025-07-20 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 01:25:24] Production.INFO: ==29623== Releasing lock... [2025-07-20 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 01:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-07-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 23:25:05 [end_date_ymd] => 2025-07-20 02:25:05 [RateCDR] => 1 ) [2025-07-20 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-19 23:25:05' and `end` < '2025-07-20 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 02:25:19] Production.INFO: count ==678 [2025-07-20 02:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 23:25:05 - End Time 2025-07-20 02:25:05 [2025-07-20 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503956', 'tblTempUsageDetail_20' ) start [2025-07-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503956', 'tblTempUsageDetail_20' ) end [2025-07-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503956', 'tblTempVendorCDR_20' ) start [2025-07-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503956', 'tblTempVendorCDR_20' ) end [2025-07-20 02:25:19] Production.INFO: ProcessCDR(1,15503956,1,1,2) [2025-07-20 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15503956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15503956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15503956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15503956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503956', 'tblTempUsageDetail_20' ) start [2025-07-20 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503956', 'tblTempUsageDetail_20' ) end [2025-07-20 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 02:25:26] Production.INFO: ==1670== Releasing lock... [2025-07-20 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 02:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-07-20 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 00:25:04 [end_date_ymd] => 2025-07-20 03:25:04 [RateCDR] => 1 ) [2025-07-20 03: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-07-20 00:25:04' and `end` < '2025-07-20 03: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-07-20 03:25:16] Production.INFO: count ==623 [2025-07-20 03:25:16] Production.ERROR: pbx CDR StartTime 2025-07-20 00:25:04 - End Time 2025-07-20 03:25:04 [2025-07-20 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504203', 'tblTempUsageDetail_20' ) start [2025-07-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504203', 'tblTempUsageDetail_20' ) end [2025-07-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504203', 'tblTempVendorCDR_20' ) start [2025-07-20 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504203', 'tblTempVendorCDR_20' ) end [2025-07-20 03:25:16] Production.INFO: ProcessCDR(1,15504203,1,1,2) [2025-07-20 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15504203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15504203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15504203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15504203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504203', 'tblTempUsageDetail_20' ) start [2025-07-20 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504203', 'tblTempUsageDetail_20' ) end [2025-07-20 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-20 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-20 03:25:23] Production.INFO: ==5852== Releasing lock... [2025-07-20 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 03:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-07-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 01:25:05 [end_date_ymd] => 2025-07-20 04:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 01:25:05' and `end` < '2025-07-20 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-07-20 04:25:17] Production.INFO: count ==406 [2025-07-20 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 01:25:05 - End Time 2025-07-20 04:25:05 [2025-07-20 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504451', 'tblTempUsageDetail_20' ) start [2025-07-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504451', 'tblTempUsageDetail_20' ) end [2025-07-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504451', 'tblTempVendorCDR_20' ) start [2025-07-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504451', 'tblTempVendorCDR_20' ) end [2025-07-20 04:25:18] Production.INFO: ProcessCDR(1,15504451,1,1,2) [2025-07-20 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15504451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15504451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15504451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15504451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504451', 'tblTempUsageDetail_20' ) start [2025-07-20 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504451', 'tblTempUsageDetail_20' ) end [2025-07-20 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 04:25:24] Production.INFO: ==10214== Releasing lock... [2025-07-20 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 04:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-07-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 02:25:05 [end_date_ymd] => 2025-07-20 05:25:05 [RateCDR] => 1 ) [2025-07-20 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 02:25:05' and `end` < '2025-07-20 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 05:25:17] Production.INFO: count ==466 [2025-07-20 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 02:25:05 - End Time 2025-07-20 05:25:05 [2025-07-20 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504699', 'tblTempUsageDetail_20' ) start [2025-07-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504699', 'tblTempUsageDetail_20' ) end [2025-07-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504699', 'tblTempVendorCDR_20' ) start [2025-07-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504699', 'tblTempVendorCDR_20' ) end [2025-07-20 05:25:18] Production.INFO: ProcessCDR(1,15504699,1,1,2) [2025-07-20 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15504699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15504699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15504699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15504699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504699', 'tblTempUsageDetail_20' ) start [2025-07-20 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504699', 'tblTempUsageDetail_20' ) end [2025-07-20 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 05:25:24] Production.INFO: ==14688== Releasing lock... [2025-07-20 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 05:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-07-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 03:25:05 [end_date_ymd] => 2025-07-20 06:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 03:25:05' and `end` < '2025-07-20 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-07-20 06:25:18] Production.INFO: count ==385 [2025-07-20 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 03:25:05 - End Time 2025-07-20 06:25:05 [2025-07-20 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504946', 'tblTempUsageDetail_20' ) start [2025-07-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15504946', 'tblTempUsageDetail_20' ) end [2025-07-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504946', 'tblTempVendorCDR_20' ) start [2025-07-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15504946', 'tblTempVendorCDR_20' ) end [2025-07-20 06:25:18] Production.INFO: ProcessCDR(1,15504946,1,1,2) [2025-07-20 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15504946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15504946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15504946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15504946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504946', 'tblTempUsageDetail_20' ) start [2025-07-20 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15504946', 'tblTempUsageDetail_20' ) end [2025-07-20 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 06:25:24] Production.INFO: ==19074== Releasing lock... [2025-07-20 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 06:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-07-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 04:25:05 [end_date_ymd] => 2025-07-20 07:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 04:25:05' and `end` < '2025-07-20 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-07-20 07:25:18] Production.INFO: count ==349 [2025-07-20 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 04:25:05 - End Time 2025-07-20 07:25:05 [2025-07-20 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505193', 'tblTempUsageDetail_20' ) start [2025-07-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505193', 'tblTempUsageDetail_20' ) end [2025-07-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505193', 'tblTempVendorCDR_20' ) start [2025-07-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505193', 'tblTempVendorCDR_20' ) end [2025-07-20 07:25:18] Production.INFO: ProcessCDR(1,15505193,1,1,2) [2025-07-20 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15505193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15505193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15505193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15505193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505193', 'tblTempUsageDetail_20' ) start [2025-07-20 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505193', 'tblTempUsageDetail_20' ) end [2025-07-20 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-20 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-20 07:25:23] Production.INFO: ==23827== Releasing lock... [2025-07-20 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 07:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-07-20 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 05:25:05 [end_date_ymd] => 2025-07-20 08:25:05 [RateCDR] => 1 ) [2025-07-20 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 05:25:05' and `end` < '2025-07-20 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 08:25:17] Production.INFO: count ==142 [2025-07-20 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-20 05:25:05 - End Time 2025-07-20 08:25:05 [2025-07-20 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505440', 'tblTempUsageDetail_20' ) start [2025-07-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505440', 'tblTempUsageDetail_20' ) end [2025-07-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505440', 'tblTempVendorCDR_20' ) start [2025-07-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505440', 'tblTempVendorCDR_20' ) end [2025-07-20 08:25:17] Production.INFO: ProcessCDR(1,15505440,1,1,2) [2025-07-20 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15505440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15505440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15505440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15505440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505440', 'tblTempUsageDetail_20' ) start [2025-07-20 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505440', 'tblTempUsageDetail_20' ) end [2025-07-20 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 08:25:24] Production.INFO: ==28754== Releasing lock... [2025-07-20 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 06:25:05 [end_date_ymd] => 2025-07-20 09:25:05 [RateCDR] => 1 ) [2025-07-20 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 06:25:05' and `end` < '2025-07-20 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 09:25:17] Production.INFO: count ==130 [2025-07-20 09:25:17] Production.ERROR: pbx CDR StartTime 2025-07-20 06:25:05 - End Time 2025-07-20 09:25:05 [2025-07-20 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505687', 'tblTempUsageDetail_20' ) start [2025-07-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505687', 'tblTempUsageDetail_20' ) end [2025-07-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505687', 'tblTempVendorCDR_20' ) start [2025-07-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505687', 'tblTempVendorCDR_20' ) end [2025-07-20 09:25:17] Production.INFO: ProcessCDR(1,15505687,1,1,2) [2025-07-20 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15505687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15505687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15505687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15505687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505687', 'tblTempUsageDetail_20' ) start [2025-07-20 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505687', 'tblTempUsageDetail_20' ) end [2025-07-20 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 09:25:24] Production.INFO: ==1722== Releasing lock... [2025-07-20 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 09:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 07:25:05 [end_date_ymd] => 2025-07-20 10:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 07:25:05' and `end` < '2025-07-20 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-07-20 10:25:17] Production.INFO: count ==223 [2025-07-20 10:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 07:25:05 - End Time 2025-07-20 10:25:05 [2025-07-20 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505934', 'tblTempUsageDetail_20' ) start [2025-07-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15505934', 'tblTempUsageDetail_20' ) end [2025-07-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505934', 'tblTempVendorCDR_20' ) start [2025-07-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15505934', 'tblTempVendorCDR_20' ) end [2025-07-20 10:25:18] Production.INFO: ProcessCDR(1,15505934,1,1,2) [2025-07-20 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15505934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15505934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15505934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15505934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505934', 'tblTempUsageDetail_20' ) start [2025-07-20 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15505934', 'tblTempUsageDetail_20' ) end [2025-07-20 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-20 10:25:24] Production.INFO: ==7697== Releasing lock... [2025-07-20 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 10:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-20 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 08:25:06 [end_date_ymd] => 2025-07-20 11:25:06 [RateCDR] => 1 ) [2025-07-20 11: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-07-20 08:25:06' and `end` < '2025-07-20 11: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-07-20 11:25:18] Production.INFO: count ==382 [2025-07-20 11:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 08:25:06 - End Time 2025-07-20 11:25:06 [2025-07-20 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506181', 'tblTempUsageDetail_20' ) start [2025-07-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506181', 'tblTempUsageDetail_20' ) end [2025-07-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506181', 'tblTempVendorCDR_20' ) start [2025-07-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506181', 'tblTempVendorCDR_20' ) end [2025-07-20 11:25:18] Production.INFO: ProcessCDR(1,15506181,1,1,2) [2025-07-20 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15506181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15506181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15506181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15506181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506181', 'tblTempUsageDetail_20' ) start [2025-07-20 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506181', 'tblTempUsageDetail_20' ) end [2025-07-20 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 11:25:25] Production.INFO: ==12108== Releasing lock... [2025-07-20 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 11:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-07-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 09:25:05 [end_date_ymd] => 2025-07-20 12:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 09:25:05' and `end` < '2025-07-20 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-07-20 12:25:17] Production.INFO: count ==664 [2025-07-20 12:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 09:25:05 - End Time 2025-07-20 12:25:05 [2025-07-20 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506428', 'tblTempUsageDetail_20' ) start [2025-07-20 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506428', 'tblTempUsageDetail_20' ) end [2025-07-20 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506428', 'tblTempVendorCDR_20' ) start [2025-07-20 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506428', 'tblTempVendorCDR_20' ) end [2025-07-20 12:25:18] Production.INFO: ProcessCDR(1,15506428,1,1,2) [2025-07-20 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15506428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15506428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15506428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15506428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506428', 'tblTempUsageDetail_20' ) start [2025-07-20 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506428', 'tblTempUsageDetail_20' ) end [2025-07-20 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 12:25:26] Production.INFO: ==16714== Releasing lock... [2025-07-20 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 12:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-07-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 10:25:05 [end_date_ymd] => 2025-07-20 13:25:05 [RateCDR] => 1 ) [2025-07-20 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 10:25:05' and `end` < '2025-07-20 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 13:25:18] Production.INFO: count ==819 [2025-07-20 13:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 10:25:05 - End Time 2025-07-20 13:25:05 [2025-07-20 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506675', 'tblTempUsageDetail_20' ) start [2025-07-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506675', 'tblTempUsageDetail_20' ) end [2025-07-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506675', 'tblTempVendorCDR_20' ) start [2025-07-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506675', 'tblTempVendorCDR_20' ) end [2025-07-20 13:25:18] Production.INFO: ProcessCDR(1,15506675,1,1,2) [2025-07-20 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15506675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15506675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15506675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15506675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506675', 'tblTempUsageDetail_20' ) start [2025-07-20 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506675', 'tblTempUsageDetail_20' ) end [2025-07-20 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 13:25:25] Production.INFO: ==21416== Releasing lock... [2025-07-20 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 13:25:25] Production.INFO: 34.5 MB #Memory Used# [2025-07-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 11:25:05 [end_date_ymd] => 2025-07-20 14:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 11:25:05' and `end` < '2025-07-20 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-07-20 14:25:17] Production.INFO: count ==923 [2025-07-20 14:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 11:25:05 - End Time 2025-07-20 14:25:05 [2025-07-20 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506922', 'tblTempUsageDetail_20' ) start [2025-07-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15506922', 'tblTempUsageDetail_20' ) end [2025-07-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506922', 'tblTempVendorCDR_20' ) start [2025-07-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15506922', 'tblTempVendorCDR_20' ) end [2025-07-20 14:25:18] Production.INFO: ProcessCDR(1,15506922,1,1,2) [2025-07-20 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15506922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15506922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15506922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15506922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506922', 'tblTempUsageDetail_20' ) start [2025-07-20 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15506922', 'tblTempUsageDetail_20' ) end [2025-07-20 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 14:25:25] Production.INFO: ==26129== Releasing lock... [2025-07-20 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 14:25:25] Production.INFO: 35.25 MB #Memory Used# [2025-07-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 12:25:05 [end_date_ymd] => 2025-07-20 15:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 12:25:05' and `end` < '2025-07-20 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-07-20 15:25:19] Production.INFO: count ==942 [2025-07-20 15:25:19] Production.ERROR: pbx CDR StartTime 2025-07-20 12:25:05 - End Time 2025-07-20 15:25:05 [2025-07-20 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507169', 'tblTempUsageDetail_20' ) start [2025-07-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507169', 'tblTempUsageDetail_20' ) end [2025-07-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507169', 'tblTempVendorCDR_20' ) start [2025-07-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507169', 'tblTempVendorCDR_20' ) end [2025-07-20 15:25:19] Production.INFO: ProcessCDR(1,15507169,1,1,2) [2025-07-20 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15507169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15507169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15507169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15507169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507169', 'tblTempUsageDetail_20' ) start [2025-07-20 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507169', 'tblTempUsageDetail_20' ) end [2025-07-20 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-20 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-20 15:25:27] Production.INFO: ==30953== Releasing lock... [2025-07-20 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 15:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-07-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 13:25:05 [end_date_ymd] => 2025-07-20 16:25:05 [RateCDR] => 1 ) [2025-07-20 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 13:25:05' and `end` < '2025-07-20 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 16:25:18] Production.INFO: count ==1101 [2025-07-20 16:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 13:25:05 - End Time 2025-07-20 16:25:05 [2025-07-20 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507416', 'tblTempUsageDetail_20' ) start [2025-07-20 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507416', 'tblTempUsageDetail_20' ) end [2025-07-20 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507416', 'tblTempVendorCDR_20' ) start [2025-07-20 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507416', 'tblTempVendorCDR_20' ) end [2025-07-20 16:25:18] Production.INFO: ProcessCDR(1,15507416,1,1,2) [2025-07-20 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15507416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15507416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15507416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15507416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507416', 'tblTempUsageDetail_20' ) start [2025-07-20 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507416', 'tblTempUsageDetail_20' ) end [2025-07-20 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 16:25:26] Production.INFO: ==3263== Releasing lock... [2025-07-20 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 16:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-07-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 14:25:05 [end_date_ymd] => 2025-07-20 17:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 14:25:05' and `end` < '2025-07-20 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-07-20 17:25:17] Production.INFO: count ==1245 [2025-07-20 17:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 14:25:05 - End Time 2025-07-20 17:25:05 [2025-07-20 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507663', 'tblTempUsageDetail_20' ) start [2025-07-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507663', 'tblTempUsageDetail_20' ) end [2025-07-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507663', 'tblTempVendorCDR_20' ) start [2025-07-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507663', 'tblTempVendorCDR_20' ) end [2025-07-20 17:25:18] Production.INFO: ProcessCDR(1,15507663,1,1,2) [2025-07-20 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15507663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15507663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15507663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15507663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507663', 'tblTempUsageDetail_20' ) start [2025-07-20 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507663', 'tblTempUsageDetail_20' ) end [2025-07-20 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-20 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 17:25:25] Production.INFO: ==7903== Releasing lock... [2025-07-20 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 17:25:25] Production.INFO: 37.5 MB #Memory Used# [2025-07-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 15:25:05 [end_date_ymd] => 2025-07-20 18:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 15:25:05' and `end` < '2025-07-20 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-07-20 18:25:17] Production.INFO: count ==1331 [2025-07-20 18:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 15:25:05 - End Time 2025-07-20 18:25:05 [2025-07-20 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507910', 'tblTempUsageDetail_20' ) start [2025-07-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15507910', 'tblTempUsageDetail_20' ) end [2025-07-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507910', 'tblTempVendorCDR_20' ) start [2025-07-20 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15507910', 'tblTempVendorCDR_20' ) end [2025-07-20 18:25:18] Production.INFO: ProcessCDR(1,15507910,1,1,2) [2025-07-20 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15507910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15507910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15507910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15507910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507910', 'tblTempUsageDetail_20' ) start [2025-07-20 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15507910', 'tblTempUsageDetail_20' ) end [2025-07-20 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 18:25:25] Production.INFO: ==12374== Releasing lock... [2025-07-20 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 18:25:25] Production.INFO: 38 MB #Memory Used# [2025-07-20 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 16:25:05 [end_date_ymd] => 2025-07-20 19:25:05 [RateCDR] => 1 ) [2025-07-20 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 16:25:05' and `end` < '2025-07-20 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 19:25:18] Production.INFO: count ==1398 [2025-07-20 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 16:25:05 - End Time 2025-07-20 19:25:05 [2025-07-20 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508154', 'tblTempUsageDetail_20' ) start [2025-07-20 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508154', 'tblTempUsageDetail_20' ) end [2025-07-20 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508154', 'tblTempVendorCDR_20' ) start [2025-07-20 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508154', 'tblTempVendorCDR_20' ) end [2025-07-20 19:25:18] Production.INFO: ProcessCDR(1,15508154,1,1,2) [2025-07-20 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15508154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15508154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15508154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15508154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508154', 'tblTempUsageDetail_20' ) start [2025-07-20 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508154', 'tblTempUsageDetail_20' ) end [2025-07-20 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 19:25:26] Production.INFO: ==16668== Releasing lock... [2025-07-20 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 19:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-07-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 17:25:05 [end_date_ymd] => 2025-07-20 20:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 17:25:05' and `end` < '2025-07-20 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-07-20 20:25:18] Production.INFO: count ==1300 [2025-07-20 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 17:25:05 - End Time 2025-07-20 20:25:05 [2025-07-20 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508401', 'tblTempUsageDetail_20' ) start [2025-07-20 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508401', 'tblTempUsageDetail_20' ) end [2025-07-20 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508401', 'tblTempVendorCDR_20' ) start [2025-07-20 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508401', 'tblTempVendorCDR_20' ) end [2025-07-20 20:25:18] Production.INFO: ProcessCDR(1,15508401,1,1,2) [2025-07-20 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15508401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15508401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15508401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15508401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508401', 'tblTempUsageDetail_20' ) start [2025-07-20 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508401', 'tblTempUsageDetail_20' ) end [2025-07-20 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 20:25:25] Production.INFO: ==21098== Releasing lock... [2025-07-20 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 20:25:25] Production.INFO: 38 MB #Memory Used# [2025-07-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 18:25:05 [end_date_ymd] => 2025-07-20 21:25:05 [RateCDR] => 1 ) [2025-07-20 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-07-20 18:25:05' and `end` < '2025-07-20 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-07-20 21:25:18] Production.INFO: count ==1150 [2025-07-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 18:25:05 - End Time 2025-07-20 21:25:05 [2025-07-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508648', 'tblTempUsageDetail_20' ) start [2025-07-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508648', 'tblTempUsageDetail_20' ) end [2025-07-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508648', 'tblTempVendorCDR_20' ) start [2025-07-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508648', 'tblTempVendorCDR_20' ) end [2025-07-20 21:25:18] Production.INFO: ProcessCDR(1,15508648,1,1,2) [2025-07-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15508648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15508648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15508648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15508648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508648', 'tblTempUsageDetail_20' ) start [2025-07-20 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508648', 'tblTempUsageDetail_20' ) end [2025-07-20 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 21:25:26] Production.INFO: ==25505== Releasing lock... [2025-07-20 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 21:25:26] Production.INFO: 37 MB #Memory Used# [2025-07-20 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 19:25:06 [end_date_ymd] => 2025-07-20 22:25:06 [RateCDR] => 1 ) [2025-07-20 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 19:25:06' and `end` < '2025-07-20 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 22:25:18] Production.INFO: count ==1108 [2025-07-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 19:25:06 - End Time 2025-07-20 22:25:06 [2025-07-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508895', 'tblTempUsageDetail_20' ) start [2025-07-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15508895', 'tblTempUsageDetail_20' ) end [2025-07-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508895', 'tblTempVendorCDR_20' ) start [2025-07-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15508895', 'tblTempVendorCDR_20' ) end [2025-07-20 22:25:18] Production.INFO: ProcessCDR(1,15508895,1,1,2) [2025-07-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15508895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15508895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15508895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15508895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508895', 'tblTempUsageDetail_20' ) start [2025-07-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15508895', 'tblTempUsageDetail_20' ) end [2025-07-20 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-20 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-20 22:25:26] Production.INFO: ==29977== Releasing lock... [2025-07-20 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-07-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 20:25:05 [end_date_ymd] => 2025-07-20 23:25:05 [RateCDR] => 1 ) [2025-07-20 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-20 20:25:05' and `end` < '2025-07-20 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-20 23:25:17] Production.INFO: count ==1018 [2025-07-20 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 20:25:05 - End Time 2025-07-20 23:25:05 [2025-07-20 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509142', 'tblTempUsageDetail_20' ) start [2025-07-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509142', 'tblTempUsageDetail_20' ) end [2025-07-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509142', 'tblTempVendorCDR_20' ) start [2025-07-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509142', 'tblTempVendorCDR_20' ) end [2025-07-20 23:25:18] Production.INFO: ProcessCDR(1,15509142,1,1,2) [2025-07-20 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15509142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15509142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-20 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15509142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15509142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509142', 'tblTempUsageDetail_20' ) start [2025-07-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509142', 'tblTempUsageDetail_20' ) end [2025-07-20 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-20 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-20 23:25:25] Production.INFO: ==2139== Releasing lock... [2025-07-20 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-20 23:25:25] Production.INFO: 36 MB #Memory Used#