[2025-07-09 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 21:25:05 [end_date_ymd] => 2025-07-09 00:25:05 [RateCDR] => 1 ) [2025-07-09 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-08 21:25:05' and `end` < '2025-07-09 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-09 00:25:18] Production.INFO: count ==644 [2025-07-09 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 21:25:05 - End Time 2025-07-09 00:25:05 [2025-07-09 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438267', 'tblTempUsageDetail_20' ) start [2025-07-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438267', 'tblTempUsageDetail_20' ) end [2025-07-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438267', 'tblTempVendorCDR_20' ) start [2025-07-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438267', 'tblTempVendorCDR_20' ) end [2025-07-09 00:25:18] Production.INFO: ProcessCDR(1,15438267,1,1,2) [2025-07-09 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15438267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15438267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15438267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15438267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438267', 'tblTempUsageDetail_20' ) start [2025-07-09 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438267', 'tblTempUsageDetail_20' ) end [2025-07-09 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-09 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-09 00:25:26] Production.INFO: ==20587== Releasing lock... [2025-07-09 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 00:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-07-09 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 22:25:05 [end_date_ymd] => 2025-07-09 01:25:05 [RateCDR] => 1 ) [2025-07-09 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-08 22:25:05' and `end` < '2025-07-09 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-09 01:25:17] Production.INFO: count ==538 [2025-07-09 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 22:25:05 - End Time 2025-07-09 01:25:05 [2025-07-09 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438514', 'tblTempUsageDetail_20' ) start [2025-07-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438514', 'tblTempUsageDetail_20' ) end [2025-07-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438514', 'tblTempVendorCDR_20' ) start [2025-07-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438514', 'tblTempVendorCDR_20' ) end [2025-07-09 01:25:18] Production.INFO: ProcessCDR(1,15438514,1,1,2) [2025-07-09 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15438514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15438514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15438514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15438514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438514', 'tblTempUsageDetail_20' ) start [2025-07-09 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438514', 'tblTempUsageDetail_20' ) end [2025-07-09 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-09 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-09 01:25:24] Production.INFO: ==24872== Releasing lock... [2025-07-09 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 01:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-09 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 23:25:04 [end_date_ymd] => 2025-07-09 02:25:04 [RateCDR] => 1 ) [2025-07-09 02: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-08 23:25:04' and `end` < '2025-07-09 02: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-09 02:25:16] Production.INFO: count ==548 [2025-07-09 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 23:25:04 - End Time 2025-07-09 02:25:04 [2025-07-09 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438761', 'tblTempUsageDetail_20' ) start [2025-07-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438761', 'tblTempUsageDetail_20' ) end [2025-07-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438761', 'tblTempVendorCDR_20' ) start [2025-07-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438761', 'tblTempVendorCDR_20' ) end [2025-07-09 02:25:17] Production.INFO: ProcessCDR(1,15438761,1,1,2) [2025-07-09 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15438761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15438761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15438761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15438761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438761', 'tblTempUsageDetail_20' ) start [2025-07-09 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438761', 'tblTempUsageDetail_20' ) end [2025-07-09 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-09 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-09 02:25:24] Production.INFO: ==29215== Releasing lock... [2025-07-09 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 02:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 00:25:05 [end_date_ymd] => 2025-07-09 03:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 00:25:05' and `end` < '2025-07-09 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-09 03:25:17] Production.INFO: count ==440 [2025-07-09 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 00:25:05 - End Time 2025-07-09 03:25:05 [2025-07-09 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439008', 'tblTempUsageDetail_20' ) start [2025-07-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439008', 'tblTempUsageDetail_20' ) end [2025-07-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439008', 'tblTempVendorCDR_20' ) start [2025-07-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439008', 'tblTempVendorCDR_20' ) end [2025-07-09 03:25:17] Production.INFO: ProcessCDR(1,15439008,1,1,2) [2025-07-09 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15439008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15439008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15439008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15439008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439008', 'tblTempUsageDetail_20' ) start [2025-07-09 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439008', 'tblTempUsageDetail_20' ) end [2025-07-09 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-09 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-09 03:25:24] Production.INFO: ==1040== Releasing lock... [2025-07-09 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 03:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-07-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 01:25:05 [end_date_ymd] => 2025-07-09 04:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 01:25:05' and `end` < '2025-07-09 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-09 04:25:17] Production.INFO: count ==255 [2025-07-09 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 01:25:05 - End Time 2025-07-09 04:25:05 [2025-07-09 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439256', 'tblTempUsageDetail_20' ) start [2025-07-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439256', 'tblTempUsageDetail_20' ) end [2025-07-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439256', 'tblTempVendorCDR_20' ) start [2025-07-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439256', 'tblTempVendorCDR_20' ) end [2025-07-09 04:25:17] Production.INFO: ProcessCDR(1,15439256,1,1,2) [2025-07-09 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15439256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15439256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15439256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15439256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439256', 'tblTempUsageDetail_20' ) start [2025-07-09 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439256', 'tblTempUsageDetail_20' ) end [2025-07-09 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-09 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-09 04:25:24] Production.INFO: ==5434== Releasing lock... [2025-07-09 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 04:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-09 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 02:25:06 [end_date_ymd] => 2025-07-09 05:25:06 [RateCDR] => 1 ) [2025-07-09 05: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-09 02:25:06' and `end` < '2025-07-09 05: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-09 05:25:18] Production.INFO: count ==142 [2025-07-09 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-09 02:25:06 - End Time 2025-07-09 05:25:06 [2025-07-09 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439504', 'tblTempUsageDetail_20' ) start [2025-07-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439504', 'tblTempUsageDetail_20' ) end [2025-07-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439504', 'tblTempVendorCDR_20' ) start [2025-07-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439504', 'tblTempVendorCDR_20' ) end [2025-07-09 05:25:18] Production.INFO: ProcessCDR(1,15439504,1,1,2) [2025-07-09 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15439504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15439504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15439504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15439504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439504', 'tblTempUsageDetail_20' ) start [2025-07-09 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439504', 'tblTempUsageDetail_20' ) end [2025-07-09 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-09 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-09 05:25:25] Production.INFO: ==9773== Releasing lock... [2025-07-09 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 05:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-07-09 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 03:25:05 [end_date_ymd] => 2025-07-09 06:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 03:25:05' and `end` < '2025-07-09 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-09 06:25:17] Production.INFO: count ==116 [2025-07-09 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 03:25:05 - End Time 2025-07-09 06:25:05 [2025-07-09 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439751', 'tblTempUsageDetail_20' ) start [2025-07-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439751', 'tblTempUsageDetail_20' ) end [2025-07-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439751', 'tblTempVendorCDR_20' ) start [2025-07-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439751', 'tblTempVendorCDR_20' ) end [2025-07-09 06:25:17] Production.INFO: ProcessCDR(1,15439751,1,1,2) [2025-07-09 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15439751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15439751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15439751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15439751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439751', 'tblTempUsageDetail_20' ) start [2025-07-09 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439751', 'tblTempUsageDetail_20' ) end [2025-07-09 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-09 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-09 06:25:23] Production.INFO: ==15211== Releasing lock... [2025-07-09 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 06:25:23] Production.INFO: 29 MB #Memory Used# [2025-07-09 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 04:25:05 [end_date_ymd] => 2025-07-09 07:25:05 [RateCDR] => 1 ) [2025-07-09 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-09 04:25:05' and `end` < '2025-07-09 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-09 07:25:17] Production.INFO: count ==105 [2025-07-09 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 04:25:05 - End Time 2025-07-09 07:25:05 [2025-07-09 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439998', 'tblTempUsageDetail_20' ) start [2025-07-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15439998', 'tblTempUsageDetail_20' ) end [2025-07-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439998', 'tblTempVendorCDR_20' ) start [2025-07-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15439998', 'tblTempVendorCDR_20' ) end [2025-07-09 07:25:17] Production.INFO: ProcessCDR(1,15439998,1,1,2) [2025-07-09 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15439998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15439998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15439998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15439998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439998', 'tblTempUsageDetail_20' ) start [2025-07-09 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15439998', 'tblTempUsageDetail_20' ) end [2025-07-09 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-09 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-09 07:25:23] Production.INFO: ==19739== Releasing lock... [2025-07-09 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 07:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-07-09 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 05:25:06 [end_date_ymd] => 2025-07-09 08:25:06 [RateCDR] => 1 ) [2025-07-09 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-07-09 05:25:06' and `end` < '2025-07-09 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-07-09 08:25:18] Production.INFO: count ==320 [2025-07-09 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-09 05:25:06 - End Time 2025-07-09 08:25:06 [2025-07-09 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440245', 'tblTempUsageDetail_20' ) start [2025-07-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440245', 'tblTempUsageDetail_20' ) end [2025-07-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440245', 'tblTempVendorCDR_20' ) start [2025-07-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440245', 'tblTempVendorCDR_20' ) end [2025-07-09 08:25:18] Production.INFO: ProcessCDR(1,15440245,1,1,2) [2025-07-09 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15440245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15440245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15440245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15440245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440245', 'tblTempUsageDetail_20' ) start [2025-07-09 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440245', 'tblTempUsageDetail_20' ) end [2025-07-09 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-09 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-09 08:25:25] Production.INFO: ==24286== Releasing lock... [2025-07-09 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-07-09 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 06:25:05 [end_date_ymd] => 2025-07-09 09:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 06:25:05' and `end` < '2025-07-09 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-09 09:25:18] Production.INFO: count ==1159 [2025-07-09 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-09 06:25:05 - End Time 2025-07-09 09:25:05 [2025-07-09 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440492', 'tblTempUsageDetail_20' ) start [2025-07-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440492', 'tblTempUsageDetail_20' ) end [2025-07-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440492', 'tblTempVendorCDR_20' ) start [2025-07-09 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440492', 'tblTempVendorCDR_20' ) end [2025-07-09 09:25:19] Production.INFO: ProcessCDR(1,15440492,1,1,2) [2025-07-09 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15440492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15440492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15440492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15440492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440492', 'tblTempUsageDetail_20' ) start [2025-07-09 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440492', 'tblTempUsageDetail_20' ) end [2025-07-09 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-09 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-09 09:25:27] Production.INFO: ==28555== Releasing lock... [2025-07-09 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 09:25:27] Production.INFO: 37 MB #Memory Used# [2025-07-09 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 07:25:04 [end_date_ymd] => 2025-07-09 10:25:04 [RateCDR] => 1 ) [2025-07-09 10: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-09 07:25:04' and `end` < '2025-07-09 10: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-09 10:25:27] Production.INFO: count ==2691 [2025-07-09 10:25:29] Production.ERROR: pbx CDR StartTime 2025-07-09 07:25:04 - End Time 2025-07-09 10:25:04 [2025-07-09 10:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440739', 'tblTempUsageDetail_20' ) start [2025-07-09 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440739', 'tblTempUsageDetail_20' ) end [2025-07-09 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440739', 'tblTempVendorCDR_20' ) start [2025-07-09 10:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440739', 'tblTempVendorCDR_20' ) end [2025-07-09 10:25:29] Production.INFO: ProcessCDR(1,15440739,1,1,2) [2025-07-09 10:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15440739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 10:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15440739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 10:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15440739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 10:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15440739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 10:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440739', 'tblTempUsageDetail_20' ) start [2025-07-09 10:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440739', 'tblTempUsageDetail_20' ) end [2025-07-09 10:25:37] Production.ERROR: pbx prc_insertCDR start [2025-07-09 10:25:39] Production.ERROR: pbx prc_insertCDR end [2025-07-09 10:25:39] Production.INFO: ==369== Releasing lock... [2025-07-09 10:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 10:25:39] Production.INFO: 48.5 MB #Memory Used# [2025-07-09 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 08:25:06 [end_date_ymd] => 2025-07-09 11:25:06 [RateCDR] => 1 ) [2025-07-09 11: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-09 08:25:06' and `end` < '2025-07-09 11: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-09 11:25:19] Production.INFO: count ==4176 [2025-07-09 11:25:21] Production.ERROR: pbx CDR StartTime 2025-07-09 08:25:06 - End Time 2025-07-09 11:25:06 [2025-07-09 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440986', 'tblTempUsageDetail_20' ) start [2025-07-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15440986', 'tblTempUsageDetail_20' ) end [2025-07-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440986', 'tblTempVendorCDR_20' ) start [2025-07-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15440986', 'tblTempVendorCDR_20' ) end [2025-07-09 11:25:21] Production.INFO: ProcessCDR(1,15440986,1,1,2) [2025-07-09 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15440986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15440986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15440986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15440986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440986', 'tblTempUsageDetail_20' ) start [2025-07-09 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15440986', 'tblTempUsageDetail_20' ) end [2025-07-09 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-09 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-09 11:25:32] Production.INFO: ==4855== Releasing lock... [2025-07-09 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 11:25:32] Production.INFO: 59.5 MB #Memory Used# [2025-07-09 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 09:25:06 [end_date_ymd] => 2025-07-09 12:25:06 [RateCDR] => 1 ) [2025-07-09 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-09 09:25:06' and `end` < '2025-07-09 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-09 12:25:21] Production.INFO: count ==4967 [2025-07-09 12:25:23] Production.ERROR: pbx CDR StartTime 2025-07-09 09:25:06 - End Time 2025-07-09 12:25:06 [2025-07-09 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441233', 'tblTempUsageDetail_20' ) start [2025-07-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441233', 'tblTempUsageDetail_20' ) end [2025-07-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441233', 'tblTempVendorCDR_20' ) start [2025-07-09 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441233', 'tblTempVendorCDR_20' ) end [2025-07-09 12:25:24] Production.INFO: ProcessCDR(1,15441233,1,1,2) [2025-07-09 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15441233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15441233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15441233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15441233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441233', 'tblTempUsageDetail_20' ) start [2025-07-09 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441233', 'tblTempUsageDetail_20' ) end [2025-07-09 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-09 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-09 12:25:34] Production.INFO: ==9624== Releasing lock... [2025-07-09 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 12:25:34] Production.INFO: 65.75 MB #Memory Used# [2025-07-09 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 10:25:05 [end_date_ymd] => 2025-07-09 13:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 10:25:05' and `end` < '2025-07-09 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-09 13:25:19] Production.INFO: count ==5100 [2025-07-09 13:25:21] Production.ERROR: pbx CDR StartTime 2025-07-09 10:25:05 - End Time 2025-07-09 13:25:05 [2025-07-09 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441480', 'tblTempUsageDetail_20' ) start [2025-07-09 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441480', 'tblTempUsageDetail_20' ) end [2025-07-09 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441480', 'tblTempVendorCDR_20' ) start [2025-07-09 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441480', 'tblTempVendorCDR_20' ) end [2025-07-09 13:25:22] Production.INFO: ProcessCDR(1,15441480,1,1,2) [2025-07-09 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15441480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15441480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15441480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15441480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441480', 'tblTempUsageDetail_20' ) start [2025-07-09 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441480', 'tblTempUsageDetail_20' ) end [2025-07-09 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-09 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-09 13:25:32] Production.INFO: ==15166== Releasing lock... [2025-07-09 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 13:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-07-09 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 11:25:05 [end_date_ymd] => 2025-07-09 14:25:05 [RateCDR] => 1 ) [2025-07-09 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-09 11:25:05' and `end` < '2025-07-09 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-09 14:25:22] Production.INFO: count ==5047 [2025-07-09 14:25:24] Production.ERROR: pbx CDR StartTime 2025-07-09 11:25:05 - End Time 2025-07-09 14:25:05 [2025-07-09 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441727', 'tblTempUsageDetail_20' ) start [2025-07-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441727', 'tblTempUsageDetail_20' ) end [2025-07-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441727', 'tblTempVendorCDR_20' ) start [2025-07-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441727', 'tblTempVendorCDR_20' ) end [2025-07-09 14:25:24] Production.INFO: ProcessCDR(1,15441727,1,1,2) [2025-07-09 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15441727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15441727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15441727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15441727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441727', 'tblTempUsageDetail_20' ) start [2025-07-09 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441727', 'tblTempUsageDetail_20' ) end [2025-07-09 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-09 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-09 14:25:35] Production.INFO: ==20225== Releasing lock... [2025-07-09 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 14:25:35] Production.INFO: 66 MB #Memory Used# [2025-07-09 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 12:25:06 [end_date_ymd] => 2025-07-09 15:25:06 [RateCDR] => 1 ) [2025-07-09 15: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-09 12:25:06' and `end` < '2025-07-09 15: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-09 15:25:19] Production.INFO: count ==5251 [2025-07-09 15:25:22] Production.ERROR: pbx CDR StartTime 2025-07-09 12:25:06 - End Time 2025-07-09 15:25:06 [2025-07-09 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441974', 'tblTempUsageDetail_20' ) start [2025-07-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15441974', 'tblTempUsageDetail_20' ) end [2025-07-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441974', 'tblTempVendorCDR_20' ) start [2025-07-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15441974', 'tblTempVendorCDR_20' ) end [2025-07-09 15:25:22] Production.INFO: ProcessCDR(1,15441974,1,1,2) [2025-07-09 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15441974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15441974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15441974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15441974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441974', 'tblTempUsageDetail_20' ) start [2025-07-09 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15441974', 'tblTempUsageDetail_20' ) end [2025-07-09 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-09 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-09 15:25:33] Production.INFO: ==24620== Releasing lock... [2025-07-09 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 15:25:33] Production.INFO: 67.5 MB #Memory Used# [2025-07-09 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 13:25:05 [end_date_ymd] => 2025-07-09 16:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 13:25:05' and `end` < '2025-07-09 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-09 16:25:20] Production.INFO: count ==5398 [2025-07-09 16:25:23] Production.ERROR: pbx CDR StartTime 2025-07-09 13:25:05 - End Time 2025-07-09 16:25:05 [2025-07-09 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442221', 'tblTempUsageDetail_20' ) start [2025-07-09 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442221', 'tblTempUsageDetail_20' ) end [2025-07-09 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442221', 'tblTempVendorCDR_20' ) start [2025-07-09 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442221', 'tblTempVendorCDR_20' ) end [2025-07-09 16:25:23] Production.INFO: ProcessCDR(1,15442221,1,1,2) [2025-07-09 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15442221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15442221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15442221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15442221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442221', 'tblTempUsageDetail_20' ) start [2025-07-09 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442221', 'tblTempUsageDetail_20' ) end [2025-07-09 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-09 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-09 16:25:34] Production.INFO: ==29348== Releasing lock... [2025-07-09 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 16:25:34] Production.INFO: 69 MB #Memory Used# [2025-07-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 14:25:05 [end_date_ymd] => 2025-07-09 17:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 14:25:05' and `end` < '2025-07-09 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-09 17:25:18] Production.INFO: count ==5200 [2025-07-09 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-09 14:25:05 - End Time 2025-07-09 17:25:05 [2025-07-09 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442468', 'tblTempUsageDetail_20' ) start [2025-07-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442468', 'tblTempUsageDetail_20' ) end [2025-07-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442468', 'tblTempVendorCDR_20' ) start [2025-07-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442468', 'tblTempVendorCDR_20' ) end [2025-07-09 17:25:21] Production.INFO: ProcessCDR(1,15442468,1,1,2) [2025-07-09 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15442468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15442468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15442468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15442468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442468', 'tblTempUsageDetail_20' ) start [2025-07-09 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442468', 'tblTempUsageDetail_20' ) end [2025-07-09 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-09 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-09 17:25:31] Production.INFO: ==1997== Releasing lock... [2025-07-09 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 17:25:31] Production.INFO: 67.5 MB #Memory Used# [2025-07-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 15:25:05 [end_date_ymd] => 2025-07-09 18:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 15:25:05' and `end` < '2025-07-09 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-09 18:25:18] Production.INFO: count ==4161 [2025-07-09 18:25:20] Production.ERROR: pbx CDR StartTime 2025-07-09 15:25:05 - End Time 2025-07-09 18:25:05 [2025-07-09 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442715', 'tblTempUsageDetail_20' ) start [2025-07-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442715', 'tblTempUsageDetail_20' ) end [2025-07-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442715', 'tblTempVendorCDR_20' ) start [2025-07-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442715', 'tblTempVendorCDR_20' ) end [2025-07-09 18:25:20] Production.INFO: ProcessCDR(1,15442715,1,1,2) [2025-07-09 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15442715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15442715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15442715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15442715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442715', 'tblTempUsageDetail_20' ) start [2025-07-09 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442715', 'tblTempUsageDetail_20' ) end [2025-07-09 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-09 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-09 18:25:29] Production.INFO: ==6917== Releasing lock... [2025-07-09 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 18:25:29] Production.INFO: 59.25 MB #Memory Used# [2025-07-09 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 16:25:05 [end_date_ymd] => 2025-07-09 19:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 16:25:05' and `end` < '2025-07-09 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-09 19:25:18] Production.INFO: count ==3055 [2025-07-09 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-09 16:25:05 - End Time 2025-07-09 19:25:05 [2025-07-09 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442959', 'tblTempUsageDetail_20' ) start [2025-07-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15442959', 'tblTempUsageDetail_20' ) end [2025-07-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442959', 'tblTempVendorCDR_20' ) start [2025-07-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15442959', 'tblTempVendorCDR_20' ) end [2025-07-09 19:25:19] Production.INFO: ProcessCDR(1,15442959,1,1,2) [2025-07-09 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15442959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15442959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15442959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15442959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442959', 'tblTempUsageDetail_20' ) start [2025-07-09 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15442959', 'tblTempUsageDetail_20' ) end [2025-07-09 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-09 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-09 19:25:27] Production.INFO: ==11574== Releasing lock... [2025-07-09 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 19:25:27] Production.INFO: 51 MB #Memory Used# [2025-07-09 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 17:25:05 [end_date_ymd] => 2025-07-09 20:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 17:25:05' and `end` < '2025-07-09 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-09 20:25:17] Production.INFO: count ==3225 [2025-07-09 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-09 17:25:05 - End Time 2025-07-09 20:25:05 [2025-07-09 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443206', 'tblTempUsageDetail_20' ) start [2025-07-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443206', 'tblTempUsageDetail_20' ) end [2025-07-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443206', 'tblTempVendorCDR_20' ) start [2025-07-09 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443206', 'tblTempVendorCDR_20' ) end [2025-07-09 20:25:19] Production.INFO: ProcessCDR(1,15443206,1,1,2) [2025-07-09 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15443206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15443206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15443206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15443206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443206', 'tblTempUsageDetail_20' ) start [2025-07-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443206', 'tblTempUsageDetail_20' ) end [2025-07-09 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-09 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-09 20:25:27] Production.INFO: ==16044== Releasing lock... [2025-07-09 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 20:25:27] Production.INFO: 52.25 MB #Memory Used# [2025-07-09 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 18:25:06 [end_date_ymd] => 2025-07-09 21:25:06 [RateCDR] => 1 ) [2025-07-09 21: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-09 18:25:06' and `end` < '2025-07-09 21: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-09 21:25:19] Production.INFO: count ==2785 [2025-07-09 21:25:20] Production.ERROR: pbx CDR StartTime 2025-07-09 18:25:06 - End Time 2025-07-09 21:25:06 [2025-07-09 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443453', 'tblTempUsageDetail_20' ) start [2025-07-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443453', 'tblTempUsageDetail_20' ) end [2025-07-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443453', 'tblTempVendorCDR_20' ) start [2025-07-09 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443453', 'tblTempVendorCDR_20' ) end [2025-07-09 21:25:20] Production.INFO: ProcessCDR(1,15443453,1,1,2) [2025-07-09 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15443453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15443453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15443453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15443453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443453', 'tblTempUsageDetail_20' ) start [2025-07-09 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443453', 'tblTempUsageDetail_20' ) end [2025-07-09 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-09 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-09 21:25:27] Production.INFO: ==20425== Releasing lock... [2025-07-09 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 21:25:27] Production.INFO: 49 MB #Memory Used# [2025-07-09 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 19:25:05 [end_date_ymd] => 2025-07-09 22:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 19:25:05' and `end` < '2025-07-09 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-09 22:25:18] Production.INFO: count ==2213 [2025-07-09 22:25:19] Production.ERROR: pbx CDR StartTime 2025-07-09 19:25:05 - End Time 2025-07-09 22:25:05 [2025-07-09 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443700', 'tblTempUsageDetail_20' ) start [2025-07-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443700', 'tblTempUsageDetail_20' ) end [2025-07-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443700', 'tblTempVendorCDR_20' ) start [2025-07-09 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443700', 'tblTempVendorCDR_20' ) end [2025-07-09 22:25:19] Production.INFO: ProcessCDR(1,15443700,1,1,2) [2025-07-09 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15443700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15443700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15443700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15443700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443700', 'tblTempUsageDetail_20' ) start [2025-07-09 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443700', 'tblTempUsageDetail_20' ) end [2025-07-09 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-09 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-09 22:25:26] Production.INFO: ==24741== Releasing lock... [2025-07-09 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 22:25:26] Production.INFO: 44.75 MB #Memory Used# [2025-07-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 20:25:05 [end_date_ymd] => 2025-07-09 23:25:05 [RateCDR] => 1 ) [2025-07-09 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-09 20:25:05' and `end` < '2025-07-09 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-09 23:25:18] Production.INFO: count ==974 [2025-07-09 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-09 20:25:05 - End Time 2025-07-09 23:25:05 [2025-07-09 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443947', 'tblTempUsageDetail_20' ) start [2025-07-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15443947', 'tblTempUsageDetail_20' ) end [2025-07-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443947', 'tblTempVendorCDR_20' ) start [2025-07-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15443947', 'tblTempVendorCDR_20' ) end [2025-07-09 23:25:18] Production.INFO: ProcessCDR(1,15443947,1,1,2) [2025-07-09 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15443947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15443947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-09 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15443947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15443947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-09 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443947', 'tblTempUsageDetail_20' ) start [2025-07-09 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15443947', 'tblTempUsageDetail_20' ) end [2025-07-09 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-09 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-09 23:25:24] Production.INFO: ==29010== Releasing lock... [2025-07-09 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-09 23:25:24] Production.INFO: 36 MB #Memory Used#