[2025-07-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-12 21:25:05 [end_date_ymd] => 2025-07-13 00:25:05 [RateCDR] => 1 ) [2025-07-13 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-12 21:25:05' and `end` < '2025-07-13 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-13 00:25:18] Production.INFO: count ==949 [2025-07-13 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-12 21:25:05 - End Time 2025-07-13 00:25:05 [2025-07-13 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15461974', 'tblTempUsageDetail_20' ) start [2025-07-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15461974', 'tblTempUsageDetail_20' ) end [2025-07-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15461974', 'tblTempVendorCDR_20' ) start [2025-07-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15461974', 'tblTempVendorCDR_20' ) end [2025-07-13 00:25:18] Production.INFO: ProcessCDR(1,15461974,1,1,2) [2025-07-13 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15461974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15461974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15461974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15461974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15461974', 'tblTempUsageDetail_20' ) start [2025-07-13 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15461974', 'tblTempUsageDetail_20' ) end [2025-07-13 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 00:25:26] Production.INFO: ==22187== Releasing lock... [2025-07-13 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 00:25:26] Production.INFO: 39 MB #Memory Used# [2025-07-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-12 22:25:05 [end_date_ymd] => 2025-07-13 01:25:05 [RateCDR] => 1 ) [2025-07-13 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-12 22:25:05' and `end` < '2025-07-13 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-13 01:25:17] Production.INFO: count ==759 [2025-07-13 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-12 22:25:05 - End Time 2025-07-13 01:25:05 [2025-07-13 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462221', 'tblTempUsageDetail_20' ) start [2025-07-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462221', 'tblTempUsageDetail_20' ) end [2025-07-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462221', 'tblTempVendorCDR_20' ) start [2025-07-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462221', 'tblTempVendorCDR_20' ) end [2025-07-13 01:25:18] Production.INFO: ProcessCDR(1,15462221,1,1,2) [2025-07-13 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15462221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15462221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15462221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15462221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462221', 'tblTempUsageDetail_20' ) start [2025-07-13 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462221', 'tblTempUsageDetail_20' ) end [2025-07-13 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 01:25:24] Production.INFO: ==27092== Releasing lock... [2025-07-13 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 01:25:24] Production.INFO: 34 MB #Memory Used# [2025-07-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-12 23:25:05 [end_date_ymd] => 2025-07-13 02:25:05 [RateCDR] => 1 ) [2025-07-13 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-12 23:25:05' and `end` < '2025-07-13 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-13 02:25:18] Production.INFO: count ==681 [2025-07-13 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-12 23:25:05 - End Time 2025-07-13 02:25:05 [2025-07-13 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462468', 'tblTempUsageDetail_20' ) start [2025-07-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462468', 'tblTempUsageDetail_20' ) end [2025-07-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462468', 'tblTempVendorCDR_20' ) start [2025-07-13 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462468', 'tblTempVendorCDR_20' ) end [2025-07-13 02:25:18] Production.INFO: ProcessCDR(1,15462468,1,1,2) [2025-07-13 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15462468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15462468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15462468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15462468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462468', 'tblTempUsageDetail_20' ) start [2025-07-13 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462468', 'tblTempUsageDetail_20' ) end [2025-07-13 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 02:25:25] Production.INFO: ==31667== Releasing lock... [2025-07-13 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 02:25:25] Production.INFO: 33 MB #Memory Used# [2025-07-13 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 00:25:05 [end_date_ymd] => 2025-07-13 03:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 00:25:05' and `end` < '2025-07-13 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-13 03:25:17] Production.INFO: count ==608 [2025-07-13 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 00:25:05 - End Time 2025-07-13 03:25:05 [2025-07-13 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462715', 'tblTempUsageDetail_20' ) start [2025-07-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462715', 'tblTempUsageDetail_20' ) end [2025-07-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462715', 'tblTempVendorCDR_20' ) start [2025-07-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462715', 'tblTempVendorCDR_20' ) end [2025-07-13 03:25:17] Production.INFO: ProcessCDR(1,15462715,1,1,2) [2025-07-13 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15462715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15462715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15462715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15462715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462715', 'tblTempUsageDetail_20' ) start [2025-07-13 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462715', 'tblTempUsageDetail_20' ) end [2025-07-13 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 03:25:24] Production.INFO: ==3764== Releasing lock... [2025-07-13 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 03:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-07-13 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 01:25:04 [end_date_ymd] => 2025-07-13 04:25:04 [RateCDR] => 1 ) [2025-07-13 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-13 01:25:04' and `end` < '2025-07-13 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-13 04:25:17] Production.INFO: count ==526 [2025-07-13 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 01:25:04 - End Time 2025-07-13 04:25:04 [2025-07-13 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462963', 'tblTempUsageDetail_20' ) start [2025-07-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15462963', 'tblTempUsageDetail_20' ) end [2025-07-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462963', 'tblTempVendorCDR_20' ) start [2025-07-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15462963', 'tblTempVendorCDR_20' ) end [2025-07-13 04:25:17] Production.INFO: ProcessCDR(1,15462963,1,1,2) [2025-07-13 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15462963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15462963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15462963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15462963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462963', 'tblTempUsageDetail_20' ) start [2025-07-13 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15462963', 'tblTempUsageDetail_20' ) end [2025-07-13 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-13 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-13 04:25:23] Production.INFO: ==8563== Releasing lock... [2025-07-13 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 04:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-07-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 02:25:05 [end_date_ymd] => 2025-07-13 05:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 02:25:05' and `end` < '2025-07-13 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-13 05:25:17] Production.INFO: count ==411 [2025-07-13 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 02:25:05 - End Time 2025-07-13 05:25:05 [2025-07-13 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463211', 'tblTempUsageDetail_20' ) start [2025-07-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463211', 'tblTempUsageDetail_20' ) end [2025-07-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463211', 'tblTempVendorCDR_20' ) start [2025-07-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463211', 'tblTempVendorCDR_20' ) end [2025-07-13 05:25:18] Production.INFO: ProcessCDR(1,15463211,1,1,2) [2025-07-13 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15463211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15463211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15463211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15463211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463211', 'tblTempUsageDetail_20' ) start [2025-07-13 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463211', 'tblTempUsageDetail_20' ) end [2025-07-13 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 05:25:24] Production.INFO: ==13100== Releasing lock... [2025-07-13 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 05:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-07-13 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 03:25:05 [end_date_ymd] => 2025-07-13 06:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 03:25:05' and `end` < '2025-07-13 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-13 06:25:17] Production.INFO: count ==304 [2025-07-13 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 03:25:05 - End Time 2025-07-13 06:25:05 [2025-07-13 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463458', 'tblTempUsageDetail_20' ) start [2025-07-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463458', 'tblTempUsageDetail_20' ) end [2025-07-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463458', 'tblTempVendorCDR_20' ) start [2025-07-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463458', 'tblTempVendorCDR_20' ) end [2025-07-13 06:25:18] Production.INFO: ProcessCDR(1,15463458,1,1,2) [2025-07-13 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15463458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15463458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15463458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15463458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463458', 'tblTempUsageDetail_20' ) start [2025-07-13 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463458', 'tblTempUsageDetail_20' ) end [2025-07-13 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-13 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-13 06:25:22] Production.INFO: ==17562== Releasing lock... [2025-07-13 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 06:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-07-13 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 04:25:04 [end_date_ymd] => 2025-07-13 07:25:04 [RateCDR] => 1 ) [2025-07-13 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-13 04:25:04' and `end` < '2025-07-13 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-13 07:25:17] Production.INFO: count ==182 [2025-07-13 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 04:25:04 - End Time 2025-07-13 07:25:04 [2025-07-13 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463705', 'tblTempUsageDetail_20' ) start [2025-07-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463705', 'tblTempUsageDetail_20' ) end [2025-07-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463705', 'tblTempVendorCDR_20' ) start [2025-07-13 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463705', 'tblTempVendorCDR_20' ) end [2025-07-13 07:25:17] Production.INFO: ProcessCDR(1,15463705,1,1,2) [2025-07-13 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15463705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15463705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15463705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15463705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463705', 'tblTempUsageDetail_20' ) start [2025-07-13 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463705', 'tblTempUsageDetail_20' ) end [2025-07-13 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-13 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-13 07:25:23] Production.INFO: ==22243== Releasing lock... [2025-07-13 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 07:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-07-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 05:25:05 [end_date_ymd] => 2025-07-13 08:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 05:25:05' and `end` < '2025-07-13 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-13 08:25:17] Production.INFO: count ==151 [2025-07-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 05:25:05 - End Time 2025-07-13 08:25:05 [2025-07-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463952', 'tblTempUsageDetail_20' ) start [2025-07-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15463952', 'tblTempUsageDetail_20' ) end [2025-07-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463952', 'tblTempVendorCDR_20' ) start [2025-07-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15463952', 'tblTempVendorCDR_20' ) end [2025-07-13 08:25:17] Production.INFO: ProcessCDR(1,15463952,1,1,2) [2025-07-13 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15463952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15463952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15463952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15463952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463952', 'tblTempUsageDetail_20' ) start [2025-07-13 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15463952', 'tblTempUsageDetail_20' ) end [2025-07-13 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 08:25:24] Production.INFO: ==26968== Releasing lock... [2025-07-13 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-13 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 06:25:05 [end_date_ymd] => 2025-07-13 09:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 06:25:05' and `end` < '2025-07-13 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-13 09:25:17] Production.INFO: count ==182 [2025-07-13 09:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 06:25:05 - End Time 2025-07-13 09:25:05 [2025-07-13 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464199', 'tblTempUsageDetail_20' ) start [2025-07-13 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464199', 'tblTempUsageDetail_20' ) end [2025-07-13 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464199', 'tblTempVendorCDR_20' ) start [2025-07-13 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464199', 'tblTempVendorCDR_20' ) end [2025-07-13 09:25:17] Production.INFO: ProcessCDR(1,15464199,1,1,2) [2025-07-13 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15464199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15464199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15464199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15464199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464199', 'tblTempUsageDetail_20' ) start [2025-07-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464199', 'tblTempUsageDetail_20' ) end [2025-07-13 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 09:25:24] Production.INFO: ==31402== Releasing lock... [2025-07-13 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 09:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 07:25:05 [end_date_ymd] => 2025-07-13 10:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 07:25:05' and `end` < '2025-07-13 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-13 10:25:17] Production.INFO: count ==322 [2025-07-13 10:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 07:25:05 - End Time 2025-07-13 10:25:05 [2025-07-13 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464446', 'tblTempUsageDetail_20' ) start [2025-07-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464446', 'tblTempUsageDetail_20' ) end [2025-07-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464446', 'tblTempVendorCDR_20' ) start [2025-07-13 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464446', 'tblTempVendorCDR_20' ) end [2025-07-13 10:25:17] Production.INFO: ProcessCDR(1,15464446,1,1,2) [2025-07-13 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15464446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15464446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15464446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15464446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464446', 'tblTempUsageDetail_20' ) start [2025-07-13 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464446', 'tblTempUsageDetail_20' ) end [2025-07-13 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 10:25:24] Production.INFO: ==3424== Releasing lock... [2025-07-13 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 10:25:24] Production.INFO: 31 MB #Memory Used# [2025-07-13 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 08:25:05 [end_date_ymd] => 2025-07-13 11:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 08:25:05' and `end` < '2025-07-13 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-13 11:25:17] Production.INFO: count ==486 [2025-07-13 11:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 08:25:05 - End Time 2025-07-13 11:25:05 [2025-07-13 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464693', 'tblTempUsageDetail_20' ) start [2025-07-13 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464693', 'tblTempUsageDetail_20' ) end [2025-07-13 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464693', 'tblTempVendorCDR_20' ) start [2025-07-13 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464693', 'tblTempVendorCDR_20' ) end [2025-07-13 11:25:17] Production.INFO: ProcessCDR(1,15464693,1,1,2) [2025-07-13 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15464693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15464693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15464693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15464693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464693', 'tblTempUsageDetail_20' ) start [2025-07-13 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464693', 'tblTempUsageDetail_20' ) end [2025-07-13 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 11:25:24] Production.INFO: ==7989== Releasing lock... [2025-07-13 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 11:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-07-13 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 09:25:06 [end_date_ymd] => 2025-07-13 12:25:06 [RateCDR] => 1 ) [2025-07-13 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-07-13 09:25:06' and `end` < '2025-07-13 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-07-13 12:25:18] Production.INFO: count ==767 [2025-07-13 12:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 09:25:06 - End Time 2025-07-13 12:25:06 [2025-07-13 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464940', 'tblTempUsageDetail_20' ) start [2025-07-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15464940', 'tblTempUsageDetail_20' ) end [2025-07-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464940', 'tblTempVendorCDR_20' ) start [2025-07-13 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15464940', 'tblTempVendorCDR_20' ) end [2025-07-13 12:25:18] Production.INFO: ProcessCDR(1,15464940,1,1,2) [2025-07-13 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15464940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15464940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15464940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15464940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464940', 'tblTempUsageDetail_20' ) start [2025-07-13 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15464940', 'tblTempUsageDetail_20' ) end [2025-07-13 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-13 12:25:26] Production.INFO: ==13194== Releasing lock... [2025-07-13 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 12:25:26] Production.INFO: 34.5 MB #Memory Used# [2025-07-13 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 10:25:05 [end_date_ymd] => 2025-07-13 13:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 10:25:05' and `end` < '2025-07-13 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-13 13:25:18] Production.INFO: count ==969 [2025-07-13 13:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 10:25:05 - End Time 2025-07-13 13:25:05 [2025-07-13 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465187', 'tblTempUsageDetail_20' ) start [2025-07-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465187', 'tblTempUsageDetail_20' ) end [2025-07-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465187', 'tblTempVendorCDR_20' ) start [2025-07-13 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465187', 'tblTempVendorCDR_20' ) end [2025-07-13 13:25:18] Production.INFO: ProcessCDR(1,15465187,1,1,2) [2025-07-13 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15465187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15465187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15465187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15465187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465187', 'tblTempUsageDetail_20' ) start [2025-07-13 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465187', 'tblTempUsageDetail_20' ) end [2025-07-13 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-13 13:25:26] Production.INFO: ==18733== Releasing lock... [2025-07-13 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 13:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-07-13 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 11:25:04 [end_date_ymd] => 2025-07-13 14:25:04 [RateCDR] => 1 ) [2025-07-13 14:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-13 11:25:04' and `end` < '2025-07-13 14:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-13 14:25:17] Production.INFO: count ==1110 [2025-07-13 14:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 11:25:04 - End Time 2025-07-13 14:25:04 [2025-07-13 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465434', 'tblTempUsageDetail_20' ) start [2025-07-13 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465434', 'tblTempUsageDetail_20' ) end [2025-07-13 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465434', 'tblTempVendorCDR_20' ) start [2025-07-13 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465434', 'tblTempVendorCDR_20' ) end [2025-07-13 14:25:17] Production.INFO: ProcessCDR(1,15465434,1,1,2) [2025-07-13 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15465434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15465434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15465434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15465434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465434', 'tblTempUsageDetail_20' ) start [2025-07-13 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465434', 'tblTempUsageDetail_20' ) end [2025-07-13 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-13 14:25:24] Production.INFO: ==23275== Releasing lock... [2025-07-13 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 14:25:24] Production.INFO: 37.25 MB #Memory Used# [2025-07-13 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 12:25:05 [end_date_ymd] => 2025-07-13 15:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 12:25:05' and `end` < '2025-07-13 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-13 15:25:18] Production.INFO: count ==1052 [2025-07-13 15:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 12:25:05 - End Time 2025-07-13 15:25:05 [2025-07-13 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465681', 'tblTempUsageDetail_20' ) start [2025-07-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465681', 'tblTempUsageDetail_20' ) end [2025-07-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465681', 'tblTempVendorCDR_20' ) start [2025-07-13 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465681', 'tblTempVendorCDR_20' ) end [2025-07-13 15:25:18] Production.INFO: ProcessCDR(1,15465681,1,1,2) [2025-07-13 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15465681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15465681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15465681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15465681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465681', 'tblTempUsageDetail_20' ) start [2025-07-13 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465681', 'tblTempUsageDetail_20' ) end [2025-07-13 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 15:25:25] Production.INFO: ==27890== Releasing lock... [2025-07-13 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 15:25:25] Production.INFO: 36 MB #Memory Used# [2025-07-13 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 13:25:05 [end_date_ymd] => 2025-07-13 16:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 13:25:05' and `end` < '2025-07-13 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-13 16:25:18] Production.INFO: count ==1108 [2025-07-13 16:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 13:25:05 - End Time 2025-07-13 16:25:05 [2025-07-13 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465928', 'tblTempUsageDetail_20' ) start [2025-07-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15465928', 'tblTempUsageDetail_20' ) end [2025-07-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465928', 'tblTempVendorCDR_20' ) start [2025-07-13 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15465928', 'tblTempVendorCDR_20' ) end [2025-07-13 16:25:18] Production.INFO: ProcessCDR(1,15465928,1,1,2) [2025-07-13 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15465928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15465928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15465928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15465928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465928', 'tblTempUsageDetail_20' ) start [2025-07-13 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15465928', 'tblTempUsageDetail_20' ) end [2025-07-13 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 16:25:25] Production.INFO: ==1684== Releasing lock... [2025-07-13 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 16:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-07-13 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 14:25:05 [end_date_ymd] => 2025-07-13 17:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 14:25:05' and `end` < '2025-07-13 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-13 17:25:17] Production.INFO: count ==1278 [2025-07-13 17:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 14:25:05 - End Time 2025-07-13 17:25:05 [2025-07-13 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466175', 'tblTempUsageDetail_20' ) start [2025-07-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466175', 'tblTempUsageDetail_20' ) end [2025-07-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466175', 'tblTempVendorCDR_20' ) start [2025-07-13 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466175', 'tblTempVendorCDR_20' ) end [2025-07-13 17:25:18] Production.INFO: ProcessCDR(1,15466175,1,1,2) [2025-07-13 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15466175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15466175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15466175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15466175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466175', 'tblTempUsageDetail_20' ) start [2025-07-13 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466175', 'tblTempUsageDetail_20' ) end [2025-07-13 17:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 17:25:25] Production.INFO: ==7922== Releasing lock... [2025-07-13 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 17:25:25] Production.INFO: 38 MB #Memory Used# [2025-07-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 15:25:05 [end_date_ymd] => 2025-07-13 18:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 15:25:05' and `end` < '2025-07-13 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-13 18:25:17] Production.INFO: count ==1580 [2025-07-13 18:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 15:25:05 - End Time 2025-07-13 18:25:05 [2025-07-13 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466422', 'tblTempUsageDetail_20' ) start [2025-07-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466422', 'tblTempUsageDetail_20' ) end [2025-07-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466422', 'tblTempVendorCDR_20' ) start [2025-07-13 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466422', 'tblTempVendorCDR_20' ) end [2025-07-13 18:25:18] Production.INFO: ProcessCDR(1,15466422,1,1,2) [2025-07-13 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15466422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15466422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15466422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15466422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466422', 'tblTempUsageDetail_20' ) start [2025-07-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466422', 'tblTempUsageDetail_20' ) end [2025-07-13 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-13 18:25:26] Production.INFO: ==13619== Releasing lock... [2025-07-13 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 18:25:26] Production.INFO: 40 MB #Memory Used# [2025-07-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 16:25:05 [end_date_ymd] => 2025-07-13 19:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 16:25:05' and `end` < '2025-07-13 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-13 19:25:18] Production.INFO: count ==1607 [2025-07-13 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 16:25:05 - End Time 2025-07-13 19:25:05 [2025-07-13 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466667', 'tblTempUsageDetail_20' ) start [2025-07-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466667', 'tblTempUsageDetail_20' ) end [2025-07-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466667', 'tblTempVendorCDR_20' ) start [2025-07-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466667', 'tblTempVendorCDR_20' ) end [2025-07-13 19:25:19] Production.INFO: ProcessCDR(1,15466667,1,1,2) [2025-07-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15466667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15466667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15466667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15466667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466667', 'tblTempUsageDetail_20' ) start [2025-07-13 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466667', 'tblTempUsageDetail_20' ) end [2025-07-13 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-13 19:25:26] Production.INFO: ==19448== Releasing lock... [2025-07-13 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 19:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-07-13 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 17:25:05 [end_date_ymd] => 2025-07-13 20:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 17:25:05' and `end` < '2025-07-13 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-13 20:25:17] Production.INFO: count ==1495 [2025-07-13 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 17:25:05 - End Time 2025-07-13 20:25:05 [2025-07-13 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466914', 'tblTempUsageDetail_20' ) start [2025-07-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15466914', 'tblTempUsageDetail_20' ) end [2025-07-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466914', 'tblTempVendorCDR_20' ) start [2025-07-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15466914', 'tblTempVendorCDR_20' ) end [2025-07-13 20:25:18] Production.INFO: ProcessCDR(1,15466914,1,1,2) [2025-07-13 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15466914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15466914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15466914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15466914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466914', 'tblTempUsageDetail_20' ) start [2025-07-13 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15466914', 'tblTempUsageDetail_20' ) end [2025-07-13 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 20:25:25] Production.INFO: ==25097== Releasing lock... [2025-07-13 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 20:25:25] Production.INFO: 39.25 MB #Memory Used# [2025-07-13 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 18:25:05 [end_date_ymd] => 2025-07-13 21:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 18:25:05' and `end` < '2025-07-13 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-13 21:25:18] Production.INFO: count ==1305 [2025-07-13 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-13 18:25:05 - End Time 2025-07-13 21:25:05 [2025-07-13 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467161', 'tblTempUsageDetail_20' ) start [2025-07-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467161', 'tblTempUsageDetail_20' ) end [2025-07-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467161', 'tblTempVendorCDR_20' ) start [2025-07-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467161', 'tblTempVendorCDR_20' ) end [2025-07-13 21:25:19] Production.INFO: ProcessCDR(1,15467161,1,1,2) [2025-07-13 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15467161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15467161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15467161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15467161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467161', 'tblTempUsageDetail_20' ) start [2025-07-13 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467161', 'tblTempUsageDetail_20' ) end [2025-07-13 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-13 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-13 21:25:26] Production.INFO: ==32130== Releasing lock... [2025-07-13 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 21:25:26] Production.INFO: 38 MB #Memory Used# [2025-07-13 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 19:25:05 [end_date_ymd] => 2025-07-13 22:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 19:25:05' and `end` < '2025-07-13 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-13 22:25:17] Production.INFO: count ==1236 [2025-07-13 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-13 19:25:05 - End Time 2025-07-13 22:25:05 [2025-07-13 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467408', 'tblTempUsageDetail_20' ) start [2025-07-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467408', 'tblTempUsageDetail_20' ) end [2025-07-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467408', 'tblTempVendorCDR_20' ) start [2025-07-13 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467408', 'tblTempVendorCDR_20' ) end [2025-07-13 22:25:18] Production.INFO: ProcessCDR(1,15467408,1,1,2) [2025-07-13 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15467408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15467408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15467408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15467408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467408', 'tblTempUsageDetail_20' ) start [2025-07-13 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467408', 'tblTempUsageDetail_20' ) end [2025-07-13 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-13 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 22:25:25] Production.INFO: ==5033== Releasing lock... [2025-07-13 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 22:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-13 20:25:05 [end_date_ymd] => 2025-07-13 23:25:05 [RateCDR] => 1 ) [2025-07-13 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-13 20:25:05' and `end` < '2025-07-13 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-13 23:25:17] Production.INFO: count ==1034 [2025-07-13 23:25:17] Production.ERROR: pbx CDR StartTime 2025-07-13 20:25:05 - End Time 2025-07-13 23:25:05 [2025-07-13 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467655', 'tblTempUsageDetail_20' ) start [2025-07-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15467655', 'tblTempUsageDetail_20' ) end [2025-07-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467655', 'tblTempVendorCDR_20' ) start [2025-07-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15467655', 'tblTempVendorCDR_20' ) end [2025-07-13 23:25:17] Production.INFO: ProcessCDR(1,15467655,1,1,2) [2025-07-13 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15467655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15467655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-13 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15467655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15467655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-13 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467655', 'tblTempUsageDetail_20' ) start [2025-07-13 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15467655', 'tblTempUsageDetail_20' ) end [2025-07-13 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-13 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-13 23:25:25] Production.INFO: ==9741== Releasing lock... [2025-07-13 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-13 23:25:25] Production.INFO: 36 MB #Memory Used#