[2025-10-10 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 21:25:05 [end_date_ymd] => 2025-10-10 00:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-09 21:25:05' and `end` < '2025-10-10 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-10-10 00:25:22] Production.INFO: count ==5575 [2025-10-10 00:25:25] Production.ERROR: pbx CDR StartTime 2025-10-09 21:25:05 - End Time 2025-10-10 00:25:05 [2025-10-10 00:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 00:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989496', 'tblTempUsageDetail_20' ) start [2025-10-10 00:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989496', 'tblTempUsageDetail_20' ) end [2025-10-10 00:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989496', 'tblTempVendorCDR_20' ) start [2025-10-10 00:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989496', 'tblTempVendorCDR_20' ) end [2025-10-10 00:25:26] Production.INFO: ProcessCDR(1,15989496,1,1,2) [2025-10-10 00:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15989496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 00:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15989496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 00:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15989496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 00:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15989496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 00:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989496', 'tblTempUsageDetail_20' ) start [2025-10-10 00:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989496', 'tblTempUsageDetail_20' ) end [2025-10-10 00:25:38] Production.ERROR: pbx prc_insertCDR start [2025-10-10 00:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-10 00:25:40] Production.INFO: ==2043== Releasing lock... [2025-10-10 00:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 00:25:40] Production.INFO: 71 MB #Memory Used# [2025-10-10 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 22:25:05 [end_date_ymd] => 2025-10-10 01:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-09 22:25:05' and `end` < '2025-10-10 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-10-10 01:25:18] Production.INFO: count ==5579 [2025-10-10 01:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 22:25:05 - End Time 2025-10-10 01:25:05 [2025-10-10 01:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989743', 'tblTempUsageDetail_20' ) start [2025-10-10 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989743', 'tblTempUsageDetail_20' ) end [2025-10-10 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989743', 'tblTempVendorCDR_20' ) start [2025-10-10 01:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989743', 'tblTempVendorCDR_20' ) end [2025-10-10 01:25:21] Production.INFO: ProcessCDR(1,15989743,1,1,2) [2025-10-10 01:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15989743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 01:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15989743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 01:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15989743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 01:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15989743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 01:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989743', 'tblTempUsageDetail_20' ) start [2025-10-10 01:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989743', 'tblTempUsageDetail_20' ) end [2025-10-10 01:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-10 01:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-10 01:25:31] Production.INFO: ==6661== Releasing lock... [2025-10-10 01:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 01:25:31] Production.INFO: 69.75 MB #Memory Used# [2025-10-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-09 23:25:05 [end_date_ymd] => 2025-10-10 02:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-09 23:25:05' and `end` < '2025-10-10 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-10-10 02:25:18] Production.INFO: count ==5056 [2025-10-10 02:25:21] Production.ERROR: pbx CDR StartTime 2025-10-09 23:25:05 - End Time 2025-10-10 02:25:05 [2025-10-10 02:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989990', 'tblTempUsageDetail_20' ) start [2025-10-10 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15989990', 'tblTempUsageDetail_20' ) end [2025-10-10 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989990', 'tblTempVendorCDR_20' ) start [2025-10-10 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15989990', 'tblTempVendorCDR_20' ) end [2025-10-10 02:25:21] Production.INFO: ProcessCDR(1,15989990,1,1,2) [2025-10-10 02:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15989990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 02:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15989990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 02:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15989990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 02:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15989990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 02:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989990', 'tblTempUsageDetail_20' ) start [2025-10-10 02:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15989990', 'tblTempUsageDetail_20' ) end [2025-10-10 02:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-10 02:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-10 02:25:30] Production.INFO: ==11433== Releasing lock... [2025-10-10 02:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 02:25:30] Production.INFO: 66 MB #Memory Used# [2025-10-10 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 00:25:06 [end_date_ymd] => 2025-10-10 03:25:06 [RateCDR] => 1 ) [2025-10-10 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-10 00:25:06' and `end` < '2025-10-10 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-10 03:25:18] Production.INFO: count ==2839 [2025-10-10 03:25:20] Production.ERROR: pbx CDR StartTime 2025-10-10 00:25:06 - End Time 2025-10-10 03:25:06 [2025-10-10 03:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990237', 'tblTempUsageDetail_20' ) start [2025-10-10 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990237', 'tblTempUsageDetail_20' ) end [2025-10-10 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990237', 'tblTempVendorCDR_20' ) start [2025-10-10 03:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990237', 'tblTempVendorCDR_20' ) end [2025-10-10 03:25:20] Production.INFO: ProcessCDR(1,15990237,1,1,2) [2025-10-10 03:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15990237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 03:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15990237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 03:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15990237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 03:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15990237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 03:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990237', 'tblTempUsageDetail_20' ) start [2025-10-10 03:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990237', 'tblTempUsageDetail_20' ) end [2025-10-10 03:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-10 03:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-10 03:25:30] Production.INFO: ==15838== Releasing lock... [2025-10-10 03:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 03:25:30] Production.INFO: 49 MB #Memory Used# [2025-10-10 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 01:25:06 [end_date_ymd] => 2025-10-10 04:25:06 [RateCDR] => 1 ) [2025-10-10 04: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-10-10 01:25:06' and `end` < '2025-10-10 04: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-10-10 04:25:18] Production.INFO: count ==2263 [2025-10-10 04:25:19] Production.ERROR: pbx CDR StartTime 2025-10-10 01:25:06 - End Time 2025-10-10 04:25:06 [2025-10-10 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990485', 'tblTempUsageDetail_20' ) start [2025-10-10 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990485', 'tblTempUsageDetail_20' ) end [2025-10-10 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990485', 'tblTempVendorCDR_20' ) start [2025-10-10 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990485', 'tblTempVendorCDR_20' ) end [2025-10-10 04:25:19] Production.INFO: ProcessCDR(1,15990485,1,1,2) [2025-10-10 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15990485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 04:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15990485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 04:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15990485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 04:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15990485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 04:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990485', 'tblTempUsageDetail_20' ) start [2025-10-10 04:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990485', 'tblTempUsageDetail_20' ) end [2025-10-10 04:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-10 04:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-10 04:25:29] Production.INFO: ==20178== Releasing lock... [2025-10-10 04:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 04:25:29] Production.INFO: 45.5 MB #Memory Used# [2025-10-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 02:25:05 [end_date_ymd] => 2025-10-10 05:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 02:25:05' and `end` < '2025-10-10 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-10-10 05:25:17] Production.INFO: count ==1225 [2025-10-10 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-10 02:25:05 - End Time 2025-10-10 05:25:05 [2025-10-10 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990733', 'tblTempUsageDetail_20' ) start [2025-10-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990733', 'tblTempUsageDetail_20' ) end [2025-10-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990733', 'tblTempVendorCDR_20' ) start [2025-10-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990733', 'tblTempVendorCDR_20' ) end [2025-10-10 05:25:18] Production.INFO: ProcessCDR(1,15990733,1,1,2) [2025-10-10 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15990733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15990733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15990733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15990733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990733', 'tblTempUsageDetail_20' ) start [2025-10-10 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990733', 'tblTempUsageDetail_20' ) end [2025-10-10 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-10 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-10 05:25:26] Production.INFO: ==24736== Releasing lock... [2025-10-10 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 05:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-10-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 03:25:05 [end_date_ymd] => 2025-10-10 06:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 03:25:05' and `end` < '2025-10-10 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-10-10 06:25:17] Production.INFO: count ==249 [2025-10-10 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-10 03:25:05 - End Time 2025-10-10 06:25:05 [2025-10-10 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990980', 'tblTempUsageDetail_20' ) start [2025-10-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15990980', 'tblTempUsageDetail_20' ) end [2025-10-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990980', 'tblTempVendorCDR_20' ) start [2025-10-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15990980', 'tblTempVendorCDR_20' ) end [2025-10-10 06:25:17] Production.INFO: ProcessCDR(1,15990980,1,1,2) [2025-10-10 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15990980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15990980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15990980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15990980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990980', 'tblTempUsageDetail_20' ) start [2025-10-10 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15990980', 'tblTempUsageDetail_20' ) end [2025-10-10 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-10 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-10 06:25:25] Production.INFO: ==29456== Releasing lock... [2025-10-10 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 06:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-10-10 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 04:25:05 [end_date_ymd] => 2025-10-10 07:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 04:25:05' and `end` < '2025-10-10 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-10-10 07:25:17] Production.INFO: count ==140 [2025-10-10 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-10 04:25:05 - End Time 2025-10-10 07:25:05 [2025-10-10 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991227', 'tblTempUsageDetail_20' ) start [2025-10-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991227', 'tblTempUsageDetail_20' ) end [2025-10-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991227', 'tblTempVendorCDR_20' ) start [2025-10-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991227', 'tblTempVendorCDR_20' ) end [2025-10-10 07:25:17] Production.INFO: ProcessCDR(1,15991227,1,1,2) [2025-10-10 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15991227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15991227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15991227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15991227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991227', 'tblTempUsageDetail_20' ) start [2025-10-10 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991227', 'tblTempUsageDetail_20' ) end [2025-10-10 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-10 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-10 07:25:26] Production.INFO: ==1587== Releasing lock... [2025-10-10 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 07:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-10-10 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 05:25:04 [end_date_ymd] => 2025-10-10 08:25:04 [RateCDR] => 1 ) [2025-10-10 08: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-10-10 05:25:04' and `end` < '2025-10-10 08: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-10-10 08:25:17] Production.INFO: count ==379 [2025-10-10 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-10 05:25:04 - End Time 2025-10-10 08:25:04 [2025-10-10 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991474', 'tblTempUsageDetail_20' ) start [2025-10-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991474', 'tblTempUsageDetail_20' ) end [2025-10-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991474', 'tblTempVendorCDR_20' ) start [2025-10-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991474', 'tblTempVendorCDR_20' ) end [2025-10-10 08:25:17] Production.INFO: ProcessCDR(1,15991474,1,1,2) [2025-10-10 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15991474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15991474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15991474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15991474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991474', 'tblTempUsageDetail_20' ) start [2025-10-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991474', 'tblTempUsageDetail_20' ) end [2025-10-10 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-10 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-10 08:25:25] Production.INFO: ==6589== Releasing lock... [2025-10-10 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 08:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-10-10 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 06:25:06 [end_date_ymd] => 2025-10-10 09:25:06 [RateCDR] => 1 ) [2025-10-10 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-10-10 06:25:06' and `end` < '2025-10-10 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-10-10 09:25:18] Production.INFO: count ==1337 [2025-10-10 09:25:19] Production.ERROR: pbx CDR StartTime 2025-10-10 06:25:06 - End Time 2025-10-10 09:25:06 [2025-10-10 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991721', 'tblTempUsageDetail_20' ) start [2025-10-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991721', 'tblTempUsageDetail_20' ) end [2025-10-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991721', 'tblTempVendorCDR_20' ) start [2025-10-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991721', 'tblTempVendorCDR_20' ) end [2025-10-10 09:25:19] Production.INFO: ProcessCDR(1,15991721,1,1,2) [2025-10-10 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15991721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15991721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15991721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15991721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991721', 'tblTempUsageDetail_20' ) start [2025-10-10 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991721', 'tblTempUsageDetail_20' ) end [2025-10-10 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-10 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-10 09:25:28] Production.INFO: ==11476== Releasing lock... [2025-10-10 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 09:25:28] Production.INFO: 38.25 MB #Memory Used# [2025-10-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 07:25:05 [end_date_ymd] => 2025-10-10 10:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 07:25:05' and `end` < '2025-10-10 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-10-10 10:25:19] Production.INFO: count ==2983 [2025-10-10 10:25:21] Production.ERROR: pbx CDR StartTime 2025-10-10 07:25:05 - End Time 2025-10-10 10:25:05 [2025-10-10 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991968', 'tblTempUsageDetail_20' ) start [2025-10-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15991968', 'tblTempUsageDetail_20' ) end [2025-10-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991968', 'tblTempVendorCDR_20' ) start [2025-10-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15991968', 'tblTempVendorCDR_20' ) end [2025-10-10 10:25:21] Production.INFO: ProcessCDR(1,15991968,1,1,2) [2025-10-10 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15991968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15991968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15991968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15991968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991968', 'tblTempUsageDetail_20' ) start [2025-10-10 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15991968', 'tblTempUsageDetail_20' ) end [2025-10-10 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-10 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-10 10:25:33] Production.INFO: ==16273== Releasing lock... [2025-10-10 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 10:25:33] Production.INFO: 50.5 MB #Memory Used# [2025-10-10 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 08:25:05 [end_date_ymd] => 2025-10-10 11:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 08:25:05' and `end` < '2025-10-10 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-10-10 11:25:18] Production.INFO: count ==4924 [2025-10-10 11:25:21] Production.ERROR: pbx CDR StartTime 2025-10-10 08:25:05 - End Time 2025-10-10 11:25:05 [2025-10-10 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992215', 'tblTempUsageDetail_20' ) start [2025-10-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992215', 'tblTempUsageDetail_20' ) end [2025-10-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992215', 'tblTempVendorCDR_20' ) start [2025-10-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992215', 'tblTempVendorCDR_20' ) end [2025-10-10 11:25:21] Production.INFO: ProcessCDR(1,15992215,1,1,2) [2025-10-10 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15992215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15992215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15992215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15992215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992215', 'tblTempUsageDetail_20' ) start [2025-10-10 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992215', 'tblTempUsageDetail_20' ) end [2025-10-10 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-10 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-10 11:25:35] Production.INFO: ==21140== Releasing lock... [2025-10-10 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 11:25:35] Production.INFO: 65 MB #Memory Used# [2025-10-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 09:25:05 [end_date_ymd] => 2025-10-10 12:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 09:25:05' and `end` < '2025-10-10 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-10-10 12:25:27] Production.INFO: count ==6860 [2025-10-10 12:25:30] Production.ERROR: pbx CDR StartTime 2025-10-10 09:25:05 - End Time 2025-10-10 12:25:05 [2025-10-10 12:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992462', 'tblTempUsageDetail_20' ) start [2025-10-10 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992462', 'tblTempUsageDetail_20' ) end [2025-10-10 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992462', 'tblTempVendorCDR_20' ) start [2025-10-10 12:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992462', 'tblTempVendorCDR_20' ) end [2025-10-10 12:25:31] Production.INFO: ProcessCDR(1,15992462,1,1,2) [2025-10-10 12:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15992462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 12:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15992462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 12:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15992462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 12:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15992462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 12:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992462', 'tblTempUsageDetail_20' ) start [2025-10-10 12:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992462', 'tblTempUsageDetail_20' ) end [2025-10-10 12:25:42] Production.ERROR: pbx prc_insertCDR start [2025-10-10 12:25:44] Production.ERROR: pbx prc_insertCDR end [2025-10-10 12:25:44] Production.INFO: ==25394== Releasing lock... [2025-10-10 12:25:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 12:25:44] Production.INFO: 79.5 MB #Memory Used# [2025-10-10 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 10:25:05 [end_date_ymd] => 2025-10-10 13:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 10:25:05' and `end` < '2025-10-10 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-10-10 13:25:20] Production.INFO: count ==9965 [2025-10-10 13:25:25] Production.ERROR: pbx CDR StartTime 2025-10-10 10:25:05 - End Time 2025-10-10 13:25:05 [2025-10-10 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992709', 'tblTempUsageDetail_20' ) start [2025-10-10 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992709', 'tblTempUsageDetail_20' ) end [2025-10-10 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992709', 'tblTempVendorCDR_20' ) start [2025-10-10 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992709', 'tblTempVendorCDR_20' ) end [2025-10-10 13:25:26] Production.INFO: ProcessCDR(1,15992709,1,1,2) [2025-10-10 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15992709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15992709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15992709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 13:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15992709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 13:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992709', 'tblTempUsageDetail_20' ) start [2025-10-10 13:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992709', 'tblTempUsageDetail_20' ) end [2025-10-10 13:25:39] Production.ERROR: pbx prc_insertCDR start [2025-10-10 13:25:41] Production.ERROR: pbx prc_insertCDR end [2025-10-10 13:25:41] Production.INFO: ==30029== Releasing lock... [2025-10-10 13:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 13:25:41] Production.INFO: 103.5 MB #Memory Used# [2025-10-10 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 11:25:06 [end_date_ymd] => 2025-10-10 14:25:06 [RateCDR] => 1 ) [2025-10-10 14: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-10-10 11:25:06' and `end` < '2025-10-10 14: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-10-10 14:25:22] Production.INFO: count ==10708 [2025-10-10 14:25:28] Production.ERROR: pbx CDR StartTime 2025-10-10 11:25:06 - End Time 2025-10-10 14:25:06 [2025-10-10 14:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992956', 'tblTempUsageDetail_20' ) start [2025-10-10 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15992956', 'tblTempUsageDetail_20' ) end [2025-10-10 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992956', 'tblTempVendorCDR_20' ) start [2025-10-10 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15992956', 'tblTempVendorCDR_20' ) end [2025-10-10 14:25:29] Production.INFO: ProcessCDR(1,15992956,1,1,2) [2025-10-10 14:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15992956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 14:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15992956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 14:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15992956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 14:25:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15992956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 14:25:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992956', 'tblTempUsageDetail_20' ) start [2025-10-10 14:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15992956', 'tblTempUsageDetail_20' ) end [2025-10-10 14:25:42] Production.ERROR: pbx prc_insertCDR start [2025-10-10 14:25:45] Production.ERROR: pbx prc_insertCDR end [2025-10-10 14:25:45] Production.INFO: ==2189== Releasing lock... [2025-10-10 14:25:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 14:25:45] Production.INFO: 109 MB #Memory Used# [2025-10-10 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 12:25:05 [end_date_ymd] => 2025-10-10 15:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 12:25:05' and `end` < '2025-10-10 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-10-10 15:25:20] Production.INFO: count ==10549 [2025-10-10 15:25:26] Production.ERROR: pbx CDR StartTime 2025-10-10 12:25:05 - End Time 2025-10-10 15:25:05 [2025-10-10 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993203', 'tblTempUsageDetail_20' ) start [2025-10-10 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993203', 'tblTempUsageDetail_20' ) end [2025-10-10 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993203', 'tblTempVendorCDR_20' ) start [2025-10-10 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993203', 'tblTempVendorCDR_20' ) end [2025-10-10 15:25:28] Production.INFO: ProcessCDR(1,15993203,1,1,2) [2025-10-10 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15993203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 15:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15993203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 15:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15993203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 15:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15993203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993203', 'tblTempUsageDetail_20' ) start [2025-10-10 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993203', 'tblTempUsageDetail_20' ) end [2025-10-10 15:25:40] Production.ERROR: pbx prc_insertCDR start [2025-10-10 15:25:42] Production.ERROR: pbx prc_insertCDR end [2025-10-10 15:25:42] Production.INFO: ==7304== Releasing lock... [2025-10-10 15:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 15:25:42] Production.INFO: 108 MB #Memory Used# [2025-10-10 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 13:25:05 [end_date_ymd] => 2025-10-10 16:25:05 [RateCDR] => 1 ) [2025-10-10 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-10 13:25:05' and `end` < '2025-10-10 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-10-10 16:25:23] Production.INFO: count ==7828 [2025-10-10 16:25:27] Production.ERROR: pbx CDR StartTime 2025-10-10 13:25:05 - End Time 2025-10-10 16:25:05 [2025-10-10 16:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993450', 'tblTempUsageDetail_20' ) start [2025-10-10 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993450', 'tblTempUsageDetail_20' ) end [2025-10-10 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993450', 'tblTempVendorCDR_20' ) start [2025-10-10 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993450', 'tblTempVendorCDR_20' ) end [2025-10-10 16:25:28] Production.INFO: ProcessCDR(1,15993450,1,1,2) [2025-10-10 16:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15993450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 16:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15993450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 16:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15993450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 16:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15993450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993450', 'tblTempUsageDetail_20' ) start [2025-10-10 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993450', 'tblTempUsageDetail_20' ) end [2025-10-10 16:25:38] Production.ERROR: pbx prc_insertCDR start [2025-10-10 16:25:41] Production.ERROR: pbx prc_insertCDR end [2025-10-10 16:25:41] Production.INFO: ==12208== Releasing lock... [2025-10-10 16:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 16:25:41] Production.INFO: 87.5 MB #Memory Used# [2025-10-10 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 14:25:06 [end_date_ymd] => 2025-10-10 17:25:06 [RateCDR] => 1 ) [2025-10-10 17: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-10-10 14:25:06' and `end` < '2025-10-10 17: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-10-10 17:25:20] Production.INFO: count ==7126 [2025-10-10 17:25:24] Production.ERROR: pbx CDR StartTime 2025-10-10 14:25:06 - End Time 2025-10-10 17:25:06 [2025-10-10 17:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993697', 'tblTempUsageDetail_20' ) start [2025-10-10 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993697', 'tblTempUsageDetail_20' ) end [2025-10-10 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993697', 'tblTempVendorCDR_20' ) start [2025-10-10 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993697', 'tblTempVendorCDR_20' ) end [2025-10-10 17:25:25] Production.INFO: ProcessCDR(1,15993697,1,1,2) [2025-10-10 17:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15993697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 17:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15993697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 17:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15993697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 17:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15993697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993697', 'tblTempUsageDetail_20' ) start [2025-10-10 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993697', 'tblTempUsageDetail_20' ) end [2025-10-10 17:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-10 17:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-10 17:25:38] Production.INFO: ==16437== Releasing lock... [2025-10-10 17:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 17:25:38] Production.INFO: 82.25 MB #Memory Used# [2025-10-10 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 15:25:04 [end_date_ymd] => 2025-10-10 18:25:04 [RateCDR] => 1 ) [2025-10-10 18: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-10-10 15:25:04' and `end` < '2025-10-10 18: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-10-10 18:25:18] Production.INFO: count ==5401 [2025-10-10 18:25:21] Production.ERROR: pbx CDR StartTime 2025-10-10 15:25:04 - End Time 2025-10-10 18:25:04 [2025-10-10 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993944', 'tblTempUsageDetail_20' ) start [2025-10-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15993944', 'tblTempUsageDetail_20' ) end [2025-10-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993944', 'tblTempVendorCDR_20' ) start [2025-10-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15993944', 'tblTempVendorCDR_20' ) end [2025-10-10 18:25:21] Production.INFO: ProcessCDR(1,15993944,1,1,2) [2025-10-10 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15993944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15993944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15993944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15993944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993944', 'tblTempUsageDetail_20' ) start [2025-10-10 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15993944', 'tblTempUsageDetail_20' ) end [2025-10-10 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-10 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-10 18:25:32] Production.INFO: ==20767== Releasing lock... [2025-10-10 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 18:25:32] Production.INFO: 68.75 MB #Memory Used# [2025-10-10 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 16:25:05 [end_date_ymd] => 2025-10-10 19:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 16:25:05' and `end` < '2025-10-10 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-10-10 19:25:20] Production.INFO: count ==4389 [2025-10-10 19:25:22] Production.ERROR: pbx CDR StartTime 2025-10-10 16:25:05 - End Time 2025-10-10 19:25:05 [2025-10-10 19:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994189', 'tblTempUsageDetail_20' ) start [2025-10-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994189', 'tblTempUsageDetail_20' ) end [2025-10-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994189', 'tblTempVendorCDR_20' ) start [2025-10-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994189', 'tblTempVendorCDR_20' ) end [2025-10-10 19:25:22] Production.INFO: ProcessCDR(1,15994189,1,1,2) [2025-10-10 19:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15994189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 19:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15994189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 19:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15994189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 19:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15994189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 19:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994189', 'tblTempUsageDetail_20' ) start [2025-10-10 19:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994189', 'tblTempUsageDetail_20' ) end [2025-10-10 19:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-10 19:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-10 19:25:33] Production.INFO: ==25342== Releasing lock... [2025-10-10 19:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 19:25:33] Production.INFO: 61 MB #Memory Used# [2025-10-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 17:25:05 [end_date_ymd] => 2025-10-10 20:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 17:25:05' and `end` < '2025-10-10 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-10-10 20:25:18] Production.INFO: count ==2738 [2025-10-10 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-10 17:25:05 - End Time 2025-10-10 20:25:05 [2025-10-10 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994436', 'tblTempUsageDetail_20' ) start [2025-10-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994436', 'tblTempUsageDetail_20' ) end [2025-10-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994436', 'tblTempVendorCDR_20' ) start [2025-10-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994436', 'tblTempVendorCDR_20' ) end [2025-10-10 20:25:19] Production.INFO: ProcessCDR(1,15994436,1,1,2) [2025-10-10 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15994436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15994436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15994436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15994436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994436', 'tblTempUsageDetail_20' ) start [2025-10-10 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994436', 'tblTempUsageDetail_20' ) end [2025-10-10 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-10 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-10 20:25:30] Production.INFO: ==29758== Releasing lock... [2025-10-10 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 20:25:30] Production.INFO: 49.25 MB #Memory Used# [2025-10-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 18:25:05 [end_date_ymd] => 2025-10-10 21:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 18:25:05' and `end` < '2025-10-10 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-10-10 21:25:17] Production.INFO: count ==2124 [2025-10-10 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-10 18:25:05 - End Time 2025-10-10 21:25:05 [2025-10-10 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994683', 'tblTempUsageDetail_20' ) start [2025-10-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994683', 'tblTempUsageDetail_20' ) end [2025-10-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994683', 'tblTempVendorCDR_20' ) start [2025-10-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994683', 'tblTempVendorCDR_20' ) end [2025-10-10 21:25:18] Production.INFO: ProcessCDR(1,15994683,1,1,2) [2025-10-10 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15994683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15994683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15994683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 21:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15994683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994683', 'tblTempUsageDetail_20' ) start [2025-10-10 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994683', 'tblTempUsageDetail_20' ) end [2025-10-10 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-10 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-10 21:25:28] Production.INFO: ==2218== Releasing lock... [2025-10-10 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 21:25:28] Production.INFO: 44.25 MB #Memory Used# [2025-10-10 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 19:25:06 [end_date_ymd] => 2025-10-10 22:25:06 [RateCDR] => 1 ) [2025-10-10 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-10-10 19:25:06' and `end` < '2025-10-10 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-10-10 22:25:18] Production.INFO: count ==1651 [2025-10-10 22:25:19] Production.ERROR: pbx CDR StartTime 2025-10-10 19:25:06 - End Time 2025-10-10 22:25:06 [2025-10-10 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994930', 'tblTempUsageDetail_20' ) start [2025-10-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15994930', 'tblTempUsageDetail_20' ) end [2025-10-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994930', 'tblTempVendorCDR_20' ) start [2025-10-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15994930', 'tblTempVendorCDR_20' ) end [2025-10-10 22:25:19] Production.INFO: ProcessCDR(1,15994930,1,1,2) [2025-10-10 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15994930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15994930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15994930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 22:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15994930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994930', 'tblTempUsageDetail_20' ) start [2025-10-10 22:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15994930', 'tblTempUsageDetail_20' ) end [2025-10-10 22:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-10 22:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-10 22:25:29] Production.INFO: ==6762== Releasing lock... [2025-10-10 22:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 22:25:29] Production.INFO: 41 MB #Memory Used# [2025-10-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-10 20:25:05 [end_date_ymd] => 2025-10-10 23:25:05 [RateCDR] => 1 ) [2025-10-10 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-10-10 20:25:05' and `end` < '2025-10-10 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-10-10 23:25:18] Production.INFO: count ==1398 [2025-10-10 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-10 20:25:05 - End Time 2025-10-10 23:25:05 [2025-10-10 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15995177', 'tblTempUsageDetail_20' ) start [2025-10-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15995177', 'tblTempUsageDetail_20' ) end [2025-10-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15995177', 'tblTempVendorCDR_20' ) start [2025-10-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15995177', 'tblTempVendorCDR_20' ) end [2025-10-10 23:25:18] Production.INFO: ProcessCDR(1,15995177,1,1,2) [2025-10-10 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15995177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15995177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-10 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15995177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15995177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-10 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15995177', 'tblTempUsageDetail_20' ) start [2025-10-10 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15995177', 'tblTempUsageDetail_20' ) end [2025-10-10 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-10 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-10 23:25:28] Production.INFO: ==11612== Releasing lock... [2025-10-10 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-10 23:25:28] Production.INFO: 38.25 MB #Memory Used#