[2025-09-17 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 21:25:06 [end_date_ymd] => 2025-09-17 00:25:06 [RateCDR] => 1 ) [2025-09-17 00: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-09-16 21:25:06' and `end` < '2025-09-17 00: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-09-17 00:25:21] Production.INFO: count ==543 [2025-09-17 00:25:21] Production.ERROR: pbx CDR StartTime 2025-09-16 21:25:06 - End Time 2025-09-17 00:25:06 [2025-09-17 00:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853170', 'tblTempUsageDetail_20' ) start [2025-09-17 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853170', 'tblTempUsageDetail_20' ) end [2025-09-17 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853170', 'tblTempVendorCDR_20' ) start [2025-09-17 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853170', 'tblTempVendorCDR_20' ) end [2025-09-17 00:25:21] Production.INFO: ProcessCDR(1,15853170,1,1,2) [2025-09-17 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15853170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15853170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15853170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15853170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853170', 'tblTempUsageDetail_20' ) start [2025-09-17 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853170', 'tblTempUsageDetail_20' ) end [2025-09-17 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-17 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-17 00:25:32] Production.INFO: ==21003== Releasing lock... [2025-09-17 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 00:25:32] Production.INFO: 36 MB #Memory Used# [2025-09-17 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 22:25:06 [end_date_ymd] => 2025-09-17 01:25:06 [RateCDR] => 1 ) [2025-09-17 01: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-09-16 22:25:06' and `end` < '2025-09-17 01: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-09-17 01:25:18] Production.INFO: count ==499 [2025-09-17 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 22:25:06 - End Time 2025-09-17 01:25:06 [2025-09-17 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853417', 'tblTempUsageDetail_20' ) start [2025-09-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853417', 'tblTempUsageDetail_20' ) end [2025-09-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853417', 'tblTempVendorCDR_20' ) start [2025-09-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853417', 'tblTempVendorCDR_20' ) end [2025-09-17 01:25:18] Production.INFO: ProcessCDR(1,15853417,1,1,2) [2025-09-17 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15853417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15853417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15853417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15853417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853417', 'tblTempUsageDetail_20' ) start [2025-09-17 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853417', 'tblTempUsageDetail_20' ) end [2025-09-17 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-17 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-17 01:25:26] Production.INFO: ==25318== Releasing lock... [2025-09-17 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 01:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-17 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 23:25:06 [end_date_ymd] => 2025-09-17 02:25:06 [RateCDR] => 1 ) [2025-09-17 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-09-16 23:25:06' and `end` < '2025-09-17 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-09-17 02:25:18] Production.INFO: count ==489 [2025-09-17 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 23:25:06 - End Time 2025-09-17 02:25:06 [2025-09-17 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853664', 'tblTempUsageDetail_20' ) start [2025-09-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853664', 'tblTempUsageDetail_20' ) end [2025-09-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853664', 'tblTempVendorCDR_20' ) start [2025-09-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853664', 'tblTempVendorCDR_20' ) end [2025-09-17 02:25:18] Production.INFO: ProcessCDR(1,15853664,1,1,2) [2025-09-17 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15853664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15853664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15853664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15853664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853664', 'tblTempUsageDetail_20' ) start [2025-09-17 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853664', 'tblTempUsageDetail_20' ) end [2025-09-17 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-17 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-17 02:25:26] Production.INFO: ==29983== Releasing lock... [2025-09-17 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 00:25:05 [end_date_ymd] => 2025-09-17 03:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 00:25:05' and `end` < '2025-09-17 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-09-17 03:25:17] Production.INFO: count ==321 [2025-09-17 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-17 00:25:05 - End Time 2025-09-17 03:25:05 [2025-09-17 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853911', 'tblTempUsageDetail_20' ) start [2025-09-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15853911', 'tblTempUsageDetail_20' ) end [2025-09-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853911', 'tblTempVendorCDR_20' ) start [2025-09-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15853911', 'tblTempVendorCDR_20' ) end [2025-09-17 03:25:17] Production.INFO: ProcessCDR(1,15853911,1,1,2) [2025-09-17 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15853911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15853911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15853911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15853911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853911', 'tblTempUsageDetail_20' ) start [2025-09-17 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15853911', 'tblTempUsageDetail_20' ) end [2025-09-17 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-17 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-17 03:25:25] Production.INFO: ==1999== Releasing lock... [2025-09-17 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 03:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 01:25:05 [end_date_ymd] => 2025-09-17 04:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 01:25:05' and `end` < '2025-09-17 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-09-17 04:25:17] Production.INFO: count ==250 [2025-09-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-17 01:25:05 - End Time 2025-09-17 04:25:05 [2025-09-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854159', 'tblTempUsageDetail_20' ) start [2025-09-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854159', 'tblTempUsageDetail_20' ) end [2025-09-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854159', 'tblTempVendorCDR_20' ) start [2025-09-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854159', 'tblTempVendorCDR_20' ) end [2025-09-17 04:25:17] Production.INFO: ProcessCDR(1,15854159,1,1,2) [2025-09-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15854159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15854159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15854159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15854159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854159', 'tblTempUsageDetail_20' ) start [2025-09-17 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854159', 'tblTempUsageDetail_20' ) end [2025-09-17 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-17 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-17 04:25:25] Production.INFO: ==6789== Releasing lock... [2025-09-17 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 04:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 02:25:05 [end_date_ymd] => 2025-09-17 05:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 02:25:05' and `end` < '2025-09-17 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-09-17 05:25:18] Production.INFO: count ==150 [2025-09-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-17 02:25:05 - End Time 2025-09-17 05:25:05 [2025-09-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854407', 'tblTempUsageDetail_20' ) start [2025-09-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854407', 'tblTempUsageDetail_20' ) end [2025-09-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854407', 'tblTempVendorCDR_20' ) start [2025-09-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854407', 'tblTempVendorCDR_20' ) end [2025-09-17 05:25:18] Production.INFO: ProcessCDR(1,15854407,1,1,2) [2025-09-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15854407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15854407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15854407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15854407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854407', 'tblTempUsageDetail_20' ) start [2025-09-17 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854407', 'tblTempUsageDetail_20' ) end [2025-09-17 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-17 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-17 05:25:23] Production.INFO: ==12130== Releasing lock... [2025-09-17 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-09-17 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 03:25:06 [end_date_ymd] => 2025-09-17 06:25:06 [RateCDR] => 1 ) [2025-09-17 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-17 03:25:06' and `end` < '2025-09-17 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-17 06:25:18] Production.INFO: count ==133 [2025-09-17 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-17 03:25:06 - End Time 2025-09-17 06:25:06 [2025-09-17 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854654', 'tblTempUsageDetail_20' ) start [2025-09-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854654', 'tblTempUsageDetail_20' ) end [2025-09-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854654', 'tblTempVendorCDR_20' ) start [2025-09-17 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854654', 'tblTempVendorCDR_20' ) end [2025-09-17 06:25:18] Production.INFO: ProcessCDR(1,15854654,1,1,2) [2025-09-17 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15854654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15854654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15854654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15854654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854654', 'tblTempUsageDetail_20' ) start [2025-09-17 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854654', 'tblTempUsageDetail_20' ) end [2025-09-17 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-17 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-17 06:25:25] Production.INFO: ==16517== Releasing lock... [2025-09-17 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 04:25:05 [end_date_ymd] => 2025-09-17 07:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 04:25:05' and `end` < '2025-09-17 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-09-17 07:25:17] Production.INFO: count ==139 [2025-09-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-17 04:25:05 - End Time 2025-09-17 07:25:05 [2025-09-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854901', 'tblTempUsageDetail_20' ) start [2025-09-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15854901', 'tblTempUsageDetail_20' ) end [2025-09-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854901', 'tblTempVendorCDR_20' ) start [2025-09-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15854901', 'tblTempVendorCDR_20' ) end [2025-09-17 07:25:17] Production.INFO: ProcessCDR(1,15854901,1,1,2) [2025-09-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15854901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15854901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15854901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15854901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854901', 'tblTempUsageDetail_20' ) start [2025-09-17 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15854901', 'tblTempUsageDetail_20' ) end [2025-09-17 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-17 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-17 07:25:25] Production.INFO: ==21054== Releasing lock... [2025-09-17 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 05:25:05 [end_date_ymd] => 2025-09-17 08:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 05:25:05' and `end` < '2025-09-17 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-09-17 08:25:18] Production.INFO: count ==408 [2025-09-17 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-17 05:25:05 - End Time 2025-09-17 08:25:05 [2025-09-17 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855148', 'tblTempUsageDetail_20' ) start [2025-09-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855148', 'tblTempUsageDetail_20' ) end [2025-09-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855148', 'tblTempVendorCDR_20' ) start [2025-09-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855148', 'tblTempVendorCDR_20' ) end [2025-09-17 08:25:18] Production.INFO: ProcessCDR(1,15855148,1,1,2) [2025-09-17 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15855148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15855148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15855148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15855148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855148', 'tblTempUsageDetail_20' ) start [2025-09-17 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855148', 'tblTempUsageDetail_20' ) end [2025-09-17 08:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-17 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-17 08:25:27] Production.INFO: ==25921== Releasing lock... [2025-09-17 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 08:25:27] Production.INFO: 31.5 MB #Memory Used# [2025-09-17 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 06:25:06 [end_date_ymd] => 2025-09-17 09:25:06 [RateCDR] => 1 ) [2025-09-17 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-17 06:25:06' and `end` < '2025-09-17 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-17 09:25:22] Production.INFO: count ==1368 [2025-09-17 09:25:22] Production.ERROR: pbx CDR StartTime 2025-09-17 06:25:06 - End Time 2025-09-17 09:25:06 [2025-09-17 09:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855395', 'tblTempUsageDetail_20' ) start [2025-09-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855395', 'tblTempUsageDetail_20' ) end [2025-09-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855395', 'tblTempVendorCDR_20' ) start [2025-09-17 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855395', 'tblTempVendorCDR_20' ) end [2025-09-17 09:25:22] Production.INFO: ProcessCDR(1,15855395,1,1,2) [2025-09-17 09:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15855395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 09:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15855395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 09:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15855395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 09:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15855395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855395', 'tblTempUsageDetail_20' ) start [2025-09-17 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855395', 'tblTempUsageDetail_20' ) end [2025-09-17 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-17 09:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-17 09:25:32] Production.INFO: ==30936== Releasing lock... [2025-09-17 09:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 09:25:32] Production.INFO: 38.5 MB #Memory Used# [2025-09-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 07:25:05 [end_date_ymd] => 2025-09-17 10:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 07:25:05' and `end` < '2025-09-17 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-09-17 10:25:18] Production.INFO: count ==2943 [2025-09-17 10:25:19] Production.ERROR: pbx CDR StartTime 2025-09-17 07:25:05 - End Time 2025-09-17 10:25:05 [2025-09-17 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855642', 'tblTempUsageDetail_20' ) start [2025-09-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855642', 'tblTempUsageDetail_20' ) end [2025-09-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855642', 'tblTempVendorCDR_20' ) start [2025-09-17 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855642', 'tblTempVendorCDR_20' ) end [2025-09-17 10:25:20] Production.INFO: ProcessCDR(1,15855642,1,1,2) [2025-09-17 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15855642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15855642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15855642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15855642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855642', 'tblTempUsageDetail_20' ) start [2025-09-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855642', 'tblTempUsageDetail_20' ) end [2025-09-17 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-17 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-17 10:25:31] Production.INFO: ==4009== Releasing lock... [2025-09-17 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 10:25:31] Production.INFO: 50.75 MB #Memory Used# [2025-09-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 08:25:05 [end_date_ymd] => 2025-09-17 11:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 08:25:05' and `end` < '2025-09-17 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-09-17 11:25:20] Production.INFO: count ==4512 [2025-09-17 11:25:22] Production.ERROR: pbx CDR StartTime 2025-09-17 08:25:05 - End Time 2025-09-17 11:25:05 [2025-09-17 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855889', 'tblTempUsageDetail_20' ) start [2025-09-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15855889', 'tblTempUsageDetail_20' ) end [2025-09-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855889', 'tblTempVendorCDR_20' ) start [2025-09-17 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15855889', 'tblTempVendorCDR_20' ) end [2025-09-17 11:25:23] Production.INFO: ProcessCDR(1,15855889,1,1,2) [2025-09-17 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15855889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15855889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15855889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15855889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855889', 'tblTempUsageDetail_20' ) start [2025-09-17 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15855889', 'tblTempUsageDetail_20' ) end [2025-09-17 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-17 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-17 11:25:35] Production.INFO: ==8256== Releasing lock... [2025-09-17 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 11:25:35] Production.INFO: 62 MB #Memory Used# [2025-09-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 09:25:05 [end_date_ymd] => 2025-09-17 12:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 09:25:05' and `end` < '2025-09-17 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-09-17 12:25:19] Production.INFO: count ==5125 [2025-09-17 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-17 09:25:05 - End Time 2025-09-17 12:25:05 [2025-09-17 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856136', 'tblTempUsageDetail_20' ) start [2025-09-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856136', 'tblTempUsageDetail_20' ) end [2025-09-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856136', 'tblTempVendorCDR_20' ) start [2025-09-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856136', 'tblTempVendorCDR_20' ) end [2025-09-17 12:25:22] Production.INFO: ProcessCDR(1,15856136,1,1,2) [2025-09-17 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15856136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15856136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15856136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15856136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856136', 'tblTempUsageDetail_20' ) start [2025-09-17 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856136', 'tblTempUsageDetail_20' ) end [2025-09-17 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-17 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-17 12:25:34] Production.INFO: ==12461== Releasing lock... [2025-09-17 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 12:25:34] Production.INFO: 66.5 MB #Memory Used# [2025-09-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 10:25:05 [end_date_ymd] => 2025-09-17 13:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 10:25:05' and `end` < '2025-09-17 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-09-17 13:25:21] Production.INFO: count ==5289 [2025-09-17 13:25:23] Production.ERROR: pbx CDR StartTime 2025-09-17 10:25:05 - End Time 2025-09-17 13:25:05 [2025-09-17 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856383', 'tblTempUsageDetail_20' ) start [2025-09-17 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856383', 'tblTempUsageDetail_20' ) end [2025-09-17 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856383', 'tblTempVendorCDR_20' ) start [2025-09-17 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856383', 'tblTempVendorCDR_20' ) end [2025-09-17 13:25:24] Production.INFO: ProcessCDR(1,15856383,1,1,2) [2025-09-17 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15856383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15856383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15856383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15856383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856383', 'tblTempUsageDetail_20' ) start [2025-09-17 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856383', 'tblTempUsageDetail_20' ) end [2025-09-17 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-17 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-17 13:25:35] Production.INFO: ==16696== Releasing lock... [2025-09-17 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 13:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-09-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 11:25:05 [end_date_ymd] => 2025-09-17 14:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 11:25:05' and `end` < '2025-09-17 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-09-17 14:25:19] Production.INFO: count ==5188 [2025-09-17 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-17 11:25:05 - End Time 2025-09-17 14:25:05 [2025-09-17 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856630', 'tblTempUsageDetail_20' ) start [2025-09-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856630', 'tblTempUsageDetail_20' ) end [2025-09-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856630', 'tblTempVendorCDR_20' ) start [2025-09-17 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856630', 'tblTempVendorCDR_20' ) end [2025-09-17 14:25:22] Production.INFO: ProcessCDR(1,15856630,1,1,2) [2025-09-17 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15856630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15856630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15856630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15856630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856630', 'tblTempUsageDetail_20' ) start [2025-09-17 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856630', 'tblTempUsageDetail_20' ) end [2025-09-17 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-17 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-17 14:25:34] Production.INFO: ==22100== Releasing lock... [2025-09-17 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 14:25:34] Production.INFO: 67 MB #Memory Used# [2025-09-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 12:25:05 [end_date_ymd] => 2025-09-17 15:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 12:25:05' and `end` < '2025-09-17 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-09-17 15:25:20] Production.INFO: count ==5464 [2025-09-17 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-17 12:25:05 - End Time 2025-09-17 15:25:05 [2025-09-17 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856877', 'tblTempUsageDetail_20' ) start [2025-09-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15856877', 'tblTempUsageDetail_20' ) end [2025-09-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856877', 'tblTempVendorCDR_20' ) start [2025-09-17 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15856877', 'tblTempVendorCDR_20' ) end [2025-09-17 15:25:23] Production.INFO: ProcessCDR(1,15856877,1,1,2) [2025-09-17 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15856877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15856877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15856877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15856877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856877', 'tblTempUsageDetail_20' ) start [2025-09-17 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15856877', 'tblTempUsageDetail_20' ) end [2025-09-17 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-17 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-17 15:25:35] Production.INFO: ==26468== Releasing lock... [2025-09-17 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 15:25:35] Production.INFO: 69.25 MB #Memory Used# [2025-09-17 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 13:25:04 [end_date_ymd] => 2025-09-17 16:25:04 [RateCDR] => 1 ) [2025-09-17 16: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-09-17 13:25:04' and `end` < '2025-09-17 16: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-09-17 16:25:18] Production.INFO: count ==5409 [2025-09-17 16:25:20] Production.ERROR: pbx CDR StartTime 2025-09-17 13:25:04 - End Time 2025-09-17 16:25:04 [2025-09-17 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857124', 'tblTempUsageDetail_20' ) start [2025-09-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857124', 'tblTempUsageDetail_20' ) end [2025-09-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857124', 'tblTempVendorCDR_20' ) start [2025-09-17 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857124', 'tblTempVendorCDR_20' ) end [2025-09-17 16:25:21] Production.INFO: ProcessCDR(1,15857124,1,1,2) [2025-09-17 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15857124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15857124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15857124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15857124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857124', 'tblTempUsageDetail_20' ) start [2025-09-17 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857124', 'tblTempUsageDetail_20' ) end [2025-09-17 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-17 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-17 16:25:32] Production.INFO: ==30964== Releasing lock... [2025-09-17 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 16:25:32] Production.INFO: 68.75 MB #Memory Used# [2025-09-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 14:25:05 [end_date_ymd] => 2025-09-17 17:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 14:25:05' and `end` < '2025-09-17 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-09-17 17:25:18] Production.INFO: count ==5177 [2025-09-17 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-17 14:25:05 - End Time 2025-09-17 17:25:05 [2025-09-17 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857371', 'tblTempUsageDetail_20' ) start [2025-09-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857371', 'tblTempUsageDetail_20' ) end [2025-09-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857371', 'tblTempVendorCDR_20' ) start [2025-09-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857371', 'tblTempVendorCDR_20' ) end [2025-09-17 17:25:21] Production.INFO: ProcessCDR(1,15857371,1,1,2) [2025-09-17 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15857371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15857371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15857371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15857371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857371', 'tblTempUsageDetail_20' ) start [2025-09-17 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857371', 'tblTempUsageDetail_20' ) end [2025-09-17 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-17 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-17 17:25:33] Production.INFO: ==3605== Releasing lock... [2025-09-17 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 17:25:33] Production.INFO: 67 MB #Memory Used# [2025-09-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 15:25:05 [end_date_ymd] => 2025-09-17 18:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 15:25:05' and `end` < '2025-09-17 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-09-17 18:25:18] Production.INFO: count ==4208 [2025-09-17 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-17 15:25:05 - End Time 2025-09-17 18:25:05 [2025-09-17 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857618', 'tblTempUsageDetail_20' ) start [2025-09-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857618', 'tblTempUsageDetail_20' ) end [2025-09-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857618', 'tblTempVendorCDR_20' ) start [2025-09-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857618', 'tblTempVendorCDR_20' ) end [2025-09-17 18:25:20] Production.INFO: ProcessCDR(1,15857618,1,1,2) [2025-09-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15857618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15857618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15857618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15857618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857618', 'tblTempUsageDetail_20' ) start [2025-09-17 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857618', 'tblTempUsageDetail_20' ) end [2025-09-17 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-17 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-17 18:25:30] Production.INFO: ==8167== Releasing lock... [2025-09-17 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 18:25:30] Production.INFO: 59.75 MB #Memory Used# [2025-09-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-17 16:25:05 [end_date_ymd] => 2025-09-17 19:25:05 [RateCDR] => 1 ) [2025-09-17 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-09-17 16:25:05' and `end` < '2025-09-17 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-09-17 19:25:18] Production.INFO: count ==3407 [2025-09-17 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-17 16:25:05 - End Time 2025-09-17 19:25:05 [2025-09-17 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-17 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857862', 'tblTempUsageDetail_20' ) start [2025-09-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15857862', 'tblTempUsageDetail_20' ) end [2025-09-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857862', 'tblTempVendorCDR_20' ) start [2025-09-17 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15857862', 'tblTempVendorCDR_20' ) end [2025-09-17 19:25:20] Production.INFO: ProcessCDR(1,15857862,1,1,2) [2025-09-17 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15857862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15857862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-17 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15857862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15857862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-17 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857862', 'tblTempUsageDetail_20' ) start [2025-09-17 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15857862', 'tblTempUsageDetail_20' ) end [2025-09-17 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-17 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-17 19:25:29] Production.INFO: ==12734== Releasing lock... [2025-09-17 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-17 19:25:29] Production.INFO: 53.5 MB #Memory Used#