[2025-06-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 21:25:05 [end_date_ymd] => 2025-06-20 00:25:05 [RateCDR] => 1 ) [2025-06-20 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 21:25:05' and `end` < '2025-06-20 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 00:25:18] Production.INFO: count ==502 [2025-06-20 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 21:25:05 - End Time 2025-06-20 00:25:05 [2025-06-20 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325652', 'tblTempUsageDetail_20' ) start [2025-06-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325652', 'tblTempUsageDetail_20' ) end [2025-06-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325652', 'tblTempVendorCDR_20' ) start [2025-06-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325652', 'tblTempVendorCDR_20' ) end [2025-06-20 00:25:18] Production.INFO: ProcessCDR(1,15325652,1,1,2) [2025-06-20 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15325652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15325652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15325652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15325652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325652', 'tblTempUsageDetail_20' ) start [2025-06-20 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325652', 'tblTempUsageDetail_20' ) end [2025-06-20 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-20 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-20 00:25:26] Production.INFO: ==2139== Releasing lock... [2025-06-20 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 00:25:26] Production.INFO: 36 MB #Memory Used# [2025-06-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 22:25:05 [end_date_ymd] => 2025-06-20 01:25:05 [RateCDR] => 1 ) [2025-06-20 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 22:25:05' and `end` < '2025-06-20 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 01:25:17] Production.INFO: count ==463 [2025-06-20 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 22:25:05 - End Time 2025-06-20 01:25:05 [2025-06-20 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325899', 'tblTempUsageDetail_20' ) start [2025-06-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15325899', 'tblTempUsageDetail_20' ) end [2025-06-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325899', 'tblTempVendorCDR_20' ) start [2025-06-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15325899', 'tblTempVendorCDR_20' ) end [2025-06-20 01:25:18] Production.INFO: ProcessCDR(1,15325899,1,1,2) [2025-06-20 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15325899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15325899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15325899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15325899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325899', 'tblTempUsageDetail_20' ) start [2025-06-20 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15325899', 'tblTempUsageDetail_20' ) end [2025-06-20 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-20 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-20 01:25:24] Production.INFO: ==6400== Releasing lock... [2025-06-20 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 01:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-19 23:25:05 [end_date_ymd] => 2025-06-20 02:25:05 [RateCDR] => 1 ) [2025-06-20 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-19 23:25:05' and `end` < '2025-06-20 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 02:25:18] Production.INFO: count ==417 [2025-06-20 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-19 23:25:05 - End Time 2025-06-20 02:25:05 [2025-06-20 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326146', 'tblTempUsageDetail_20' ) start [2025-06-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326146', 'tblTempUsageDetail_20' ) end [2025-06-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326146', 'tblTempVendorCDR_20' ) start [2025-06-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326146', 'tblTempVendorCDR_20' ) end [2025-06-20 02:25:18] Production.INFO: ProcessCDR(1,15326146,1,1,2) [2025-06-20 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15326146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15326146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15326146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15326146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326146', 'tblTempUsageDetail_20' ) start [2025-06-20 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326146', 'tblTempUsageDetail_20' ) end [2025-06-20 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-20 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-20 02:25:24] Production.INFO: ==11210== Releasing lock... [2025-06-20 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 02:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-20 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 00:25:05 [end_date_ymd] => 2025-06-20 03:25:05 [RateCDR] => 1 ) [2025-06-20 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-06-20 00:25:05' and `end` < '2025-06-20 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-06-20 03:25:18] Production.INFO: count ==426 [2025-06-20 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 00:25:05 - End Time 2025-06-20 03:25:05 [2025-06-20 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326393', 'tblTempUsageDetail_20' ) start [2025-06-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326393', 'tblTempUsageDetail_20' ) end [2025-06-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326393', 'tblTempVendorCDR_20' ) start [2025-06-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326393', 'tblTempVendorCDR_20' ) end [2025-06-20 03:25:18] Production.INFO: ProcessCDR(1,15326393,1,1,2) [2025-06-20 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15326393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15326393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15326393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15326393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326393', 'tblTempUsageDetail_20' ) start [2025-06-20 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326393', 'tblTempUsageDetail_20' ) end [2025-06-20 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-20 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-20 03:25:23] Production.INFO: ==16284== Releasing lock... [2025-06-20 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 03:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-06-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 01:25:05 [end_date_ymd] => 2025-06-20 04:25:05 [RateCDR] => 1 ) [2025-06-20 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 01:25:05' and `end` < '2025-06-20 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 04:25:17] Production.INFO: count ==302 [2025-06-20 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-20 01:25:05 - End Time 2025-06-20 04:25:05 [2025-06-20 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326641', 'tblTempUsageDetail_20' ) start [2025-06-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326641', 'tblTempUsageDetail_20' ) end [2025-06-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326641', 'tblTempVendorCDR_20' ) start [2025-06-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326641', 'tblTempVendorCDR_20' ) end [2025-06-20 04:25:17] Production.INFO: ProcessCDR(1,15326641,1,1,2) [2025-06-20 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15326641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15326641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15326641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15326641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326641', 'tblTempUsageDetail_20' ) start [2025-06-20 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326641', 'tblTempUsageDetail_20' ) end [2025-06-20 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-20 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-20 04:25:23] Production.INFO: ==21784== Releasing lock... [2025-06-20 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 04:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 02:25:05 [end_date_ymd] => 2025-06-20 05:25:05 [RateCDR] => 1 ) [2025-06-20 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 02:25:05' and `end` < '2025-06-20 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 05:25:17] Production.INFO: count ==257 [2025-06-20 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-20 02:25:05 - End Time 2025-06-20 05:25:05 [2025-06-20 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326889', 'tblTempUsageDetail_20' ) start [2025-06-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15326889', 'tblTempUsageDetail_20' ) end [2025-06-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326889', 'tblTempVendorCDR_20' ) start [2025-06-20 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15326889', 'tblTempVendorCDR_20' ) end [2025-06-20 05:25:17] Production.INFO: ProcessCDR(1,15326889,1,1,2) [2025-06-20 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15326889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15326889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15326889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15326889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326889', 'tblTempUsageDetail_20' ) start [2025-06-20 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15326889', 'tblTempUsageDetail_20' ) end [2025-06-20 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-20 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-20 05:25:23] Production.INFO: ==26898== Releasing lock... [2025-06-20 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 05:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-06-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 03:25:05 [end_date_ymd] => 2025-06-20 06:25:05 [RateCDR] => 1 ) [2025-06-20 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 03:25:05' and `end` < '2025-06-20 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 06:25:17] Production.INFO: count ==134 [2025-06-20 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-20 03:25:05 - End Time 2025-06-20 06:25:05 [2025-06-20 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327136', 'tblTempUsageDetail_20' ) start [2025-06-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327136', 'tblTempUsageDetail_20' ) end [2025-06-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327136', 'tblTempVendorCDR_20' ) start [2025-06-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327136', 'tblTempVendorCDR_20' ) end [2025-06-20 06:25:17] Production.INFO: ProcessCDR(1,15327136,1,1,2) [2025-06-20 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15327136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15327136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15327136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15327136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327136', 'tblTempUsageDetail_20' ) start [2025-06-20 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327136', 'tblTempUsageDetail_20' ) end [2025-06-20 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-20 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-20 06:25:23] Production.INFO: ==31258== Releasing lock... [2025-06-20 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 06:25:23] Production.INFO: 29 MB #Memory Used# [2025-06-20 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 04:25:06 [end_date_ymd] => 2025-06-20 07:25:06 [RateCDR] => 1 ) [2025-06-20 07: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-06-20 04:25:06' and `end` < '2025-06-20 07: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-06-20 07:25:18] Production.INFO: count ==179 [2025-06-20 07:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 04:25:06 - End Time 2025-06-20 07:25:06 [2025-06-20 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327383', 'tblTempUsageDetail_20' ) start [2025-06-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327383', 'tblTempUsageDetail_20' ) end [2025-06-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327383', 'tblTempVendorCDR_20' ) start [2025-06-20 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327383', 'tblTempVendorCDR_20' ) end [2025-06-20 07:25:18] Production.INFO: ProcessCDR(1,15327383,1,1,2) [2025-06-20 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15327383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15327383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15327383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15327383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327383', 'tblTempUsageDetail_20' ) start [2025-06-20 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327383', 'tblTempUsageDetail_20' ) end [2025-06-20 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-20 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-20 07:25:24] Production.INFO: ==3269== Releasing lock... [2025-06-20 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 07:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-06-20 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 05:25:05 [end_date_ymd] => 2025-06-20 08:25:05 [RateCDR] => 1 ) [2025-06-20 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 05:25:05' and `end` < '2025-06-20 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 08:25:17] Production.INFO: count ==425 [2025-06-20 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-20 05:25:05 - End Time 2025-06-20 08:25:05 [2025-06-20 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327630', 'tblTempUsageDetail_20' ) start [2025-06-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327630', 'tblTempUsageDetail_20' ) end [2025-06-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327630', 'tblTempVendorCDR_20' ) start [2025-06-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327630', 'tblTempVendorCDR_20' ) end [2025-06-20 08:25:17] Production.INFO: ProcessCDR(1,15327630,1,1,2) [2025-06-20 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15327630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15327630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15327630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15327630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327630', 'tblTempUsageDetail_20' ) start [2025-06-20 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327630', 'tblTempUsageDetail_20' ) end [2025-06-20 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-20 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-20 08:25:24] Production.INFO: ==7588== Releasing lock... [2025-06-20 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 08:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 06:25:05 [end_date_ymd] => 2025-06-20 09:25:05 [RateCDR] => 1 ) [2025-06-20 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 06:25:05' and `end` < '2025-06-20 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 09:25:18] Production.INFO: count ==1428 [2025-06-20 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 06:25:05 - End Time 2025-06-20 09:25:05 [2025-06-20 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327877', 'tblTempUsageDetail_20' ) start [2025-06-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15327877', 'tblTempUsageDetail_20' ) end [2025-06-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327877', 'tblTempVendorCDR_20' ) start [2025-06-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15327877', 'tblTempVendorCDR_20' ) end [2025-06-20 09:25:18] Production.INFO: ProcessCDR(1,15327877,1,1,2) [2025-06-20 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15327877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15327877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15327877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15327877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327877', 'tblTempUsageDetail_20' ) start [2025-06-20 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15327877', 'tblTempUsageDetail_20' ) end [2025-06-20 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-20 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-20 09:25:26] Production.INFO: ==11953== Releasing lock... [2025-06-20 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 09:25:26] Production.INFO: 39 MB #Memory Used# [2025-06-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 07:25:05 [end_date_ymd] => 2025-06-20 10:25:05 [RateCDR] => 1 ) [2025-06-20 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 07:25:05' and `end` < '2025-06-20 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 10:25:18] Production.INFO: count ==2907 [2025-06-20 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-20 07:25:05 - End Time 2025-06-20 10:25:05 [2025-06-20 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328124', 'tblTempUsageDetail_20' ) start [2025-06-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328124', 'tblTempUsageDetail_20' ) end [2025-06-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328124', 'tblTempVendorCDR_20' ) start [2025-06-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328124', 'tblTempVendorCDR_20' ) end [2025-06-20 10:25:19] Production.INFO: ProcessCDR(1,15328124,1,1,2) [2025-06-20 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15328124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15328124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15328124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15328124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328124', 'tblTempUsageDetail_20' ) start [2025-06-20 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328124', 'tblTempUsageDetail_20' ) end [2025-06-20 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-20 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-20 10:25:29] Production.INFO: ==16634== Releasing lock... [2025-06-20 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 10:25:29] Production.INFO: 50.25 MB #Memory Used# [2025-06-20 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 08:25:05 [end_date_ymd] => 2025-06-20 11:25:05 [RateCDR] => 1 ) [2025-06-20 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-06-20 08:25:05' and `end` < '2025-06-20 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-06-20 11:25:22] Production.INFO: count ==4389 [2025-06-20 11:25:24] Production.ERROR: pbx CDR StartTime 2025-06-20 08:25:05 - End Time 2025-06-20 11:25:05 [2025-06-20 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328371', 'tblTempUsageDetail_20' ) start [2025-06-20 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328371', 'tblTempUsageDetail_20' ) end [2025-06-20 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328371', 'tblTempVendorCDR_20' ) start [2025-06-20 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328371', 'tblTempVendorCDR_20' ) end [2025-06-20 11:25:25] Production.INFO: ProcessCDR(1,15328371,1,1,2) [2025-06-20 11:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15328371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15328371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15328371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15328371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328371', 'tblTempUsageDetail_20' ) start [2025-06-20 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328371', 'tblTempUsageDetail_20' ) end [2025-06-20 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-06-20 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-06-20 11:25:35] Production.INFO: ==21106== Releasing lock... [2025-06-20 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 11:25:35] Production.INFO: 61 MB #Memory Used# [2025-06-20 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 09:25:06 [end_date_ymd] => 2025-06-20 12:25:06 [RateCDR] => 1 ) [2025-06-20 12: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-06-20 09:25:06' and `end` < '2025-06-20 12: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-06-20 12:25:19] Production.INFO: count ==4972 [2025-06-20 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-20 09:25:06 - End Time 2025-06-20 12:25:06 [2025-06-20 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328618', 'tblTempUsageDetail_20' ) start [2025-06-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328618', 'tblTempUsageDetail_20' ) end [2025-06-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328618', 'tblTempVendorCDR_20' ) start [2025-06-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328618', 'tblTempVendorCDR_20' ) end [2025-06-20 12:25:22] Production.INFO: ProcessCDR(1,15328618,1,1,2) [2025-06-20 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15328618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15328618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15328618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15328618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328618', 'tblTempUsageDetail_20' ) start [2025-06-20 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328618', 'tblTempUsageDetail_20' ) end [2025-06-20 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-20 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-20 12:25:31] Production.INFO: ==25716== Releasing lock... [2025-06-20 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 12:25:31] Production.INFO: 65.5 MB #Memory Used# [2025-06-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 10:25:05 [end_date_ymd] => 2025-06-20 13:25:05 [RateCDR] => 1 ) [2025-06-20 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 10:25:05' and `end` < '2025-06-20 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 13:25:18] Production.INFO: count ==5105 [2025-06-20 13:25:21] Production.ERROR: pbx CDR StartTime 2025-06-20 10:25:05 - End Time 2025-06-20 13:25:05 [2025-06-20 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328865', 'tblTempUsageDetail_20' ) start [2025-06-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15328865', 'tblTempUsageDetail_20' ) end [2025-06-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328865', 'tblTempVendorCDR_20' ) start [2025-06-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15328865', 'tblTempVendorCDR_20' ) end [2025-06-20 13:25:21] Production.INFO: ProcessCDR(1,15328865,1,1,2) [2025-06-20 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15328865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15328865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15328865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15328865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328865', 'tblTempUsageDetail_20' ) start [2025-06-20 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15328865', 'tblTempUsageDetail_20' ) end [2025-06-20 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-20 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-20 13:25:31] Production.INFO: ==30012== Releasing lock... [2025-06-20 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 13:25:31] Production.INFO: 66.5 MB #Memory Used# [2025-06-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 11:25:05 [end_date_ymd] => 2025-06-20 14:25:05 [RateCDR] => 1 ) [2025-06-20 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 11:25:05' and `end` < '2025-06-20 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 14:25:19] Production.INFO: count ==5004 [2025-06-20 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-20 11:25:05 - End Time 2025-06-20 14:25:05 [2025-06-20 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329112', 'tblTempUsageDetail_20' ) start [2025-06-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329112', 'tblTempUsageDetail_20' ) end [2025-06-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329112', 'tblTempVendorCDR_20' ) start [2025-06-20 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329112', 'tblTempVendorCDR_20' ) end [2025-06-20 14:25:21] Production.INFO: ProcessCDR(1,15329112,1,1,2) [2025-06-20 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15329112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15329112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15329112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 14:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15329112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329112', 'tblTempUsageDetail_20' ) start [2025-06-20 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329112', 'tblTempUsageDetail_20' ) end [2025-06-20 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-20 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-20 14:25:32] Production.INFO: ==2563== Releasing lock... [2025-06-20 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 14:25:32] Production.INFO: 65.75 MB #Memory Used# [2025-06-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 12:25:05 [end_date_ymd] => 2025-06-20 15:25:05 [RateCDR] => 1 ) [2025-06-20 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 12:25:05' and `end` < '2025-06-20 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 15:25:18] Production.INFO: count ==4932 [2025-06-20 15:25:21] Production.ERROR: pbx CDR StartTime 2025-06-20 12:25:05 - End Time 2025-06-20 15:25:05 [2025-06-20 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329359', 'tblTempUsageDetail_20' ) start [2025-06-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329359', 'tblTempUsageDetail_20' ) end [2025-06-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329359', 'tblTempVendorCDR_20' ) start [2025-06-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329359', 'tblTempVendorCDR_20' ) end [2025-06-20 15:25:21] Production.INFO: ProcessCDR(1,15329359,1,1,2) [2025-06-20 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15329359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15329359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15329359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15329359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329359', 'tblTempUsageDetail_20' ) start [2025-06-20 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329359', 'tblTempUsageDetail_20' ) end [2025-06-20 15:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-20 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-06-20 15:25:31] Production.INFO: ==7111== Releasing lock... [2025-06-20 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 15:25:31] Production.INFO: 65.25 MB #Memory Used# [2025-06-20 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 13:25:06 [end_date_ymd] => 2025-06-20 16:25:06 [RateCDR] => 1 ) [2025-06-20 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-06-20 13:25:06' and `end` < '2025-06-20 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 16:25:20] Production.INFO: count ==5216 [2025-06-20 16:25:22] Production.ERROR: pbx CDR StartTime 2025-06-20 13:25:06 - End Time 2025-06-20 16:25:06 [2025-06-20 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329606', 'tblTempUsageDetail_20' ) start [2025-06-20 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329606', 'tblTempUsageDetail_20' ) end [2025-06-20 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329606', 'tblTempVendorCDR_20' ) start [2025-06-20 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329606', 'tblTempVendorCDR_20' ) end [2025-06-20 16:25:23] Production.INFO: ProcessCDR(1,15329606,1,1,2) [2025-06-20 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15329606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15329606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15329606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15329606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329606', 'tblTempUsageDetail_20' ) start [2025-06-20 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329606', 'tblTempUsageDetail_20' ) end [2025-06-20 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-20 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-20 16:25:33] Production.INFO: ==11661== Releasing lock... [2025-06-20 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 16:25:33] Production.INFO: 67.25 MB #Memory Used# [2025-06-20 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 14:25:06 [end_date_ymd] => 2025-06-20 17:25:06 [RateCDR] => 1 ) [2025-06-20 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-06-20 14:25:06' and `end` < '2025-06-20 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-06-20 17:25:21] Production.INFO: count ==4991 [2025-06-20 17:25:23] Production.ERROR: pbx CDR StartTime 2025-06-20 14:25:06 - End Time 2025-06-20 17:25:06 [2025-06-20 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329853', 'tblTempUsageDetail_20' ) start [2025-06-20 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15329853', 'tblTempUsageDetail_20' ) end [2025-06-20 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329853', 'tblTempVendorCDR_20' ) start [2025-06-20 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15329853', 'tblTempVendorCDR_20' ) end [2025-06-20 17:25:24] Production.INFO: ProcessCDR(1,15329853,1,1,2) [2025-06-20 17:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15329853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15329853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15329853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15329853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329853', 'tblTempUsageDetail_20' ) start [2025-06-20 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15329853', 'tblTempUsageDetail_20' ) end [2025-06-20 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-20 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-20 17:25:32] Production.INFO: ==16210== Releasing lock... [2025-06-20 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 17:25:32] Production.INFO: 65.5 MB #Memory Used# [2025-06-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 15:25:05 [end_date_ymd] => 2025-06-20 18:25:05 [RateCDR] => 1 ) [2025-06-20 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 15:25:05' and `end` < '2025-06-20 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 18:25:18] Production.INFO: count ==4562 [2025-06-20 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-20 15:25:05 - End Time 2025-06-20 18:25:05 [2025-06-20 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330100', 'tblTempUsageDetail_20' ) start [2025-06-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330100', 'tblTempUsageDetail_20' ) end [2025-06-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330100', 'tblTempVendorCDR_20' ) start [2025-06-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330100', 'tblTempVendorCDR_20' ) end [2025-06-20 18:25:20] Production.INFO: ProcessCDR(1,15330100,1,1,2) [2025-06-20 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15330100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15330100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15330100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 18:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15330100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 18:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330100', 'tblTempUsageDetail_20' ) start [2025-06-20 18:26:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330100', 'tblTempUsageDetail_20' ) end [2025-06-20 18:26:47] Production.ERROR: pbx prc_insertCDR start [2025-06-20 18:26:49] Production.ERROR: pbx prc_insertCDR end [2025-06-20 18:26:57] Production.INFO: ==20850== Releasing lock... [2025-06-20 18:26:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 18:26:57] Production.INFO: 62.25 MB #Memory Used# [2025-06-20 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 16:25:06 [end_date_ymd] => 2025-06-20 19:25:06 [RateCDR] => 1 ) [2025-06-20 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 16:25:06' and `end` < '2025-06-20 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 19:25:19] Production.INFO: count ==3585 [2025-06-20 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-20 16:25:06 - End Time 2025-06-20 19:25:06 [2025-06-20 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330344', 'tblTempUsageDetail_20' ) start [2025-06-20 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330344', 'tblTempUsageDetail_20' ) end [2025-06-20 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330344', 'tblTempVendorCDR_20' ) start [2025-06-20 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330344', 'tblTempVendorCDR_20' ) end [2025-06-20 19:25:20] Production.INFO: ProcessCDR(1,15330344,1,1,2) [2025-06-20 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15330344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15330344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15330344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15330344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330344', 'tblTempUsageDetail_20' ) start [2025-06-20 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330344', 'tblTempUsageDetail_20' ) end [2025-06-20 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-20 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-20 19:25:28] Production.INFO: ==25259== Releasing lock... [2025-06-20 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 19:25:28] Production.INFO: 55 MB #Memory Used# [2025-06-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 17:25:05 [end_date_ymd] => 2025-06-20 20:25:05 [RateCDR] => 1 ) [2025-06-20 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 17:25:05' and `end` < '2025-06-20 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 20:25:18] Production.INFO: count ==2756 [2025-06-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-20 17:25:05 - End Time 2025-06-20 20:25:05 [2025-06-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330591', 'tblTempUsageDetail_20' ) start [2025-06-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330591', 'tblTempUsageDetail_20' ) end [2025-06-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330591', 'tblTempVendorCDR_20' ) start [2025-06-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330591', 'tblTempVendorCDR_20' ) end [2025-06-20 20:25:19] Production.INFO: ProcessCDR(1,15330591,1,1,2) [2025-06-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15330591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15330591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15330591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15330591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330591', 'tblTempUsageDetail_20' ) start [2025-06-20 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330591', 'tblTempUsageDetail_20' ) end [2025-06-20 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-20 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-20 20:25:26] Production.INFO: ==29491== Releasing lock... [2025-06-20 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 20:25:26] Production.INFO: 49 MB #Memory Used# [2025-06-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 18:25:05 [end_date_ymd] => 2025-06-20 21:25:05 [RateCDR] => 1 ) [2025-06-20 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 18:25:05' and `end` < '2025-06-20 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 21:25:17] Production.INFO: count ==2156 [2025-06-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 18:25:05 - End Time 2025-06-20 21:25:05 [2025-06-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330838', 'tblTempUsageDetail_20' ) start [2025-06-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15330838', 'tblTempUsageDetail_20' ) end [2025-06-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330838', 'tblTempVendorCDR_20' ) start [2025-06-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15330838', 'tblTempVendorCDR_20' ) end [2025-06-20 21:25:18] Production.INFO: ProcessCDR(1,15330838,1,1,2) [2025-06-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15330838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15330838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15330838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15330838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330838', 'tblTempUsageDetail_20' ) start [2025-06-20 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15330838', 'tblTempUsageDetail_20' ) end [2025-06-20 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-20 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-20 21:25:26] Production.INFO: ==2474== Releasing lock... [2025-06-20 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 21:25:26] Production.INFO: 44.5 MB #Memory Used# [2025-06-20 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 19:25:05 [end_date_ymd] => 2025-06-20 22:25:05 [RateCDR] => 1 ) [2025-06-20 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 19:25:05' and `end` < '2025-06-20 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 22:25:17] Production.INFO: count ==1612 [2025-06-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 19:25:05 - End Time 2025-06-20 22:25:05 [2025-06-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331085', 'tblTempUsageDetail_20' ) start [2025-06-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331085', 'tblTempUsageDetail_20' ) end [2025-06-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331085', 'tblTempVendorCDR_20' ) start [2025-06-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331085', 'tblTempVendorCDR_20' ) end [2025-06-20 22:25:18] Production.INFO: ProcessCDR(1,15331085,1,1,2) [2025-06-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15331085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15331085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15331085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15331085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331085', 'tblTempUsageDetail_20' ) start [2025-06-20 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331085', 'tblTempUsageDetail_20' ) end [2025-06-20 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-20 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-20 22:25:25] Production.INFO: ==6939== Releasing lock... [2025-06-20 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 22:25:25] Production.INFO: 40.5 MB #Memory Used# [2025-06-20 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 20:25:06 [end_date_ymd] => 2025-06-20 23:25:06 [RateCDR] => 1 ) [2025-06-20 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 20:25:06' and `end` < '2025-06-20 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-20 23:25:18] Production.INFO: count ==1229 [2025-06-20 23:25:19] Production.ERROR: pbx CDR StartTime 2025-06-20 20:25:06 - End Time 2025-06-20 23:25:06 [2025-06-20 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-20 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331332', 'tblTempUsageDetail_20' ) start [2025-06-20 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331332', 'tblTempUsageDetail_20' ) end [2025-06-20 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331332', 'tblTempVendorCDR_20' ) start [2025-06-20 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331332', 'tblTempVendorCDR_20' ) end [2025-06-20 23:25:19] Production.INFO: ProcessCDR(1,15331332,1,1,2) [2025-06-20 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15331332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15331332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-20 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15331332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15331332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331332', 'tblTempUsageDetail_20' ) start [2025-06-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331332', 'tblTempUsageDetail_20' ) end [2025-06-20 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-20 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-20 23:25:25] Production.INFO: ==11694== Releasing lock... [2025-06-20 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-20 23:25:25] Production.INFO: 37.75 MB #Memory Used#