[2025-10-03 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 21:25:05 [end_date_ymd] => 2025-10-03 00:25:05 [RateCDR] => 1 ) [2025-10-03 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 21:25:05' and `end` < '2025-10-03 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 00:25:19] Production.INFO: count ==443 [2025-10-03 00:25:19] Production.ERROR: pbx CDR StartTime 2025-10-02 21:25:05 - End Time 2025-10-03 00:25:05 [2025-10-03 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948005', 'tblTempUsageDetail_20' ) start [2025-10-03 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948005', 'tblTempUsageDetail_20' ) end [2025-10-03 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948005', 'tblTempVendorCDR_20' ) start [2025-10-03 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948005', 'tblTempVendorCDR_20' ) end [2025-10-03 00:25:20] Production.INFO: ProcessCDR(1,15948005,1,1,2) [2025-10-03 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15948005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15948005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15948005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15948005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948005', 'tblTempUsageDetail_20' ) start [2025-10-03 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948005', 'tblTempUsageDetail_20' ) end [2025-10-03 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-03 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-03 00:25:33] Production.INFO: ==5961== Releasing lock... [2025-10-03 00:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 00:25:33] Production.INFO: 35.25 MB #Memory Used# [2025-10-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 22:25:05 [end_date_ymd] => 2025-10-03 01:25:05 [RateCDR] => 1 ) [2025-10-03 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 22:25:05' and `end` < '2025-10-03 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 01:25:17] Production.INFO: count ==440 [2025-10-03 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-02 22:25:05 - End Time 2025-10-03 01:25:05 [2025-10-03 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948252', 'tblTempUsageDetail_20' ) start [2025-10-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948252', 'tblTempUsageDetail_20' ) end [2025-10-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948252', 'tblTempVendorCDR_20' ) start [2025-10-03 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948252', 'tblTempVendorCDR_20' ) end [2025-10-03 01:25:18] Production.INFO: ProcessCDR(1,15948252,1,1,2) [2025-10-03 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15948252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15948252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15948252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15948252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948252', 'tblTempUsageDetail_20' ) start [2025-10-03 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948252', 'tblTempUsageDetail_20' ) end [2025-10-03 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-03 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-03 01:25:26] Production.INFO: ==10467== Releasing lock... [2025-10-03 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 01:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-10-03 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-02 23:25:06 [end_date_ymd] => 2025-10-03 02:25:06 [RateCDR] => 1 ) [2025-10-03 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-02 23:25:06' and `end` < '2025-10-03 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 02:25:19] Production.INFO: count ==403 [2025-10-03 02:25:19] Production.ERROR: pbx CDR StartTime 2025-10-02 23:25:06 - End Time 2025-10-03 02:25:06 [2025-10-03 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948499', 'tblTempUsageDetail_20' ) start [2025-10-03 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948499', 'tblTempUsageDetail_20' ) end [2025-10-03 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948499', 'tblTempVendorCDR_20' ) start [2025-10-03 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948499', 'tblTempVendorCDR_20' ) end [2025-10-03 02:25:19] Production.INFO: ProcessCDR(1,15948499,1,1,2) [2025-10-03 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15948499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15948499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15948499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 02:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15948499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948499', 'tblTempUsageDetail_20' ) start [2025-10-03 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948499', 'tblTempUsageDetail_20' ) end [2025-10-03 02:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-03 02:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-03 02:25:28] Production.INFO: ==15756== Releasing lock... [2025-10-03 02:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 02:25:28] Production.INFO: 31.75 MB #Memory Used# [2025-10-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 00:25:05 [end_date_ymd] => 2025-10-03 03:25:05 [RateCDR] => 1 ) [2025-10-03 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-10-03 00:25:05' and `end` < '2025-10-03 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-10-03 03:25:17] Production.INFO: count ==361 [2025-10-03 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-03 00:25:05 - End Time 2025-10-03 03:25:05 [2025-10-03 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948746', 'tblTempUsageDetail_20' ) start [2025-10-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948746', 'tblTempUsageDetail_20' ) end [2025-10-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948746', 'tblTempVendorCDR_20' ) start [2025-10-03 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948746', 'tblTempVendorCDR_20' ) end [2025-10-03 03:25:17] Production.INFO: ProcessCDR(1,15948746,1,1,2) [2025-10-03 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15948746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15948746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15948746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15948746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948746', 'tblTempUsageDetail_20' ) start [2025-10-03 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948746', 'tblTempUsageDetail_20' ) end [2025-10-03 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-03 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-03 03:25:25] Production.INFO: ==20168== Releasing lock... [2025-10-03 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-10-03 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 01:25:05 [end_date_ymd] => 2025-10-03 04:25:05 [RateCDR] => 1 ) [2025-10-03 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-10-03 01:25:05' and `end` < '2025-10-03 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-10-03 04:25:17] Production.INFO: count ==236 [2025-10-03 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-03 01:25:05 - End Time 2025-10-03 04:25:05 [2025-10-03 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948994', 'tblTempUsageDetail_20' ) start [2025-10-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15948994', 'tblTempUsageDetail_20' ) end [2025-10-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948994', 'tblTempVendorCDR_20' ) start [2025-10-03 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15948994', 'tblTempVendorCDR_20' ) end [2025-10-03 04:25:17] Production.INFO: ProcessCDR(1,15948994,1,1,2) [2025-10-03 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15948994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15948994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15948994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15948994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948994', 'tblTempUsageDetail_20' ) start [2025-10-03 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15948994', 'tblTempUsageDetail_20' ) end [2025-10-03 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-03 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-03 04:25:26] Production.INFO: ==25173== Releasing lock... [2025-10-03 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 04:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-10-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 02:25:05 [end_date_ymd] => 2025-10-03 05:25:05 [RateCDR] => 1 ) [2025-10-03 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 02:25:05' and `end` < '2025-10-03 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 05:25:18] Production.INFO: count ==145 [2025-10-03 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 02:25:05 - End Time 2025-10-03 05:25:05 [2025-10-03 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949242', 'tblTempUsageDetail_20' ) start [2025-10-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949242', 'tblTempUsageDetail_20' ) end [2025-10-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949242', 'tblTempVendorCDR_20' ) start [2025-10-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949242', 'tblTempVendorCDR_20' ) end [2025-10-03 05:25:18] Production.INFO: ProcessCDR(1,15949242,1,1,2) [2025-10-03 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15949242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15949242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15949242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15949242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949242', 'tblTempUsageDetail_20' ) start [2025-10-03 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949242', 'tblTempUsageDetail_20' ) end [2025-10-03 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-03 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-03 05:25:27] Production.INFO: ==30809== Releasing lock... [2025-10-03 05:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 05:25:27] Production.INFO: 29.25 MB #Memory Used# [2025-10-03 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 03:25:06 [end_date_ymd] => 2025-10-03 06:25:06 [RateCDR] => 1 ) [2025-10-03 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 03:25:06' and `end` < '2025-10-03 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 06:25:18] Production.INFO: count ==106 [2025-10-03 06:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 03:25:06 - End Time 2025-10-03 06:25:06 [2025-10-03 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949489', 'tblTempUsageDetail_20' ) start [2025-10-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949489', 'tblTempUsageDetail_20' ) end [2025-10-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949489', 'tblTempVendorCDR_20' ) start [2025-10-03 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949489', 'tblTempVendorCDR_20' ) end [2025-10-03 06:25:18] Production.INFO: ProcessCDR(1,15949489,1,1,2) [2025-10-03 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15949489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15949489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15949489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15949489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949489', 'tblTempUsageDetail_20' ) start [2025-10-03 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949489', 'tblTempUsageDetail_20' ) end [2025-10-03 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-03 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-03 06:25:26] Production.INFO: ==3455== Releasing lock... [2025-10-03 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 06:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-03 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 04:25:05 [end_date_ymd] => 2025-10-03 07:25:05 [RateCDR] => 1 ) [2025-10-03 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 04:25:05' and `end` < '2025-10-03 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 07:25:17] Production.INFO: count ==108 [2025-10-03 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-03 04:25:05 - End Time 2025-10-03 07:25:05 [2025-10-03 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949736', 'tblTempUsageDetail_20' ) start [2025-10-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949736', 'tblTempUsageDetail_20' ) end [2025-10-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949736', 'tblTempVendorCDR_20' ) start [2025-10-03 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949736', 'tblTempVendorCDR_20' ) end [2025-10-03 07:25:17] Production.INFO: ProcessCDR(1,15949736,1,1,2) [2025-10-03 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15949736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15949736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15949736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15949736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949736', 'tblTempUsageDetail_20' ) start [2025-10-03 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949736', 'tblTempUsageDetail_20' ) end [2025-10-03 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-03 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-03 07:25:26] Production.INFO: ==8305== Releasing lock... [2025-10-03 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 07:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-03 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 05:25:06 [end_date_ymd] => 2025-10-03 08:25:06 [RateCDR] => 1 ) [2025-10-03 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 05:25:06' and `end` < '2025-10-03 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 08:25:18] Production.INFO: count ==307 [2025-10-03 08:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 05:25:06 - End Time 2025-10-03 08:25:06 [2025-10-03 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949983', 'tblTempUsageDetail_20' ) start [2025-10-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15949983', 'tblTempUsageDetail_20' ) end [2025-10-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949983', 'tblTempVendorCDR_20' ) start [2025-10-03 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15949983', 'tblTempVendorCDR_20' ) end [2025-10-03 08:25:18] Production.INFO: ProcessCDR(1,15949983,1,1,2) [2025-10-03 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15949983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15949983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15949983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 08:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15949983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949983', 'tblTempUsageDetail_20' ) start [2025-10-03 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15949983', 'tblTempUsageDetail_20' ) end [2025-10-03 08:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-03 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-03 08:25:27] Production.INFO: ==13541== Releasing lock... [2025-10-03 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 08:25:27] Production.INFO: 31.25 MB #Memory Used# [2025-10-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 06:25:05 [end_date_ymd] => 2025-10-03 09:25:05 [RateCDR] => 1 ) [2025-10-03 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-10-03 06:25:05' and `end` < '2025-10-03 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-10-03 09:25:17] Production.INFO: count ==1270 [2025-10-03 09:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 06:25:05 - End Time 2025-10-03 09:25:05 [2025-10-03 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950230', 'tblTempUsageDetail_20' ) start [2025-10-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950230', 'tblTempUsageDetail_20' ) end [2025-10-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950230', 'tblTempVendorCDR_20' ) start [2025-10-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950230', 'tblTempVendorCDR_20' ) end [2025-10-03 09:25:18] Production.INFO: ProcessCDR(1,15950230,1,1,2) [2025-10-03 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15950230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15950230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15950230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15950230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950230', 'tblTempUsageDetail_20' ) start [2025-10-03 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950230', 'tblTempUsageDetail_20' ) end [2025-10-03 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-03 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-03 09:25:28] Production.INFO: ==18384== Releasing lock... [2025-10-03 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 09:25:28] Production.INFO: 37.75 MB #Memory Used# [2025-10-03 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 07:25:06 [end_date_ymd] => 2025-10-03 10:25:06 [RateCDR] => 1 ) [2025-10-03 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 07:25:06' and `end` < '2025-10-03 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 10:25:20] Production.INFO: count ==3286 [2025-10-03 10:25:21] Production.ERROR: pbx CDR StartTime 2025-10-03 07:25:06 - End Time 2025-10-03 10:25:06 [2025-10-03 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950477', 'tblTempUsageDetail_20' ) start [2025-10-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950477', 'tblTempUsageDetail_20' ) end [2025-10-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950477', 'tblTempVendorCDR_20' ) start [2025-10-03 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950477', 'tblTempVendorCDR_20' ) end [2025-10-03 10:25:22] Production.INFO: ProcessCDR(1,15950477,1,1,2) [2025-10-03 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15950477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15950477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15950477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15950477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950477', 'tblTempUsageDetail_20' ) start [2025-10-03 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950477', 'tblTempUsageDetail_20' ) end [2025-10-03 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-03 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-03 10:25:34] Production.INFO: ==22905== Releasing lock... [2025-10-03 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 10:25:34] Production.INFO: 52.75 MB #Memory Used# [2025-10-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 08:25:05 [end_date_ymd] => 2025-10-03 11:25:05 [RateCDR] => 1 ) [2025-10-03 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 08:25:05' and `end` < '2025-10-03 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 11:25:19] Production.INFO: count ==4987 [2025-10-03 11:25:22] Production.ERROR: pbx CDR StartTime 2025-10-03 08:25:05 - End Time 2025-10-03 11:25:05 [2025-10-03 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950724', 'tblTempUsageDetail_20' ) start [2025-10-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950724', 'tblTempUsageDetail_20' ) end [2025-10-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950724', 'tblTempVendorCDR_20' ) start [2025-10-03 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950724', 'tblTempVendorCDR_20' ) end [2025-10-03 11:25:22] Production.INFO: ProcessCDR(1,15950724,1,1,2) [2025-10-03 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15950724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15950724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15950724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15950724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950724', 'tblTempUsageDetail_20' ) start [2025-10-03 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950724', 'tblTempUsageDetail_20' ) end [2025-10-03 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-03 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-03 11:25:35] Production.INFO: ==27442== Releasing lock... [2025-10-03 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 11:25:35] Production.INFO: 65.5 MB #Memory Used# [2025-10-03 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 09:25:05 [end_date_ymd] => 2025-10-03 12:25:05 [RateCDR] => 1 ) [2025-10-03 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 09:25:05' and `end` < '2025-10-03 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 12:25:20] Production.INFO: count ==6043 [2025-10-03 12:25:24] Production.ERROR: pbx CDR StartTime 2025-10-03 09:25:05 - End Time 2025-10-03 12:25:05 [2025-10-03 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950971', 'tblTempUsageDetail_20' ) start [2025-10-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15950971', 'tblTempUsageDetail_20' ) end [2025-10-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950971', 'tblTempVendorCDR_20' ) start [2025-10-03 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15950971', 'tblTempVendorCDR_20' ) end [2025-10-03 12:25:24] Production.INFO: ProcessCDR(1,15950971,1,1,2) [2025-10-03 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15950971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15950971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15950971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15950971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950971', 'tblTempUsageDetail_20' ) start [2025-10-03 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15950971', 'tblTempUsageDetail_20' ) end [2025-10-03 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-03 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-03 12:25:38] Production.INFO: ==31873== Releasing lock... [2025-10-03 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 12:25:38] Production.INFO: 73.5 MB #Memory Used# [2025-10-03 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 10:25:05 [end_date_ymd] => 2025-10-03 13:25:05 [RateCDR] => 1 ) [2025-10-03 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 10:25:05' and `end` < '2025-10-03 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 13:25:20] Production.INFO: count ==5985 [2025-10-03 13:25:23] Production.ERROR: pbx CDR StartTime 2025-10-03 10:25:05 - End Time 2025-10-03 13:25:05 [2025-10-03 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951218', 'tblTempUsageDetail_20' ) start [2025-10-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951218', 'tblTempUsageDetail_20' ) end [2025-10-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951218', 'tblTempVendorCDR_20' ) start [2025-10-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951218', 'tblTempVendorCDR_20' ) end [2025-10-03 13:25:24] Production.INFO: ProcessCDR(1,15951218,1,1,2) [2025-10-03 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15951218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15951218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15951218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15951218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951218', 'tblTempUsageDetail_20' ) start [2025-10-03 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951218', 'tblTempUsageDetail_20' ) end [2025-10-03 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-03 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-03 13:25:36] Production.INFO: ==3855== Releasing lock... [2025-10-03 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 13:25:36] Production.INFO: 73 MB #Memory Used# [2025-10-03 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 11:25:06 [end_date_ymd] => 2025-10-03 14:25:06 [RateCDR] => 1 ) [2025-10-03 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 11:25:06' and `end` < '2025-10-03 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 14:25:21] Production.INFO: count ==5999 [2025-10-03 14:25:24] Production.ERROR: pbx CDR StartTime 2025-10-03 11:25:06 - End Time 2025-10-03 14:25:06 [2025-10-03 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951465', 'tblTempUsageDetail_20' ) start [2025-10-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951465', 'tblTempUsageDetail_20' ) end [2025-10-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951465', 'tblTempVendorCDR_20' ) start [2025-10-03 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951465', 'tblTempVendorCDR_20' ) end [2025-10-03 14:25:24] Production.INFO: ProcessCDR(1,15951465,1,1,2) [2025-10-03 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15951465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15951465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15951465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15951465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951465', 'tblTempUsageDetail_20' ) start [2025-10-03 14:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951465', 'tblTempUsageDetail_20' ) end [2025-10-03 14:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-03 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-03 14:25:38] Production.INFO: ==8282== Releasing lock... [2025-10-03 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 14:25:38] Production.INFO: 73.25 MB #Memory Used# [2025-10-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 12:25:05 [end_date_ymd] => 2025-10-03 15:25:05 [RateCDR] => 1 ) [2025-10-03 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 12:25:05' and `end` < '2025-10-03 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 15:25:20] Production.INFO: count ==5751 [2025-10-03 15:25:23] Production.ERROR: pbx CDR StartTime 2025-10-03 12:25:05 - End Time 2025-10-03 15:25:05 [2025-10-03 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951712', 'tblTempUsageDetail_20' ) start [2025-10-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951712', 'tblTempUsageDetail_20' ) end [2025-10-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951712', 'tblTempVendorCDR_20' ) start [2025-10-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951712', 'tblTempVendorCDR_20' ) end [2025-10-03 15:25:23] Production.INFO: ProcessCDR(1,15951712,1,1,2) [2025-10-03 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15951712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15951712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15951712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15951712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951712', 'tblTempUsageDetail_20' ) start [2025-10-03 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951712', 'tblTempUsageDetail_20' ) end [2025-10-03 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-03 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-03 15:25:36] Production.INFO: ==12783== Releasing lock... [2025-10-03 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 15:25:36] Production.INFO: 71.25 MB #Memory Used# [2025-10-03 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 13:25:06 [end_date_ymd] => 2025-10-03 16:25:06 [RateCDR] => 1 ) [2025-10-03 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 13:25:06' and `end` < '2025-10-03 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 16:25:26] Production.INFO: count ==5503 [2025-10-03 16:25:28] Production.ERROR: pbx CDR StartTime 2025-10-03 13:25:06 - End Time 2025-10-03 16:25:06 [2025-10-03 16:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 16:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951959', 'tblTempUsageDetail_20' ) start [2025-10-03 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15951959', 'tblTempUsageDetail_20' ) end [2025-10-03 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951959', 'tblTempVendorCDR_20' ) start [2025-10-03 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15951959', 'tblTempVendorCDR_20' ) end [2025-10-03 16:25:29] Production.INFO: ProcessCDR(1,15951959,1,1,2) [2025-10-03 16:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15951959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15951959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15951959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 16:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15951959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 16:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951959', 'tblTempUsageDetail_20' ) start [2025-10-03 16:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15951959', 'tblTempUsageDetail_20' ) end [2025-10-03 16:25:39] Production.ERROR: pbx prc_insertCDR start [2025-10-03 16:25:41] Production.ERROR: pbx prc_insertCDR end [2025-10-03 16:25:41] Production.INFO: ==17178== Releasing lock... [2025-10-03 16:25:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 16:25:41] Production.INFO: 69.5 MB #Memory Used# [2025-10-03 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 14:25:06 [end_date_ymd] => 2025-10-03 17:25:06 [RateCDR] => 1 ) [2025-10-03 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 14:25:06' and `end` < '2025-10-03 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 17:25:19] Production.INFO: count ==5211 [2025-10-03 17:25:22] Production.ERROR: pbx CDR StartTime 2025-10-03 14:25:06 - End Time 2025-10-03 17:25:06 [2025-10-03 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952206', 'tblTempUsageDetail_20' ) start [2025-10-03 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952206', 'tblTempUsageDetail_20' ) end [2025-10-03 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952206', 'tblTempVendorCDR_20' ) start [2025-10-03 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952206', 'tblTempVendorCDR_20' ) end [2025-10-03 17:25:22] Production.INFO: ProcessCDR(1,15952206,1,1,2) [2025-10-03 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15952206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15952206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15952206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15952206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952206', 'tblTempUsageDetail_20' ) start [2025-10-03 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952206', 'tblTempUsageDetail_20' ) end [2025-10-03 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-03 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-03 17:25:34] Production.INFO: ==22159== Releasing lock... [2025-10-03 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 17:25:34] Production.INFO: 67.25 MB #Memory Used# [2025-10-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 15:25:05 [end_date_ymd] => 2025-10-03 18:25:05 [RateCDR] => 1 ) [2025-10-03 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-10-03 15:25:05' and `end` < '2025-10-03 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-10-03 18:25:18] Production.INFO: count ==4814 [2025-10-03 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-03 15:25:05 - End Time 2025-10-03 18:25:05 [2025-10-03 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952453', 'tblTempUsageDetail_20' ) start [2025-10-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952453', 'tblTempUsageDetail_20' ) end [2025-10-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952453', 'tblTempVendorCDR_20' ) start [2025-10-03 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952453', 'tblTempVendorCDR_20' ) end [2025-10-03 18:25:21] Production.INFO: ProcessCDR(1,15952453,1,1,2) [2025-10-03 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15952453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15952453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15952453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 18:26:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15952453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 18:26:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952453', 'tblTempUsageDetail_20' ) start [2025-10-03 18:26:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952453', 'tblTempUsageDetail_20' ) end [2025-10-03 18:26:16] Production.ERROR: pbx prc_insertCDR start [2025-10-03 18:26:19] Production.ERROR: pbx prc_insertCDR end [2025-10-03 18:26:23] Production.INFO: ==26623== Releasing lock... [2025-10-03 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 18:26:23] Production.INFO: 64.25 MB #Memory Used# [2025-10-03 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 16:25:06 [end_date_ymd] => 2025-10-03 19:25:06 [RateCDR] => 1 ) [2025-10-03 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 16:25:06' and `end` < '2025-10-03 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 19:25:20] Production.INFO: count ==4073 [2025-10-03 19:25:22] Production.ERROR: pbx CDR StartTime 2025-10-03 16:25:06 - End Time 2025-10-03 19:25:06 [2025-10-03 19:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952697', 'tblTempUsageDetail_20' ) start [2025-10-03 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952697', 'tblTempUsageDetail_20' ) end [2025-10-03 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952697', 'tblTempVendorCDR_20' ) start [2025-10-03 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952697', 'tblTempVendorCDR_20' ) end [2025-10-03 19:25:22] Production.INFO: ProcessCDR(1,15952697,1,1,2) [2025-10-03 19:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15952697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 19:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15952697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 19:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15952697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 19:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15952697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952697', 'tblTempUsageDetail_20' ) start [2025-10-03 19:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952697', 'tblTempUsageDetail_20' ) end [2025-10-03 19:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-03 19:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-03 19:25:33] Production.INFO: ==31020== Releasing lock... [2025-10-03 19:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 19:25:33] Production.INFO: 58.5 MB #Memory Used# [2025-10-03 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 17:25:05 [end_date_ymd] => 2025-10-03 20:25:05 [RateCDR] => 1 ) [2025-10-03 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 17:25:05' and `end` < '2025-10-03 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 20:25:18] Production.INFO: count ==3043 [2025-10-03 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-03 17:25:05 - End Time 2025-10-03 20:25:05 [2025-10-03 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952944', 'tblTempUsageDetail_20' ) start [2025-10-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15952944', 'tblTempUsageDetail_20' ) end [2025-10-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952944', 'tblTempVendorCDR_20' ) start [2025-10-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15952944', 'tblTempVendorCDR_20' ) end [2025-10-03 20:25:19] Production.INFO: ProcessCDR(1,15952944,1,1,2) [2025-10-03 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15952944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15952944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15952944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15952944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952944', 'tblTempUsageDetail_20' ) start [2025-10-03 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15952944', 'tblTempUsageDetail_20' ) end [2025-10-03 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-03 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-03 20:25:30] Production.INFO: ==3104== Releasing lock... [2025-10-03 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 20:25:30] Production.INFO: 51.25 MB #Memory Used# [2025-10-03 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 18:25:05 [end_date_ymd] => 2025-10-03 21:25:05 [RateCDR] => 1 ) [2025-10-03 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 18:25:05' and `end` < '2025-10-03 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 21:25:17] Production.INFO: count ==2052 [2025-10-03 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 18:25:05 - End Time 2025-10-03 21:25:05 [2025-10-03 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953191', 'tblTempUsageDetail_20' ) start [2025-10-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953191', 'tblTempUsageDetail_20' ) end [2025-10-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953191', 'tblTempVendorCDR_20' ) start [2025-10-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953191', 'tblTempVendorCDR_20' ) end [2025-10-03 21:25:18] Production.INFO: ProcessCDR(1,15953191,1,1,2) [2025-10-03 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15953191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15953191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15953191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15953191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953191', 'tblTempUsageDetail_20' ) start [2025-10-03 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953191', 'tblTempUsageDetail_20' ) end [2025-10-03 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-03 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-03 21:25:28] Production.INFO: ==7448== Releasing lock... [2025-10-03 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 21:25:28] Production.INFO: 43.5 MB #Memory Used# [2025-10-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 19:25:05 [end_date_ymd] => 2025-10-03 22:25:05 [RateCDR] => 1 ) [2025-10-03 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-10-03 19:25:05' and `end` < '2025-10-03 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-10-03 22:25:18] Production.INFO: count ==1691 [2025-10-03 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 19:25:05 - End Time 2025-10-03 22:25:05 [2025-10-03 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953438', 'tblTempUsageDetail_20' ) start [2025-10-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953438', 'tblTempUsageDetail_20' ) end [2025-10-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953438', 'tblTempVendorCDR_20' ) start [2025-10-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953438', 'tblTempVendorCDR_20' ) end [2025-10-03 22:25:18] Production.INFO: ProcessCDR(1,15953438,1,1,2) [2025-10-03 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15953438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15953438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15953438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15953438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953438', 'tblTempUsageDetail_20' ) start [2025-10-03 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953438', 'tblTempUsageDetail_20' ) end [2025-10-03 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-03 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-03 22:25:27] Production.INFO: ==12465== Releasing lock... [2025-10-03 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 22:25:27] Production.INFO: 41 MB #Memory Used# [2025-10-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 20:25:05 [end_date_ymd] => 2025-10-03 23:25:05 [RateCDR] => 1 ) [2025-10-03 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 20:25:05' and `end` < '2025-10-03 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-03 23:25:17] Production.INFO: count ==1352 [2025-10-03 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 20:25:05 - End Time 2025-10-03 23:25:05 [2025-10-03 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953685', 'tblTempUsageDetail_20' ) start [2025-10-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953685', 'tblTempUsageDetail_20' ) end [2025-10-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953685', 'tblTempVendorCDR_20' ) start [2025-10-03 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953685', 'tblTempVendorCDR_20' ) end [2025-10-03 23:25:18] Production.INFO: ProcessCDR(1,15953685,1,1,2) [2025-10-03 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15953685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15953685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-03 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15953685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15953685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-03 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953685', 'tblTempUsageDetail_20' ) start [2025-10-03 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953685', 'tblTempUsageDetail_20' ) end [2025-10-03 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-03 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-03 23:25:27] Production.INFO: ==17654== Releasing lock... [2025-10-03 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-03 23:25:27] Production.INFO: 38 MB #Memory Used#