[2025-07-03 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 21:25:06 [end_date_ymd] => 2025-07-03 00:25:06 [RateCDR] => 1 ) [2025-07-03 00: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-02 21:25:06' and `end` < '2025-07-03 00: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-03 00:25:18] Production.INFO: count ==533 [2025-07-03 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 21:25:06 - End Time 2025-07-03 00:25:06 [2025-07-03 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402703', 'tblTempUsageDetail_20' ) start [2025-07-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402703', 'tblTempUsageDetail_20' ) end [2025-07-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402703', 'tblTempVendorCDR_20' ) start [2025-07-03 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402703', 'tblTempVendorCDR_20' ) end [2025-07-03 00:25:18] Production.INFO: ProcessCDR(1,15402703,1,1,2) [2025-07-03 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15402703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15402703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15402703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15402703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402703', 'tblTempUsageDetail_20' ) start [2025-07-03 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402703', 'tblTempUsageDetail_20' ) end [2025-07-03 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-03 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-03 00:25:26] Production.INFO: ==8571== Releasing lock... [2025-07-03 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 00:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-07-03 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 22:25:05 [end_date_ymd] => 2025-07-03 01:25:05 [RateCDR] => 1 ) [2025-07-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-07-02 22:25:05' and `end` < '2025-07-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-07-03 01:25:17] Production.INFO: count ==538 [2025-07-03 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-02 22:25:05 - End Time 2025-07-03 01:25:05 [2025-07-03 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402950', 'tblTempUsageDetail_20' ) start [2025-07-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402950', 'tblTempUsageDetail_20' ) end [2025-07-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402950', 'tblTempVendorCDR_20' ) start [2025-07-03 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402950', 'tblTempVendorCDR_20' ) end [2025-07-03 01:25:17] Production.INFO: ProcessCDR(1,15402950,1,1,2) [2025-07-03 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15402950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15402950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15402950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15402950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402950', 'tblTempUsageDetail_20' ) start [2025-07-03 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402950', 'tblTempUsageDetail_20' ) end [2025-07-03 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-03 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-03 01:25:24] Production.INFO: ==13353== Releasing lock... [2025-07-03 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 01:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-07-03 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 23:25:05 [end_date_ymd] => 2025-07-03 02:25:05 [RateCDR] => 1 ) [2025-07-03 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-02 23:25:05' and `end` < '2025-07-03 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-03 02:25:17] Production.INFO: count ==511 [2025-07-03 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-02 23:25:05 - End Time 2025-07-03 02:25:05 [2025-07-03 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403197', 'tblTempUsageDetail_20' ) start [2025-07-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403197', 'tblTempUsageDetail_20' ) end [2025-07-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403197', 'tblTempVendorCDR_20' ) start [2025-07-03 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403197', 'tblTempVendorCDR_20' ) end [2025-07-03 02:25:17] Production.INFO: ProcessCDR(1,15403197,1,1,2) [2025-07-03 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15403197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15403197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15403197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15403197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403197', 'tblTempUsageDetail_20' ) start [2025-07-03 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403197', 'tblTempUsageDetail_20' ) end [2025-07-03 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-03 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-03 02:25:23] Production.INFO: ==17727== Releasing lock... [2025-07-03 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 02:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-07-03 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 00:25:05 [end_date_ymd] => 2025-07-03 03:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 00:25:05' and `end` < '2025-07-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-07-03 03:25:18] Production.INFO: count ==594 [2025-07-03 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 00:25:05 - End Time 2025-07-03 03:25:05 [2025-07-03 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403444', 'tblTempUsageDetail_20' ) start [2025-07-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403444', 'tblTempUsageDetail_20' ) end [2025-07-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403444', 'tblTempVendorCDR_20' ) start [2025-07-03 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403444', 'tblTempVendorCDR_20' ) end [2025-07-03 03:25:18] Production.INFO: ProcessCDR(1,15403444,1,1,2) [2025-07-03 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15403444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15403444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15403444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15403444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403444', 'tblTempUsageDetail_20' ) start [2025-07-03 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403444', 'tblTempUsageDetail_20' ) end [2025-07-03 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-03 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-03 03:25:24] Production.INFO: ==21934== Releasing lock... [2025-07-03 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 03:25:24] Production.INFO: 33 MB #Memory Used# [2025-07-03 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 01:25:06 [end_date_ymd] => 2025-07-03 04:25:06 [RateCDR] => 1 ) [2025-07-03 04: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-03 01:25:06' and `end` < '2025-07-03 04: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-03 04:25:18] Production.INFO: count ==394 [2025-07-03 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 01:25:06 - End Time 2025-07-03 04:25:06 [2025-07-03 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403692', 'tblTempUsageDetail_20' ) start [2025-07-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403692', 'tblTempUsageDetail_20' ) end [2025-07-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403692', 'tblTempVendorCDR_20' ) start [2025-07-03 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403692', 'tblTempVendorCDR_20' ) end [2025-07-03 04:25:18] Production.INFO: ProcessCDR(1,15403692,1,1,2) [2025-07-03 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15403692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15403692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15403692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15403692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403692', 'tblTempUsageDetail_20' ) start [2025-07-03 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403692', 'tblTempUsageDetail_20' ) end [2025-07-03 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-03 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-03 04:25:22] Production.INFO: ==26256== Releasing lock... [2025-07-03 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 04:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-07-03 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 02:25:05 [end_date_ymd] => 2025-07-03 05:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 02:25:05' and `end` < '2025-07-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-07-03 05:25:18] Production.INFO: count ==306 [2025-07-03 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 02:25:05 - End Time 2025-07-03 05:25:05 [2025-07-03 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403940', 'tblTempUsageDetail_20' ) start [2025-07-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15403940', 'tblTempUsageDetail_20' ) end [2025-07-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403940', 'tblTempVendorCDR_20' ) start [2025-07-03 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15403940', 'tblTempVendorCDR_20' ) end [2025-07-03 05:25:18] Production.INFO: ProcessCDR(1,15403940,1,1,2) [2025-07-03 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15403940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15403940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15403940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15403940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403940', 'tblTempUsageDetail_20' ) start [2025-07-03 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15403940', 'tblTempUsageDetail_20' ) end [2025-07-03 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-03 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-03 05:25:22] Production.INFO: ==30581== Releasing lock... [2025-07-03 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 05:25:22] Production.INFO: 31 MB #Memory Used# [2025-07-03 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 03:25:04 [end_date_ymd] => 2025-07-03 06:25:04 [RateCDR] => 1 ) [2025-07-03 06: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-03 03:25:04' and `end` < '2025-07-03 06: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-03 06:25:17] Production.INFO: count ==94 [2025-07-03 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-03 03:25:04 - End Time 2025-07-03 06:25:04 [2025-07-03 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404187', 'tblTempUsageDetail_20' ) start [2025-07-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404187', 'tblTempUsageDetail_20' ) end [2025-07-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404187', 'tblTempVendorCDR_20' ) start [2025-07-03 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404187', 'tblTempVendorCDR_20' ) end [2025-07-03 06:25:17] Production.INFO: ProcessCDR(1,15404187,1,1,2) [2025-07-03 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15404187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15404187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15404187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15404187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404187', 'tblTempUsageDetail_20' ) start [2025-07-03 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404187', 'tblTempUsageDetail_20' ) end [2025-07-03 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-03 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-03 06:25:23] Production.INFO: ==2435== Releasing lock... [2025-07-03 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-07-03 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 04:25:05 [end_date_ymd] => 2025-07-03 07:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 04:25:05' and `end` < '2025-07-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-07-03 07:25:18] Production.INFO: count ==125 [2025-07-03 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 04:25:05 - End Time 2025-07-03 07:25:05 [2025-07-03 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404434', 'tblTempUsageDetail_20' ) start [2025-07-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404434', 'tblTempUsageDetail_20' ) end [2025-07-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404434', 'tblTempVendorCDR_20' ) start [2025-07-03 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404434', 'tblTempVendorCDR_20' ) end [2025-07-03 07:25:18] Production.INFO: ProcessCDR(1,15404434,1,1,2) [2025-07-03 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15404434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15404434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15404434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15404434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404434', 'tblTempUsageDetail_20' ) start [2025-07-03 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404434', 'tblTempUsageDetail_20' ) end [2025-07-03 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-03 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-03 07:25:24] Production.INFO: ==7421== Releasing lock... [2025-07-03 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 07:25:24] Production.INFO: 29 MB #Memory Used# [2025-07-03 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 05:25:05 [end_date_ymd] => 2025-07-03 08:25:05 [RateCDR] => 1 ) [2025-07-03 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-03 05:25:05' and `end` < '2025-07-03 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-03 08:25:17] Production.INFO: count ==307 [2025-07-03 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-03 05:25:05 - End Time 2025-07-03 08:25:05 [2025-07-03 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404681', 'tblTempUsageDetail_20' ) start [2025-07-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404681', 'tblTempUsageDetail_20' ) end [2025-07-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404681', 'tblTempVendorCDR_20' ) start [2025-07-03 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404681', 'tblTempVendorCDR_20' ) end [2025-07-03 08:25:17] Production.INFO: ProcessCDR(1,15404681,1,1,2) [2025-07-03 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15404681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15404681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15404681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15404681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404681', 'tblTempUsageDetail_20' ) start [2025-07-03 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404681', 'tblTempUsageDetail_20' ) end [2025-07-03 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-03 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-03 08:25:24] Production.INFO: ==11701== Releasing lock... [2025-07-03 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 08:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-03 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 06:25:05 [end_date_ymd] => 2025-07-03 09:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 06:25:05' and `end` < '2025-07-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-07-03 09:25:18] Production.INFO: count ==1077 [2025-07-03 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 06:25:05 - End Time 2025-07-03 09:25:05 [2025-07-03 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404928', 'tblTempUsageDetail_20' ) start [2025-07-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15404928', 'tblTempUsageDetail_20' ) end [2025-07-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404928', 'tblTempVendorCDR_20' ) start [2025-07-03 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15404928', 'tblTempVendorCDR_20' ) end [2025-07-03 09:25:18] Production.INFO: ProcessCDR(1,15404928,1,1,2) [2025-07-03 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15404928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15404928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15404928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15404928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404928', 'tblTempUsageDetail_20' ) start [2025-07-03 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15404928', 'tblTempUsageDetail_20' ) end [2025-07-03 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-03 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-03 09:25:26] Production.INFO: ==16360== Releasing lock... [2025-07-03 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 09:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-07-03 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 07:25:05 [end_date_ymd] => 2025-07-03 10:25:05 [RateCDR] => 1 ) [2025-07-03 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-03 07:25:05' and `end` < '2025-07-03 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-03 10:25:18] Production.INFO: count ==2594 [2025-07-03 10:25:19] Production.ERROR: pbx CDR StartTime 2025-07-03 07:25:05 - End Time 2025-07-03 10:25:05 [2025-07-03 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405175', 'tblTempUsageDetail_20' ) start [2025-07-03 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405175', 'tblTempUsageDetail_20' ) end [2025-07-03 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405175', 'tblTempVendorCDR_20' ) start [2025-07-03 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405175', 'tblTempVendorCDR_20' ) end [2025-07-03 10:25:19] Production.INFO: ProcessCDR(1,15405175,1,1,2) [2025-07-03 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15405175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15405175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15405175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15405175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405175', 'tblTempUsageDetail_20' ) start [2025-07-03 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405175', 'tblTempUsageDetail_20' ) end [2025-07-03 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-03 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-03 10:25:29] Production.INFO: ==21185== Releasing lock... [2025-07-03 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 10:25:29] Production.INFO: 48.25 MB #Memory Used# [2025-07-03 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 08:25:05 [end_date_ymd] => 2025-07-03 11:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 08:25:05' and `end` < '2025-07-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-07-03 11:25:27] Production.INFO: count ==4381 [2025-07-03 11:25:29] Production.ERROR: pbx CDR StartTime 2025-07-03 08:25:05 - End Time 2025-07-03 11:25:05 [2025-07-03 11:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405422', 'tblTempUsageDetail_20' ) start [2025-07-03 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405422', 'tblTempUsageDetail_20' ) end [2025-07-03 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405422', 'tblTempVendorCDR_20' ) start [2025-07-03 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405422', 'tblTempVendorCDR_20' ) end [2025-07-03 11:25:29] Production.INFO: ProcessCDR(1,15405422,1,1,2) [2025-07-03 11:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15405422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 11:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15405422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 11:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15405422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15405422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405422', 'tblTempUsageDetail_20' ) start [2025-07-03 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405422', 'tblTempUsageDetail_20' ) end [2025-07-03 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-07-03 11:25:40] Production.ERROR: pbx prc_insertCDR end [2025-07-03 11:25:40] Production.INFO: ==25479== Releasing lock... [2025-07-03 11:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 11:25:40] Production.INFO: 61 MB #Memory Used# [2025-07-03 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 09:25:06 [end_date_ymd] => 2025-07-03 12:25:06 [RateCDR] => 1 ) [2025-07-03 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-03 09:25:06' and `end` < '2025-07-03 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-03 12:25:20] Production.INFO: count ==5568 [2025-07-03 12:25:22] Production.ERROR: pbx CDR StartTime 2025-07-03 09:25:06 - End Time 2025-07-03 12:25:06 [2025-07-03 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405669', 'tblTempUsageDetail_20' ) start [2025-07-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405669', 'tblTempUsageDetail_20' ) end [2025-07-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405669', 'tblTempVendorCDR_20' ) start [2025-07-03 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405669', 'tblTempVendorCDR_20' ) end [2025-07-03 12:25:23] Production.INFO: ProcessCDR(1,15405669,1,1,2) [2025-07-03 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15405669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15405669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15405669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15405669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405669', 'tblTempUsageDetail_20' ) start [2025-07-03 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405669', 'tblTempUsageDetail_20' ) end [2025-07-03 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-03 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-03 12:25:34] Production.INFO: ==30576== Releasing lock... [2025-07-03 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 12:25:34] Production.INFO: 70 MB #Memory Used# [2025-07-03 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 10:25:05 [end_date_ymd] => 2025-07-03 13:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 10:25:05' and `end` < '2025-07-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-07-03 13:25:21] Production.INFO: count ==5695 [2025-07-03 13:25:24] Production.ERROR: pbx CDR StartTime 2025-07-03 10:25:05 - End Time 2025-07-03 13:25:05 [2025-07-03 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405916', 'tblTempUsageDetail_20' ) start [2025-07-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15405916', 'tblTempUsageDetail_20' ) end [2025-07-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405916', 'tblTempVendorCDR_20' ) start [2025-07-03 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15405916', 'tblTempVendorCDR_20' ) end [2025-07-03 13:25:24] Production.INFO: ProcessCDR(1,15405916,1,1,2) [2025-07-03 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15405916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15405916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15405916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15405916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405916', 'tblTempUsageDetail_20' ) start [2025-07-03 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15405916', 'tblTempUsageDetail_20' ) end [2025-07-03 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-03 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-03 13:25:35] Production.INFO: ==3513== Releasing lock... [2025-07-03 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 13:25:35] Production.INFO: 71 MB #Memory Used# [2025-07-03 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 11:25:05 [end_date_ymd] => 2025-07-03 14:25:05 [RateCDR] => 1 ) [2025-07-03 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-03 11:25:05' and `end` < '2025-07-03 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-03 14:25:19] Production.INFO: count ==5423 [2025-07-03 14:25:22] Production.ERROR: pbx CDR StartTime 2025-07-03 11:25:05 - End Time 2025-07-03 14:25:05 [2025-07-03 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406163', 'tblTempUsageDetail_20' ) start [2025-07-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406163', 'tblTempUsageDetail_20' ) end [2025-07-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406163', 'tblTempVendorCDR_20' ) start [2025-07-03 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406163', 'tblTempVendorCDR_20' ) end [2025-07-03 14:25:22] Production.INFO: ProcessCDR(1,15406163,1,1,2) [2025-07-03 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15406163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15406163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15406163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15406163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406163', 'tblTempUsageDetail_20' ) start [2025-07-03 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406163', 'tblTempUsageDetail_20' ) end [2025-07-03 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-03 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-03 14:25:32] Production.INFO: ==8347== Releasing lock... [2025-07-03 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 14:25:32] Production.INFO: 68.75 MB #Memory Used# [2025-07-03 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 12:25:05 [end_date_ymd] => 2025-07-03 15:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 12:25:05' and `end` < '2025-07-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-07-03 15:25:21] Production.INFO: count ==5107 [2025-07-03 15:25:23] Production.ERROR: pbx CDR StartTime 2025-07-03 12:25:05 - End Time 2025-07-03 15:25:05 [2025-07-03 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406410', 'tblTempUsageDetail_20' ) start [2025-07-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406410', 'tblTempUsageDetail_20' ) end [2025-07-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406410', 'tblTempVendorCDR_20' ) start [2025-07-03 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406410', 'tblTempVendorCDR_20' ) end [2025-07-03 15:25:23] Production.INFO: ProcessCDR(1,15406410,1,1,2) [2025-07-03 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15406410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15406410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15406410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15406410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406410', 'tblTempUsageDetail_20' ) start [2025-07-03 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406410', 'tblTempUsageDetail_20' ) end [2025-07-03 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-03 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-03 15:25:33] Production.INFO: ==12860== Releasing lock... [2025-07-03 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 15:25:33] Production.INFO: 66.5 MB #Memory Used# [2025-07-03 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 13:25:05 [end_date_ymd] => 2025-07-03 16:25:05 [RateCDR] => 1 ) [2025-07-03 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-03 13:25:05' and `end` < '2025-07-03 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-03 16:25:18] Production.INFO: count ==5149 [2025-07-03 16:25:21] Production.ERROR: pbx CDR StartTime 2025-07-03 13:25:05 - End Time 2025-07-03 16:25:05 [2025-07-03 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406657', 'tblTempUsageDetail_20' ) start [2025-07-03 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406657', 'tblTempUsageDetail_20' ) end [2025-07-03 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406657', 'tblTempVendorCDR_20' ) start [2025-07-03 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406657', 'tblTempVendorCDR_20' ) end [2025-07-03 16:25:21] Production.INFO: ProcessCDR(1,15406657,1,1,2) [2025-07-03 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15406657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15406657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15406657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15406657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406657', 'tblTempUsageDetail_20' ) start [2025-07-03 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406657', 'tblTempUsageDetail_20' ) end [2025-07-03 16:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-03 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-03 16:25:31] Production.INFO: ==17160== Releasing lock... [2025-07-03 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 16:25:31] Production.INFO: 66.75 MB #Memory Used# [2025-07-03 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 14:25:05 [end_date_ymd] => 2025-07-03 17:25:05 [RateCDR] => 1 ) [2025-07-03 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-03 14:25:05' and `end` < '2025-07-03 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-03 17:25:19] Production.INFO: count ==5012 [2025-07-03 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-03 14:25:05 - End Time 2025-07-03 17:25:05 [2025-07-03 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406904', 'tblTempUsageDetail_20' ) start [2025-07-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15406904', 'tblTempUsageDetail_20' ) end [2025-07-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406904', 'tblTempVendorCDR_20' ) start [2025-07-03 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15406904', 'tblTempVendorCDR_20' ) end [2025-07-03 17:25:21] Production.INFO: ProcessCDR(1,15406904,1,1,2) [2025-07-03 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15406904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15406904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15406904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15406904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406904', 'tblTempUsageDetail_20' ) start [2025-07-03 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15406904', 'tblTempUsageDetail_20' ) end [2025-07-03 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-03 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-03 17:25:31] Production.INFO: ==21474== Releasing lock... [2025-07-03 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 17:25:31] Production.INFO: 65.75 MB #Memory Used# [2025-07-03 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 15:25:05 [end_date_ymd] => 2025-07-03 18:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 15:25:05' and `end` < '2025-07-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-07-03 18:25:18] Production.INFO: count ==4361 [2025-07-03 18:25:20] Production.ERROR: pbx CDR StartTime 2025-07-03 15:25:05 - End Time 2025-07-03 18:25:05 [2025-07-03 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407151', 'tblTempUsageDetail_20' ) start [2025-07-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407151', 'tblTempUsageDetail_20' ) end [2025-07-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407151', 'tblTempVendorCDR_20' ) start [2025-07-03 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407151', 'tblTempVendorCDR_20' ) end [2025-07-03 18:25:20] Production.INFO: ProcessCDR(1,15407151,1,1,2) [2025-07-03 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15407151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15407151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15407151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15407151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407151', 'tblTempUsageDetail_20' ) start [2025-07-03 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407151', 'tblTempUsageDetail_20' ) end [2025-07-03 18:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-03 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-03 18:25:28] Production.INFO: ==27180== Releasing lock... [2025-07-03 18:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 18:25:28] Production.INFO: 60.75 MB #Memory Used# [2025-07-03 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 16:25:06 [end_date_ymd] => 2025-07-03 19:25:06 [RateCDR] => 1 ) [2025-07-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-07-03 16:25:06' and `end` < '2025-07-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-07-03 19:25:19] Production.INFO: count ==3310 [2025-07-03 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-03 16:25:06 - End Time 2025-07-03 19:25:06 [2025-07-03 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407395', 'tblTempUsageDetail_20' ) start [2025-07-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407395', 'tblTempUsageDetail_20' ) end [2025-07-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407395', 'tblTempVendorCDR_20' ) start [2025-07-03 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407395', 'tblTempVendorCDR_20' ) end [2025-07-03 19:25:20] Production.INFO: ProcessCDR(1,15407395,1,1,2) [2025-07-03 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15407395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15407395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15407395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15407395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407395', 'tblTempUsageDetail_20' ) start [2025-07-03 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407395', 'tblTempUsageDetail_20' ) end [2025-07-03 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-03 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-03 19:25:28] Production.INFO: ==32272== Releasing lock... [2025-07-03 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 19:25:28] Production.INFO: 53.5 MB #Memory Used# [2025-07-03 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 17:25:05 [end_date_ymd] => 2025-07-03 20:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 17:25:05' and `end` < '2025-07-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-07-03 20:25:17] Production.INFO: count ==2410 [2025-07-03 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 17:25:05 - End Time 2025-07-03 20:25:05 [2025-07-03 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407642', 'tblTempUsageDetail_20' ) start [2025-07-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407642', 'tblTempUsageDetail_20' ) end [2025-07-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407642', 'tblTempVendorCDR_20' ) start [2025-07-03 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407642', 'tblTempVendorCDR_20' ) end [2025-07-03 20:25:19] Production.INFO: ProcessCDR(1,15407642,1,1,2) [2025-07-03 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15407642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15407642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15407642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15407642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407642', 'tblTempUsageDetail_20' ) start [2025-07-03 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407642', 'tblTempUsageDetail_20' ) end [2025-07-03 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-03 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-03 20:25:25] Production.INFO: ==4157== Releasing lock... [2025-07-03 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 20:25:25] Production.INFO: 46.25 MB #Memory Used# [2025-07-03 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 18:25:05 [end_date_ymd] => 2025-07-03 21:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 18:25:05' and `end` < '2025-07-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-07-03 21:25:18] Production.INFO: count ==1933 [2025-07-03 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 18:25:05 - End Time 2025-07-03 21:25:05 [2025-07-03 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407889', 'tblTempUsageDetail_20' ) start [2025-07-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15407889', 'tblTempUsageDetail_20' ) end [2025-07-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407889', 'tblTempVendorCDR_20' ) start [2025-07-03 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15407889', 'tblTempVendorCDR_20' ) end [2025-07-03 21:25:18] Production.INFO: ProcessCDR(1,15407889,1,1,2) [2025-07-03 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15407889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15407889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15407889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15407889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407889', 'tblTempUsageDetail_20' ) start [2025-07-03 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15407889', 'tblTempUsageDetail_20' ) end [2025-07-03 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-03 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-03 21:25:26] Production.INFO: ==8756== Releasing lock... [2025-07-03 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 21:25:26] Production.INFO: 43 MB #Memory Used# [2025-07-03 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 19:25:05 [end_date_ymd] => 2025-07-03 22:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 19:25:05' and `end` < '2025-07-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-07-03 22:25:18] Production.INFO: count ==1519 [2025-07-03 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-03 19:25:05 - End Time 2025-07-03 22:25:05 [2025-07-03 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408136', 'tblTempUsageDetail_20' ) start [2025-07-03 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408136', 'tblTempUsageDetail_20' ) end [2025-07-03 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408136', 'tblTempVendorCDR_20' ) start [2025-07-03 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408136', 'tblTempVendorCDR_20' ) end [2025-07-03 22:25:19] Production.INFO: ProcessCDR(1,15408136,1,1,2) [2025-07-03 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15408136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15408136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15408136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15408136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408136', 'tblTempUsageDetail_20' ) start [2025-07-03 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408136', 'tblTempUsageDetail_20' ) end [2025-07-03 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-03 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-03 22:25:25] Production.INFO: ==12993== Releasing lock... [2025-07-03 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 22:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-07-03 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-03 20:25:05 [end_date_ymd] => 2025-07-03 23:25:05 [RateCDR] => 1 ) [2025-07-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-07-03 20:25:05' and `end` < '2025-07-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-07-03 23:25:18] Production.INFO: count ==2110 [2025-07-03 23:25:19] Production.ERROR: pbx CDR StartTime 2025-07-03 20:25:05 - End Time 2025-07-03 23:25:05 [2025-07-03 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408383', 'tblTempUsageDetail_20' ) start [2025-07-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15408383', 'tblTempUsageDetail_20' ) end [2025-07-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408383', 'tblTempVendorCDR_20' ) start [2025-07-03 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15408383', 'tblTempVendorCDR_20' ) end [2025-07-03 23:25:19] Production.INFO: ProcessCDR(1,15408383,1,1,2) [2025-07-03 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15408383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15408383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-03 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15408383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15408383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-03 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408383', 'tblTempUsageDetail_20' ) start [2025-07-03 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15408383', 'tblTempUsageDetail_20' ) end [2025-07-03 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-03 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-03 23:25:26] Production.INFO: ==17273== Releasing lock... [2025-07-03 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-03 23:25:26] Production.INFO: 44.25 MB #Memory Used#