[2025-07-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 21:25:05 [end_date_ymd] => 2025-07-17 00:25:05 [RateCDR] => 1 ) [2025-07-17 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 21:25:05' and `end` < '2025-07-17 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 00:25:18] Production.INFO: count ==498 [2025-07-17 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 21:25:05 - End Time 2025-07-17 00:25:05 [2025-07-17 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485683', 'tblTempUsageDetail_20' ) start [2025-07-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485683', 'tblTempUsageDetail_20' ) end [2025-07-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485683', 'tblTempVendorCDR_20' ) start [2025-07-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485683', 'tblTempVendorCDR_20' ) end [2025-07-17 00:25:18] Production.INFO: ProcessCDR(1,15485683,1,1,2) [2025-07-17 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15485683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15485683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15485683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15485683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485683', 'tblTempUsageDetail_20' ) start [2025-07-17 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485683', 'tblTempUsageDetail_20' ) end [2025-07-17 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-17 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-17 00:25:27] Production.INFO: ==8941== Releasing lock... [2025-07-17 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 00:25:27] Production.INFO: 35.75 MB #Memory Used# [2025-07-17 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 22:25:05 [end_date_ymd] => 2025-07-17 01:25:05 [RateCDR] => 1 ) [2025-07-17 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 22:25:05' and `end` < '2025-07-17 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 01:25:18] Production.INFO: count ==458 [2025-07-17 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 22:25:05 - End Time 2025-07-17 01:25:05 [2025-07-17 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485930', 'tblTempUsageDetail_20' ) start [2025-07-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485930', 'tblTempUsageDetail_20' ) end [2025-07-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485930', 'tblTempVendorCDR_20' ) start [2025-07-17 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485930', 'tblTempVendorCDR_20' ) end [2025-07-17 01:25:18] Production.INFO: ProcessCDR(1,15485930,1,1,2) [2025-07-17 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15485930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15485930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15485930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15485930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485930', 'tblTempUsageDetail_20' ) start [2025-07-17 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485930', 'tblTempUsageDetail_20' ) end [2025-07-17 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 01:25:24] Production.INFO: ==14253== Releasing lock... [2025-07-17 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 01:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-17 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 23:25:05 [end_date_ymd] => 2025-07-17 02:25:05 [RateCDR] => 1 ) [2025-07-17 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 23:25:05' and `end` < '2025-07-17 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 02:25:17] Production.INFO: count ==420 [2025-07-17 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 23:25:05 - End Time 2025-07-17 02:25:05 [2025-07-17 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486177', 'tblTempUsageDetail_20' ) start [2025-07-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486177', 'tblTempUsageDetail_20' ) end [2025-07-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486177', 'tblTempVendorCDR_20' ) start [2025-07-17 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486177', 'tblTempVendorCDR_20' ) end [2025-07-17 02:25:18] Production.INFO: ProcessCDR(1,15486177,1,1,2) [2025-07-17 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15486177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15486177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15486177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15486177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486177', 'tblTempUsageDetail_20' ) start [2025-07-17 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486177', 'tblTempUsageDetail_20' ) end [2025-07-17 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 02:25:24] Production.INFO: ==19693== Releasing lock... [2025-07-17 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 02:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-07-17 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 00:25:05 [end_date_ymd] => 2025-07-17 03:25:05 [RateCDR] => 1 ) [2025-07-17 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 00:25:05' and `end` < '2025-07-17 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 03:25:17] Production.INFO: count ==363 [2025-07-17 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-17 00:25:05 - End Time 2025-07-17 03:25:05 [2025-07-17 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486424', 'tblTempUsageDetail_20' ) start [2025-07-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486424', 'tblTempUsageDetail_20' ) end [2025-07-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486424', 'tblTempVendorCDR_20' ) start [2025-07-17 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486424', 'tblTempVendorCDR_20' ) end [2025-07-17 03:25:17] Production.INFO: ProcessCDR(1,15486424,1,1,2) [2025-07-17 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15486424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15486424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15486424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15486424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486424', 'tblTempUsageDetail_20' ) start [2025-07-17 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486424', 'tblTempUsageDetail_20' ) end [2025-07-17 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 03:25:24] Production.INFO: ==25320== Releasing lock... [2025-07-17 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 03:25:24] Production.INFO: 31 MB #Memory Used# [2025-07-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 01:25:05 [end_date_ymd] => 2025-07-17 04:25:05 [RateCDR] => 1 ) [2025-07-17 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 01:25:05' and `end` < '2025-07-17 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 04:25:18] Production.INFO: count ==280 [2025-07-17 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 01:25:05 - End Time 2025-07-17 04:25:05 [2025-07-17 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486672', 'tblTempUsageDetail_20' ) start [2025-07-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486672', 'tblTempUsageDetail_20' ) end [2025-07-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486672', 'tblTempVendorCDR_20' ) start [2025-07-17 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486672', 'tblTempVendorCDR_20' ) end [2025-07-17 04:25:18] Production.INFO: ProcessCDR(1,15486672,1,1,2) [2025-07-17 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15486672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15486672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15486672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15486672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486672', 'tblTempUsageDetail_20' ) start [2025-07-17 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486672', 'tblTempUsageDetail_20' ) end [2025-07-17 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 04:25:24] Production.INFO: ==30240== Releasing lock... [2025-07-17 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 04:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-07-17 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 02:25:05 [end_date_ymd] => 2025-07-17 05:25:05 [RateCDR] => 1 ) [2025-07-17 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 02:25:05' and `end` < '2025-07-17 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 05:25:18] Production.INFO: count ==224 [2025-07-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 02:25:05 - End Time 2025-07-17 05:25:05 [2025-07-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486920', 'tblTempUsageDetail_20' ) start [2025-07-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15486920', 'tblTempUsageDetail_20' ) end [2025-07-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486920', 'tblTempVendorCDR_20' ) start [2025-07-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15486920', 'tblTempVendorCDR_20' ) end [2025-07-17 05:25:18] Production.INFO: ProcessCDR(1,15486920,1,1,2) [2025-07-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15486920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15486920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15486920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15486920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486920', 'tblTempUsageDetail_20' ) start [2025-07-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15486920', 'tblTempUsageDetail_20' ) end [2025-07-17 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 05:25:24] Production.INFO: ==2216== Releasing lock... [2025-07-17 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 05:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 03:25:05 [end_date_ymd] => 2025-07-17 06:25:05 [RateCDR] => 1 ) [2025-07-17 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 03:25:05' and `end` < '2025-07-17 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 06:25:17] Production.INFO: count ==172 [2025-07-17 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-17 03:25:05 - End Time 2025-07-17 06:25:05 [2025-07-17 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487167', 'tblTempUsageDetail_20' ) start [2025-07-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487167', 'tblTempUsageDetail_20' ) end [2025-07-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487167', 'tblTempVendorCDR_20' ) start [2025-07-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487167', 'tblTempVendorCDR_20' ) end [2025-07-17 06:25:17] Production.INFO: ProcessCDR(1,15487167,1,1,2) [2025-07-17 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15487167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15487167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15487167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15487167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487167', 'tblTempUsageDetail_20' ) start [2025-07-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487167', 'tblTempUsageDetail_20' ) end [2025-07-17 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 06:25:24] Production.INFO: ==7218== Releasing lock... [2025-07-17 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 06:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-07-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 04:25:05 [end_date_ymd] => 2025-07-17 07:25:05 [RateCDR] => 1 ) [2025-07-17 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 04:25:05' and `end` < '2025-07-17 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 07:25:17] Production.INFO: count ==154 [2025-07-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-17 04:25:05 - End Time 2025-07-17 07:25:05 [2025-07-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487414', 'tblTempUsageDetail_20' ) start [2025-07-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487414', 'tblTempUsageDetail_20' ) end [2025-07-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487414', 'tblTempVendorCDR_20' ) start [2025-07-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487414', 'tblTempVendorCDR_20' ) end [2025-07-17 07:25:17] Production.INFO: ProcessCDR(1,15487414,1,1,2) [2025-07-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15487414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15487414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15487414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15487414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487414', 'tblTempUsageDetail_20' ) start [2025-07-17 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487414', 'tblTempUsageDetail_20' ) end [2025-07-17 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 07:25:24] Production.INFO: ==11778== Releasing lock... [2025-07-17 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-17 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 05:25:05 [end_date_ymd] => 2025-07-17 08:25:05 [RateCDR] => 1 ) [2025-07-17 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 05:25:05' and `end` < '2025-07-17 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 08:25:17] Production.INFO: count ==378 [2025-07-17 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-17 05:25:05 - End Time 2025-07-17 08:25:05 [2025-07-17 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487661', 'tblTempUsageDetail_20' ) start [2025-07-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487661', 'tblTempUsageDetail_20' ) end [2025-07-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487661', 'tblTempVendorCDR_20' ) start [2025-07-17 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487661', 'tblTempVendorCDR_20' ) end [2025-07-17 08:25:17] Production.INFO: ProcessCDR(1,15487661,1,1,2) [2025-07-17 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15487661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15487661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15487661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15487661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487661', 'tblTempUsageDetail_20' ) start [2025-07-17 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487661', 'tblTempUsageDetail_20' ) end [2025-07-17 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 08:25:24] Production.INFO: ==16629== Releasing lock... [2025-07-17 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 08:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-07-17 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 06:25:05 [end_date_ymd] => 2025-07-17 09:25:05 [RateCDR] => 1 ) [2025-07-17 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 06:25:05' and `end` < '2025-07-17 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 09:25:18] Production.INFO: count ==1306 [2025-07-17 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-17 06:25:05 - End Time 2025-07-17 09:25:05 [2025-07-17 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487908', 'tblTempUsageDetail_20' ) start [2025-07-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15487908', 'tblTempUsageDetail_20' ) end [2025-07-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487908', 'tblTempVendorCDR_20' ) start [2025-07-17 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15487908', 'tblTempVendorCDR_20' ) end [2025-07-17 09:25:19] Production.INFO: ProcessCDR(1,15487908,1,1,2) [2025-07-17 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15487908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15487908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15487908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15487908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487908', 'tblTempUsageDetail_20' ) start [2025-07-17 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15487908', 'tblTempUsageDetail_20' ) end [2025-07-17 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-17 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-17 09:25:27] Production.INFO: ==21201== Releasing lock... [2025-07-17 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 09:25:27] Production.INFO: 38 MB #Memory Used# [2025-07-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 07:25:05 [end_date_ymd] => 2025-07-17 10:25:05 [RateCDR] => 1 ) [2025-07-17 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 07:25:05' and `end` < '2025-07-17 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 10:25:20] Production.INFO: count ==2742 [2025-07-17 10:25:21] Production.ERROR: pbx CDR StartTime 2025-07-17 07:25:05 - End Time 2025-07-17 10:25:05 [2025-07-17 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488155', 'tblTempUsageDetail_20' ) start [2025-07-17 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488155', 'tblTempUsageDetail_20' ) end [2025-07-17 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488155', 'tblTempVendorCDR_20' ) start [2025-07-17 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488155', 'tblTempVendorCDR_20' ) end [2025-07-17 10:25:21] Production.INFO: ProcessCDR(1,15488155,1,1,2) [2025-07-17 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15488155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15488155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15488155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15488155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488155', 'tblTempUsageDetail_20' ) start [2025-07-17 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488155', 'tblTempUsageDetail_20' ) end [2025-07-17 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-17 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-17 10:25:30] Production.INFO: ==25876== Releasing lock... [2025-07-17 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 10:25:30] Production.INFO: 49 MB #Memory Used# [2025-07-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 08:25:05 [end_date_ymd] => 2025-07-17 11:25:05 [RateCDR] => 1 ) [2025-07-17 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 08:25:05' and `end` < '2025-07-17 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 11:25:18] Production.INFO: count ==4115 [2025-07-17 11:25:20] Production.ERROR: pbx CDR StartTime 2025-07-17 08:25:05 - End Time 2025-07-17 11:25:05 [2025-07-17 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488402', 'tblTempUsageDetail_20' ) start [2025-07-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488402', 'tblTempUsageDetail_20' ) end [2025-07-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488402', 'tblTempVendorCDR_20' ) start [2025-07-17 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488402', 'tblTempVendorCDR_20' ) end [2025-07-17 11:25:20] Production.INFO: ProcessCDR(1,15488402,1,1,2) [2025-07-17 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15488402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15488402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15488402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15488402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488402', 'tblTempUsageDetail_20' ) start [2025-07-17 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488402', 'tblTempUsageDetail_20' ) end [2025-07-17 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-17 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-17 11:25:31] Production.INFO: ==31661== Releasing lock... [2025-07-17 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 11:25:31] Production.INFO: 59 MB #Memory Used# [2025-07-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 09:25:05 [end_date_ymd] => 2025-07-17 12:25:05 [RateCDR] => 1 ) [2025-07-17 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 09:25:05' and `end` < '2025-07-17 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 12:25:19] Production.INFO: count ==4913 [2025-07-17 12:25:22] Production.ERROR: pbx CDR StartTime 2025-07-17 09:25:05 - End Time 2025-07-17 12:25:05 [2025-07-17 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488649', 'tblTempUsageDetail_20' ) start [2025-07-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488649', 'tblTempUsageDetail_20' ) end [2025-07-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488649', 'tblTempVendorCDR_20' ) start [2025-07-17 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488649', 'tblTempVendorCDR_20' ) end [2025-07-17 12:25:22] Production.INFO: ProcessCDR(1,15488649,1,1,2) [2025-07-17 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15488649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15488649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15488649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15488649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488649', 'tblTempUsageDetail_20' ) start [2025-07-17 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488649', 'tblTempUsageDetail_20' ) end [2025-07-17 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-17 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-17 12:25:32] Production.INFO: ==5591== Releasing lock... [2025-07-17 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 12:25:32] Production.INFO: 65 MB #Memory Used# [2025-07-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 10:25:05 [end_date_ymd] => 2025-07-17 13:25:05 [RateCDR] => 1 ) [2025-07-17 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 10:25:05' and `end` < '2025-07-17 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 13:25:19] Production.INFO: count ==5103 [2025-07-17 13:25:21] Production.ERROR: pbx CDR StartTime 2025-07-17 10:25:05 - End Time 2025-07-17 13:25:05 [2025-07-17 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488896', 'tblTempUsageDetail_20' ) start [2025-07-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15488896', 'tblTempUsageDetail_20' ) end [2025-07-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488896', 'tblTempVendorCDR_20' ) start [2025-07-17 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15488896', 'tblTempVendorCDR_20' ) end [2025-07-17 13:25:22] Production.INFO: ProcessCDR(1,15488896,1,1,2) [2025-07-17 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15488896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15488896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15488896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15488896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488896', 'tblTempUsageDetail_20' ) start [2025-07-17 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15488896', 'tblTempUsageDetail_20' ) end [2025-07-17 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-17 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-17 13:25:33] Production.INFO: ==11277== Releasing lock... [2025-07-17 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 13:25:33] Production.INFO: 66.5 MB #Memory Used# [2025-07-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 11:25:05 [end_date_ymd] => 2025-07-17 14:25:05 [RateCDR] => 1 ) [2025-07-17 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 11:25:05' and `end` < '2025-07-17 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 14:25:18] Production.INFO: count ==4922 [2025-07-17 14:25:20] Production.ERROR: pbx CDR StartTime 2025-07-17 11:25:05 - End Time 2025-07-17 14:25:05 [2025-07-17 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489143', 'tblTempUsageDetail_20' ) start [2025-07-17 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489143', 'tblTempUsageDetail_20' ) end [2025-07-17 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489143', 'tblTempVendorCDR_20' ) start [2025-07-17 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489143', 'tblTempVendorCDR_20' ) end [2025-07-17 14:25:20] Production.INFO: ProcessCDR(1,15489143,1,1,2) [2025-07-17 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15489143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15489143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15489143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15489143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489143', 'tblTempUsageDetail_20' ) start [2025-07-17 14:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489143', 'tblTempUsageDetail_20' ) end [2025-07-17 14:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-17 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-17 14:25:31] Production.INFO: ==15816== Releasing lock... [2025-07-17 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 14:25:31] Production.INFO: 65 MB #Memory Used# [2025-07-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 12:25:05 [end_date_ymd] => 2025-07-17 15:25:05 [RateCDR] => 1 ) [2025-07-17 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 12:25:05' and `end` < '2025-07-17 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 15:25:27] Production.INFO: count ==4535 [2025-07-17 15:25:29] Production.ERROR: pbx CDR StartTime 2025-07-17 12:25:05 - End Time 2025-07-17 15:25:05 [2025-07-17 15:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489390', 'tblTempUsageDetail_20' ) start [2025-07-17 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489390', 'tblTempUsageDetail_20' ) end [2025-07-17 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489390', 'tblTempVendorCDR_20' ) start [2025-07-17 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489390', 'tblTempVendorCDR_20' ) end [2025-07-17 15:25:29] Production.INFO: ProcessCDR(1,15489390,1,1,2) [2025-07-17 15:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15489390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 15:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15489390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 15:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15489390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 15:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15489390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 15:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489390', 'tblTempUsageDetail_20' ) start [2025-07-17 15:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489390', 'tblTempUsageDetail_20' ) end [2025-07-17 15:25:37] Production.ERROR: pbx prc_insertCDR start [2025-07-17 15:25:39] Production.ERROR: pbx prc_insertCDR end [2025-07-17 15:25:39] Production.INFO: ==22007== Releasing lock... [2025-07-17 15:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 15:25:39] Production.INFO: 62 MB #Memory Used# [2025-07-17 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 13:25:05 [end_date_ymd] => 2025-07-17 16:25:05 [RateCDR] => 1 ) [2025-07-17 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 13:25:05' and `end` < '2025-07-17 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 16:25:20] Production.INFO: count ==4527 [2025-07-17 16:25:22] Production.ERROR: pbx CDR StartTime 2025-07-17 13:25:05 - End Time 2025-07-17 16:25:05 [2025-07-17 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489637', 'tblTempUsageDetail_20' ) start [2025-07-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489637', 'tblTempUsageDetail_20' ) end [2025-07-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489637', 'tblTempVendorCDR_20' ) start [2025-07-17 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489637', 'tblTempVendorCDR_20' ) end [2025-07-17 16:25:22] Production.INFO: ProcessCDR(1,15489637,1,1,2) [2025-07-17 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15489637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15489637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15489637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15489637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489637', 'tblTempUsageDetail_20' ) start [2025-07-17 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489637', 'tblTempUsageDetail_20' ) end [2025-07-17 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-17 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-17 16:25:34] Production.INFO: ==28097== Releasing lock... [2025-07-17 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 16:25:34] Production.INFO: 62 MB #Memory Used# [2025-07-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 14:25:05 [end_date_ymd] => 2025-07-17 17:25:05 [RateCDR] => 1 ) [2025-07-17 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 14:25:05' and `end` < '2025-07-17 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 17:25:19] Production.INFO: count ==4483 [2025-07-17 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-17 14:25:05 - End Time 2025-07-17 17:25:05 [2025-07-17 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489884', 'tblTempUsageDetail_20' ) start [2025-07-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15489884', 'tblTempUsageDetail_20' ) end [2025-07-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489884', 'tblTempVendorCDR_20' ) start [2025-07-17 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15489884', 'tblTempVendorCDR_20' ) end [2025-07-17 17:25:21] Production.INFO: ProcessCDR(1,15489884,1,1,2) [2025-07-17 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15489884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15489884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15489884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15489884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489884', 'tblTempUsageDetail_20' ) start [2025-07-17 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15489884', 'tblTempUsageDetail_20' ) end [2025-07-17 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-17 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-17 17:25:31] Production.INFO: ==1494== Releasing lock... [2025-07-17 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 17:25:31] Production.INFO: 61.75 MB #Memory Used# [2025-07-17 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 15:25:05 [end_date_ymd] => 2025-07-17 18:25:05 [RateCDR] => 1 ) [2025-07-17 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 15:25:05' and `end` < '2025-07-17 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 18:25:18] Production.INFO: count ==3714 [2025-07-17 18:25:19] Production.ERROR: pbx CDR StartTime 2025-07-17 15:25:05 - End Time 2025-07-17 18:25:05 [2025-07-17 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490131', 'tblTempUsageDetail_20' ) start [2025-07-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490131', 'tblTempUsageDetail_20' ) end [2025-07-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490131', 'tblTempVendorCDR_20' ) start [2025-07-17 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490131', 'tblTempVendorCDR_20' ) end [2025-07-17 18:25:20] Production.INFO: ProcessCDR(1,15490131,1,1,2) [2025-07-17 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15490131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15490131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15490131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15490131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490131', 'tblTempUsageDetail_20' ) start [2025-07-17 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490131', 'tblTempUsageDetail_20' ) end [2025-07-17 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-17 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-17 18:25:28] Production.INFO: ==5801== Releasing lock... [2025-07-17 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 18:25:28] Production.INFO: 56.25 MB #Memory Used# [2025-07-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 16:25:05 [end_date_ymd] => 2025-07-17 19:25:05 [RateCDR] => 1 ) [2025-07-17 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 16:25:05' and `end` < '2025-07-17 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 19:25:17] Production.INFO: count ==2548 [2025-07-17 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 16:25:05 - End Time 2025-07-17 19:25:05 [2025-07-17 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490377', 'tblTempUsageDetail_20' ) start [2025-07-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490377', 'tblTempUsageDetail_20' ) end [2025-07-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490377', 'tblTempVendorCDR_20' ) start [2025-07-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490377', 'tblTempVendorCDR_20' ) end [2025-07-17 19:25:18] Production.INFO: ProcessCDR(1,15490377,1,1,2) [2025-07-17 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15490377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15490377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15490377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15490377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490377', 'tblTempUsageDetail_20' ) start [2025-07-17 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490377', 'tblTempUsageDetail_20' ) end [2025-07-17 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-17 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-17 19:25:26] Production.INFO: ==10113== Releasing lock... [2025-07-17 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 19:25:26] Production.INFO: 47.75 MB #Memory Used# [2025-07-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 17:25:05 [end_date_ymd] => 2025-07-17 20:25:05 [RateCDR] => 1 ) [2025-07-17 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 17:25:05' and `end` < '2025-07-17 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 20:25:17] Production.INFO: count ==1514 [2025-07-17 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 17:25:05 - End Time 2025-07-17 20:25:05 [2025-07-17 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490624', 'tblTempUsageDetail_20' ) start [2025-07-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490624', 'tblTempUsageDetail_20' ) end [2025-07-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490624', 'tblTempVendorCDR_20' ) start [2025-07-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490624', 'tblTempVendorCDR_20' ) end [2025-07-17 20:25:18] Production.INFO: ProcessCDR(1,15490624,1,1,2) [2025-07-17 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15490624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15490624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15490624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15490624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490624', 'tblTempUsageDetail_20' ) start [2025-07-17 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490624', 'tblTempUsageDetail_20' ) end [2025-07-17 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-17 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-17 20:25:25] Production.INFO: ==14325== Releasing lock... [2025-07-17 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 20:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-07-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 18:25:05 [end_date_ymd] => 2025-07-17 21:25:05 [RateCDR] => 1 ) [2025-07-17 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 18:25:05' and `end` < '2025-07-17 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 21:25:17] Production.INFO: count ==1204 [2025-07-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 18:25:05 - End Time 2025-07-17 21:25:05 [2025-07-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490871', 'tblTempUsageDetail_20' ) start [2025-07-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15490871', 'tblTempUsageDetail_20' ) end [2025-07-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490871', 'tblTempVendorCDR_20' ) start [2025-07-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15490871', 'tblTempVendorCDR_20' ) end [2025-07-17 21:25:18] Production.INFO: ProcessCDR(1,15490871,1,1,2) [2025-07-17 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15490871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15490871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15490871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15490871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490871', 'tblTempUsageDetail_20' ) start [2025-07-17 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15490871', 'tblTempUsageDetail_20' ) end [2025-07-17 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-17 21:25:25] Production.INFO: ==18620== Releasing lock... [2025-07-17 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 21:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 19:25:05 [end_date_ymd] => 2025-07-17 22:25:05 [RateCDR] => 1 ) [2025-07-17 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-07-17 19:25:05' and `end` < '2025-07-17 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-07-17 22:25:17] Production.INFO: count ==1006 [2025-07-17 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 19:25:05 - End Time 2025-07-17 22:25:05 [2025-07-17 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491118', 'tblTempUsageDetail_20' ) start [2025-07-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491118', 'tblTempUsageDetail_20' ) end [2025-07-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491118', 'tblTempVendorCDR_20' ) start [2025-07-17 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491118', 'tblTempVendorCDR_20' ) end [2025-07-17 22:25:18] Production.INFO: ProcessCDR(1,15491118,1,1,2) [2025-07-17 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15491118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15491118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15491118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15491118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491118', 'tblTempUsageDetail_20' ) start [2025-07-17 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491118', 'tblTempUsageDetail_20' ) end [2025-07-17 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-17 22:25:25] Production.INFO: ==23215== Releasing lock... [2025-07-17 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 22:25:25] Production.INFO: 35.75 MB #Memory Used# [2025-07-17 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-17 20:25:05 [end_date_ymd] => 2025-07-17 23:25:05 [RateCDR] => 1 ) [2025-07-17 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-17 20:25:05' and `end` < '2025-07-17 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-17 23:25:17] Production.INFO: count ==893 [2025-07-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-17 20:25:05 - End Time 2025-07-17 23:25:05 [2025-07-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491365', 'tblTempUsageDetail_20' ) start [2025-07-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15491365', 'tblTempUsageDetail_20' ) end [2025-07-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491365', 'tblTempVendorCDR_20' ) start [2025-07-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15491365', 'tblTempVendorCDR_20' ) end [2025-07-17 23:25:18] Production.INFO: ProcessCDR(1,15491365,1,1,2) [2025-07-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15491365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15491365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-17 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15491365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15491365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-17 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491365', 'tblTempUsageDetail_20' ) start [2025-07-17 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15491365', 'tblTempUsageDetail_20' ) end [2025-07-17 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-17 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-17 23:25:24] Production.INFO: ==27488== Releasing lock... [2025-07-17 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-17 23:25:24] Production.INFO: 35 MB #Memory Used#