[2025-12-02 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 21:00:07 [end_date_ymd] => 2025-12-02 00:00:07 [RateCDR] => 1 ) [2025-12-02 00:00:07] 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-12-01 21:00:07' and `end` < '2025-12-02 00:00:07' 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-12-02 00:00:20] Production.INFO: count ==947 [2025-12-02 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-01 21:00:07 - End Time 2025-12-02 00:00:07 [2025-12-02 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303838', 'tblTempUsageDetail_20' ) start [2025-12-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303838', 'tblTempUsageDetail_20' ) end [2025-12-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303838', 'tblTempVendorCDR_20' ) start [2025-12-02 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303838', 'tblTempVendorCDR_20' ) end [2025-12-02 00:00:20] Production.INFO: ProcessCDR(1,16303838,1,1,2) [2025-12-02 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16303838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 00:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16303838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 00:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16303838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 00:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16303838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303838', 'tblTempUsageDetail_20' ) start [2025-12-02 00:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303838', 'tblTempUsageDetail_20' ) end [2025-12-02 00:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-02 00:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-02 00:00:41] Production.INFO: ==21116== Releasing lock... [2025-12-02 00:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 00:00:41] Production.INFO: 38.25 MB #Memory Used# [2025-12-02 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 22:00:06 [end_date_ymd] => 2025-12-02 01:00:06 [RateCDR] => 1 ) [2025-12-02 01:00: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-12-01 22:00:06' and `end` < '2025-12-02 01:00: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-12-02 01:00:18] Production.INFO: count ==569 [2025-12-02 01:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 22:00:06 - End Time 2025-12-02 01:00:06 [2025-12-02 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304084', 'tblTempUsageDetail_20' ) start [2025-12-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304084', 'tblTempUsageDetail_20' ) end [2025-12-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304084', 'tblTempVendorCDR_20' ) start [2025-12-02 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304084', 'tblTempVendorCDR_20' ) end [2025-12-02 01:00:18] Production.INFO: ProcessCDR(1,16304084,1,1,2) [2025-12-02 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16304084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16304084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16304084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16304084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304084', 'tblTempUsageDetail_20' ) start [2025-12-02 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304084', 'tblTempUsageDetail_20' ) end [2025-12-02 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-02 01:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-02 01:00:28] Production.INFO: ==25571== Releasing lock... [2025-12-02 01:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 01:00:28] Production.INFO: 32.75 MB #Memory Used# [2025-12-02 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 23:00:07 [end_date_ymd] => 2025-12-02 02:00:07 [RateCDR] => 1 ) [2025-12-02 02:00:07] 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-12-01 23:00:07' and `end` < '2025-12-02 02:00:07' 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-12-02 02:00:19] Production.INFO: count ==581 [2025-12-02 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-01 23:00:07 - End Time 2025-12-02 02:00:07 [2025-12-02 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304332', 'tblTempUsageDetail_20' ) start [2025-12-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304332', 'tblTempUsageDetail_20' ) end [2025-12-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304332', 'tblTempVendorCDR_20' ) start [2025-12-02 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304332', 'tblTempVendorCDR_20' ) end [2025-12-02 02:00:19] Production.INFO: ProcessCDR(1,16304332,1,1,2) [2025-12-02 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16304332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16304332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16304332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16304332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304332', 'tblTempUsageDetail_20' ) start [2025-12-02 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304332', 'tblTempUsageDetail_20' ) end [2025-12-02 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-02 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-02 02:00:30] Production.INFO: ==30046== Releasing lock... [2025-12-02 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 02:00:30] Production.INFO: 33.25 MB #Memory Used# [2025-12-02 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 00:00:06 [end_date_ymd] => 2025-12-02 03:00:06 [RateCDR] => 1 ) [2025-12-02 03:00: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-12-02 00:00:06' and `end` < '2025-12-02 03:00: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-12-02 03:00:18] Production.INFO: count ==484 [2025-12-02 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 00:00:06 - End Time 2025-12-02 03:00:06 [2025-12-02 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304579', 'tblTempUsageDetail_20' ) start [2025-12-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304579', 'tblTempUsageDetail_20' ) end [2025-12-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304579', 'tblTempVendorCDR_20' ) start [2025-12-02 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304579', 'tblTempVendorCDR_20' ) end [2025-12-02 03:00:18] Production.INFO: ProcessCDR(1,16304579,1,1,2) [2025-12-02 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16304579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16304579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16304579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16304579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304579', 'tblTempUsageDetail_20' ) start [2025-12-02 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304579', 'tblTempUsageDetail_20' ) end [2025-12-02 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-02 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-02 03:00:29] Production.INFO: ==2413== Releasing lock... [2025-12-02 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 03:00:29] Production.INFO: 32 MB #Memory Used# [2025-12-02 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 01:00:07 [end_date_ymd] => 2025-12-02 04:00:07 [RateCDR] => 1 ) [2025-12-02 04:00:07] 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-12-02 01:00:07' and `end` < '2025-12-02 04:00:07' 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-12-02 04:00:19] Production.INFO: count ==321 [2025-12-02 04:00:19] Production.ERROR: pbx CDR StartTime 2025-12-02 01:00:07 - End Time 2025-12-02 04:00:07 [2025-12-02 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304827', 'tblTempUsageDetail_20' ) start [2025-12-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16304827', 'tblTempUsageDetail_20' ) end [2025-12-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304827', 'tblTempVendorCDR_20' ) start [2025-12-02 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16304827', 'tblTempVendorCDR_20' ) end [2025-12-02 04:00:20] Production.INFO: ProcessCDR(1,16304827,1,1,2) [2025-12-02 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16304827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16304827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16304827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 04:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16304827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 04:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304827', 'tblTempUsageDetail_20' ) start [2025-12-02 04:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16304827', 'tblTempUsageDetail_20' ) end [2025-12-02 04:00:27] Production.ERROR: pbx prc_insertCDR start [2025-12-02 04:00:27] Production.ERROR: pbx prc_insertCDR end [2025-12-02 04:00:27] Production.INFO: ==6733== Releasing lock... [2025-12-02 04:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 04:00:27] Production.INFO: 31 MB #Memory Used# [2025-12-02 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 02:00:06 [end_date_ymd] => 2025-12-02 05:00:06 [RateCDR] => 1 ) [2025-12-02 05:00: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-12-02 02:00:06' and `end` < '2025-12-02 05:00: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-12-02 05:00:18] Production.INFO: count ==181 [2025-12-02 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 02:00:06 - End Time 2025-12-02 05:00:06 [2025-12-02 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305074', 'tblTempUsageDetail_20' ) start [2025-12-02 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305074', 'tblTempUsageDetail_20' ) end [2025-12-02 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305074', 'tblTempVendorCDR_20' ) start [2025-12-02 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305074', 'tblTempVendorCDR_20' ) end [2025-12-02 05:00:18] Production.INFO: ProcessCDR(1,16305074,1,1,2) [2025-12-02 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16305074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16305074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16305074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16305074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305074', 'tblTempUsageDetail_20' ) start [2025-12-02 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305074', 'tblTempUsageDetail_20' ) end [2025-12-02 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-02 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-02 05:00:28] Production.INFO: ==11413== Releasing lock... [2025-12-02 05:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 05:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-12-02 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 03:00:06 [end_date_ymd] => 2025-12-02 06:00:06 [RateCDR] => 1 ) [2025-12-02 06:00: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-12-02 03:00:06' and `end` < '2025-12-02 06:00: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-12-02 06:00:18] Production.INFO: count ==148 [2025-12-02 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 03:00:06 - End Time 2025-12-02 06:00:06 [2025-12-02 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305322', 'tblTempUsageDetail_20' ) start [2025-12-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305322', 'tblTempUsageDetail_20' ) end [2025-12-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305322', 'tblTempVendorCDR_20' ) start [2025-12-02 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305322', 'tblTempVendorCDR_20' ) end [2025-12-02 06:00:18] Production.INFO: ProcessCDR(1,16305322,1,1,2) [2025-12-02 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16305322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16305322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16305322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16305322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305322', 'tblTempUsageDetail_20' ) start [2025-12-02 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305322', 'tblTempUsageDetail_20' ) end [2025-12-02 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-02 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-02 06:00:28] Production.INFO: ==15936== Releasing lock... [2025-12-02 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 06:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-12-02 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 04:00:05 [end_date_ymd] => 2025-12-02 07:00:05 [RateCDR] => 1 ) [2025-12-02 07:00: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-12-02 04:00:05' and `end` < '2025-12-02 07:00: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-12-02 07:00:17] Production.INFO: count ==165 [2025-12-02 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-02 04:00:05 - End Time 2025-12-02 07:00:05 [2025-12-02 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305568', 'tblTempUsageDetail_20' ) start [2025-12-02 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305568', 'tblTempUsageDetail_20' ) end [2025-12-02 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305568', 'tblTempVendorCDR_20' ) start [2025-12-02 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305568', 'tblTempVendorCDR_20' ) end [2025-12-02 07:00:17] Production.INFO: ProcessCDR(1,16305568,1,1,2) [2025-12-02 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16305568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16305568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16305568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16305568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305568', 'tblTempUsageDetail_20' ) start [2025-12-02 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305568', 'tblTempUsageDetail_20' ) end [2025-12-02 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-12-02 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-12-02 07:00:27] Production.INFO: ==21017== Releasing lock... [2025-12-02 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 07:00:27] Production.INFO: 29.5 MB #Memory Used# [2025-12-02 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 05:00:06 [end_date_ymd] => 2025-12-02 08:00:06 [RateCDR] => 1 ) [2025-12-02 08:00: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-12-02 05:00:06' and `end` < '2025-12-02 08:00: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-12-02 08:00:18] Production.INFO: count ==171 [2025-12-02 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 05:00:06 - End Time 2025-12-02 08:00:06 [2025-12-02 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305816', 'tblTempUsageDetail_20' ) start [2025-12-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16305816', 'tblTempUsageDetail_20' ) end [2025-12-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305816', 'tblTempVendorCDR_20' ) start [2025-12-02 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16305816', 'tblTempVendorCDR_20' ) end [2025-12-02 08:00:18] Production.INFO: ProcessCDR(1,16305816,1,1,2) [2025-12-02 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16305816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16305816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16305816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16305816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305816', 'tblTempUsageDetail_20' ) start [2025-12-02 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16305816', 'tblTempUsageDetail_20' ) end [2025-12-02 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-02 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-02 08:00:28] Production.INFO: ==25912== Releasing lock... [2025-12-02 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 08:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-12-02 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 06:00:07 [end_date_ymd] => 2025-12-02 09:00:07 [RateCDR] => 1 ) [2025-12-02 09:00:07] 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-12-02 06:00:07' and `end` < '2025-12-02 09:00:07' 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-12-02 09:00:19] Production.INFO: count ==756 [2025-12-02 09:00:19] Production.ERROR: pbx CDR StartTime 2025-12-02 06:00:07 - End Time 2025-12-02 09:00:07 [2025-12-02 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306063', 'tblTempUsageDetail_20' ) start [2025-12-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306063', 'tblTempUsageDetail_20' ) end [2025-12-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306063', 'tblTempVendorCDR_20' ) start [2025-12-02 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306063', 'tblTempVendorCDR_20' ) end [2025-12-02 09:00:19] Production.INFO: ProcessCDR(1,16306063,1,1,2) [2025-12-02 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16306063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 09:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16306063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 09:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16306063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 09:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16306063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 09:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306063', 'tblTempUsageDetail_20' ) start [2025-12-02 09:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306063', 'tblTempUsageDetail_20' ) end [2025-12-02 09:00:32] Production.ERROR: pbx prc_insertCDR start [2025-12-02 09:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-02 09:00:32] Production.INFO: ==30600== Releasing lock... [2025-12-02 09:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 09:00:32] Production.INFO: 34 MB #Memory Used# [2025-12-02 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 07:00:06 [end_date_ymd] => 2025-12-02 10:00:06 [RateCDR] => 1 ) [2025-12-02 10:00: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-12-02 07:00:06' and `end` < '2025-12-02 10:00: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-12-02 10:00:20] Production.INFO: count ==2593 [2025-12-02 10:00:21] Production.ERROR: pbx CDR StartTime 2025-12-02 07:00:06 - End Time 2025-12-02 10:00:06 [2025-12-02 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306310', 'tblTempUsageDetail_20' ) start [2025-12-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306310', 'tblTempUsageDetail_20' ) end [2025-12-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306310', 'tblTempVendorCDR_20' ) start [2025-12-02 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306310', 'tblTempVendorCDR_20' ) end [2025-12-02 10:00:21] Production.INFO: ProcessCDR(1,16306310,1,1,2) [2025-12-02 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16306310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 10:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16306310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 10:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16306310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16306310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306310', 'tblTempUsageDetail_20' ) start [2025-12-02 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306310', 'tblTempUsageDetail_20' ) end [2025-12-02 10:00:34] Production.ERROR: pbx prc_insertCDR start [2025-12-02 10:00:36] Production.ERROR: pbx prc_insertCDR end [2025-12-02 10:00:36] Production.INFO: ==2813== Releasing lock... [2025-12-02 10:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 10:00:36] Production.INFO: 48.25 MB #Memory Used# [2025-12-02 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 08:00:06 [end_date_ymd] => 2025-12-02 11:00:06 [RateCDR] => 1 ) [2025-12-02 11:00: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-12-02 08:00:06' and `end` < '2025-12-02 11:00: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-12-02 11:00:20] Production.INFO: count ==4447 [2025-12-02 11:00:22] Production.ERROR: pbx CDR StartTime 2025-12-02 08:00:06 - End Time 2025-12-02 11:00:06 [2025-12-02 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306557', 'tblTempUsageDetail_20' ) start [2025-12-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306557', 'tblTempUsageDetail_20' ) end [2025-12-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306557', 'tblTempVendorCDR_20' ) start [2025-12-02 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306557', 'tblTempVendorCDR_20' ) end [2025-12-02 11:00:22] Production.INFO: ProcessCDR(1,16306557,1,1,2) [2025-12-02 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16306557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16306557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16306557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16306557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306557', 'tblTempUsageDetail_20' ) start [2025-12-02 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306557', 'tblTempUsageDetail_20' ) end [2025-12-02 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-12-02 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-02 11:00:37] Production.INFO: ==7293== Releasing lock... [2025-12-02 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 11:00:37] Production.INFO: 61.5 MB #Memory Used# [2025-12-02 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 09:00:06 [end_date_ymd] => 2025-12-02 12:00:06 [RateCDR] => 1 ) [2025-12-02 12:00: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-12-02 09:00:06' and `end` < '2025-12-02 12:00: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-12-02 12:00:20] Production.INFO: count ==5824 [2025-12-02 12:00:23] Production.ERROR: pbx CDR StartTime 2025-12-02 09:00:06 - End Time 2025-12-02 12:00:06 [2025-12-02 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306803', 'tblTempUsageDetail_20' ) start [2025-12-02 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16306803', 'tblTempUsageDetail_20' ) end [2025-12-02 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306803', 'tblTempVendorCDR_20' ) start [2025-12-02 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16306803', 'tblTempVendorCDR_20' ) end [2025-12-02 12:00:24] Production.INFO: ProcessCDR(1,16306803,1,1,2) [2025-12-02 12:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16306803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16306803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16306803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16306803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306803', 'tblTempUsageDetail_20' ) start [2025-12-02 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16306803', 'tblTempUsageDetail_20' ) end [2025-12-02 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-02 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-12-02 12:00:39] Production.INFO: ==12005== Releasing lock... [2025-12-02 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 12:00:39] Production.INFO: 71.75 MB #Memory Used# [2025-12-02 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 10:00:06 [end_date_ymd] => 2025-12-02 13:00:06 [RateCDR] => 1 ) [2025-12-02 13:00: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-12-02 10:00:06' and `end` < '2025-12-02 13:00: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-12-02 13:00:19] Production.INFO: count ==5657 [2025-12-02 13:00:22] Production.ERROR: pbx CDR StartTime 2025-12-02 10:00:06 - End Time 2025-12-02 13:00:06 [2025-12-02 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307051', 'tblTempUsageDetail_20' ) start [2025-12-02 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307051', 'tblTempUsageDetail_20' ) end [2025-12-02 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307051', 'tblTempVendorCDR_20' ) start [2025-12-02 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307051', 'tblTempVendorCDR_20' ) end [2025-12-02 13:00:23] Production.INFO: ProcessCDR(1,16307051,1,1,2) [2025-12-02 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16307051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16307051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16307051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16307051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307051', 'tblTempUsageDetail_20' ) start [2025-12-02 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307051', 'tblTempUsageDetail_20' ) end [2025-12-02 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-02 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-12-02 13:00:39] Production.INFO: ==16481== Releasing lock... [2025-12-02 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 13:00:39] Production.INFO: 70.5 MB #Memory Used# [2025-12-02 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 11:00:06 [end_date_ymd] => 2025-12-02 14:00:06 [RateCDR] => 1 ) [2025-12-02 14:00: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-12-02 11:00:06' and `end` < '2025-12-02 14:00: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-12-02 14:00:21] Production.INFO: count ==5422 [2025-12-02 14:00:23] Production.ERROR: pbx CDR StartTime 2025-12-02 11:00:06 - End Time 2025-12-02 14:00:06 [2025-12-02 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307297', 'tblTempUsageDetail_20' ) start [2025-12-02 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307297', 'tblTempUsageDetail_20' ) end [2025-12-02 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307297', 'tblTempVendorCDR_20' ) start [2025-12-02 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307297', 'tblTempVendorCDR_20' ) end [2025-12-02 14:00:24] Production.INFO: ProcessCDR(1,16307297,1,1,2) [2025-12-02 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16307297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 14:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16307297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 14:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16307297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 14:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16307297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307297', 'tblTempUsageDetail_20' ) start [2025-12-02 14:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307297', 'tblTempUsageDetail_20' ) end [2025-12-02 14:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-02 14:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-02 14:00:38] Production.INFO: ==21114== Releasing lock... [2025-12-02 14:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 14:00:38] Production.INFO: 68.75 MB #Memory Used# [2025-12-02 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 12:00:06 [end_date_ymd] => 2025-12-02 15:00:06 [RateCDR] => 1 ) [2025-12-02 15:00: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-12-02 12:00:06' and `end` < '2025-12-02 15:00: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-12-02 15:00:20] Production.INFO: count ==5369 [2025-12-02 15:00:22] Production.ERROR: pbx CDR StartTime 2025-12-02 12:00:06 - End Time 2025-12-02 15:00:06 [2025-12-02 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307545', 'tblTempUsageDetail_20' ) start [2025-12-02 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307545', 'tblTempUsageDetail_20' ) end [2025-12-02 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307545', 'tblTempVendorCDR_20' ) start [2025-12-02 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307545', 'tblTempVendorCDR_20' ) end [2025-12-02 15:00:23] Production.INFO: ProcessCDR(1,16307545,1,1,2) [2025-12-02 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16307545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16307545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16307545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 15:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16307545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307545', 'tblTempUsageDetail_20' ) start [2025-12-02 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307545', 'tblTempUsageDetail_20' ) end [2025-12-02 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-02 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-02 15:00:38] Production.INFO: ==25743== Releasing lock... [2025-12-02 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 15:00:38] Production.INFO: 68.5 MB #Memory Used# [2025-12-02 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 13:00:06 [end_date_ymd] => 2025-12-02 16:00:06 [RateCDR] => 1 ) [2025-12-02 16:00: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-12-02 13:00:06' and `end` < '2025-12-02 16:00: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-12-02 16:00:22] Production.INFO: count ==5752 [2025-12-02 16:00:24] Production.ERROR: pbx CDR StartTime 2025-12-02 13:00:06 - End Time 2025-12-02 16:00:06 [2025-12-02 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307792', 'tblTempUsageDetail_20' ) start [2025-12-02 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16307792', 'tblTempUsageDetail_20' ) end [2025-12-02 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307792', 'tblTempVendorCDR_20' ) start [2025-12-02 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16307792', 'tblTempVendorCDR_20' ) end [2025-12-02 16:00:25] Production.INFO: ProcessCDR(1,16307792,1,1,2) [2025-12-02 16:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16307792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 16:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16307792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 16:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16307792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16307792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307792', 'tblTempUsageDetail_20' ) start [2025-12-02 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16307792', 'tblTempUsageDetail_20' ) end [2025-12-02 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-02 16:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-02 16:00:40] Production.INFO: ==30160== Releasing lock... [2025-12-02 16:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 16:00:40] Production.INFO: 71.25 MB #Memory Used# [2025-12-02 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 14:00:06 [end_date_ymd] => 2025-12-02 17:00:06 [RateCDR] => 1 ) [2025-12-02 17:00: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-12-02 14:00:06' and `end` < '2025-12-02 17:00: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-12-02 17:00:20] Production.INFO: count ==5675 [2025-12-02 17:00:23] Production.ERROR: pbx CDR StartTime 2025-12-02 14:00:06 - End Time 2025-12-02 17:00:06 [2025-12-02 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308039', 'tblTempUsageDetail_20' ) start [2025-12-02 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308039', 'tblTempUsageDetail_20' ) end [2025-12-02 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308039', 'tblTempVendorCDR_20' ) start [2025-12-02 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308039', 'tblTempVendorCDR_20' ) end [2025-12-02 17:00:23] Production.INFO: ProcessCDR(1,16308039,1,1,2) [2025-12-02 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16308039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 17:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16308039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 17:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16308039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 17:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16308039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308039', 'tblTempUsageDetail_20' ) start [2025-12-02 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308039', 'tblTempUsageDetail_20' ) end [2025-12-02 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-02 17:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-02 17:00:38] Production.INFO: ==2752== Releasing lock... [2025-12-02 17:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 17:00:38] Production.INFO: 70.75 MB #Memory Used# [2025-12-02 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 15:00:06 [end_date_ymd] => 2025-12-02 18:00:06 [RateCDR] => 1 ) [2025-12-02 18:00: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-12-02 15:00:06' and `end` < '2025-12-02 18:00: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-12-02 18:00:19] Production.INFO: count ==4859 [2025-12-02 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-02 15:00:06 - End Time 2025-12-02 18:00:06 [2025-12-02 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308285', 'tblTempUsageDetail_20' ) start [2025-12-02 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308285', 'tblTempUsageDetail_20' ) end [2025-12-02 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308285', 'tblTempVendorCDR_20' ) start [2025-12-02 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308285', 'tblTempVendorCDR_20' ) end [2025-12-02 18:00:22] Production.INFO: ProcessCDR(1,16308285,1,1,2) [2025-12-02 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16308285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16308285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16308285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 18:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16308285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308285', 'tblTempUsageDetail_20' ) start [2025-12-02 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308285', 'tblTempUsageDetail_20' ) end [2025-12-02 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-02 18:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-02 18:00:35] Production.INFO: ==8830== Releasing lock... [2025-12-02 18:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 18:00:35] Production.INFO: 64.5 MB #Memory Used# [2025-12-02 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 16:00:06 [end_date_ymd] => 2025-12-02 19:00:06 [RateCDR] => 1 ) [2025-12-02 19:00: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-12-02 16:00:06' and `end` < '2025-12-02 19:00: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-12-02 19:00:19] Production.INFO: count ==3942 [2025-12-02 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-02 16:00:06 - End Time 2025-12-02 19:00:06 [2025-12-02 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308532', 'tblTempUsageDetail_20' ) start [2025-12-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308532', 'tblTempUsageDetail_20' ) end [2025-12-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308532', 'tblTempVendorCDR_20' ) start [2025-12-02 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308532', 'tblTempVendorCDR_20' ) end [2025-12-02 19:00:21] Production.INFO: ProcessCDR(1,16308532,1,1,2) [2025-12-02 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16308532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16308532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16308532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16308532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308532', 'tblTempUsageDetail_20' ) start [2025-12-02 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308532', 'tblTempUsageDetail_20' ) end [2025-12-02 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-02 19:00:33] Production.ERROR: pbx prc_insertCDR end [2025-12-02 19:00:33] Production.INFO: ==13419== Releasing lock... [2025-12-02 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 19:00:33] Production.INFO: 57.5 MB #Memory Used# [2025-12-02 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 17:00:07 [end_date_ymd] => 2025-12-02 20:00:07 [RateCDR] => 1 ) [2025-12-02 20:00:07] 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-12-02 17:00:07' and `end` < '2025-12-02 20:00:07' 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-12-02 20:00:19] Production.INFO: count ==3003 [2025-12-02 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-02 17:00:07 - End Time 2025-12-02 20:00:07 [2025-12-02 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308779', 'tblTempUsageDetail_20' ) start [2025-12-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16308779', 'tblTempUsageDetail_20' ) end [2025-12-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308779', 'tblTempVendorCDR_20' ) start [2025-12-02 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16308779', 'tblTempVendorCDR_20' ) end [2025-12-02 20:00:20] Production.INFO: ProcessCDR(1,16308779,1,1,2) [2025-12-02 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16308779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16308779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16308779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16308779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308779', 'tblTempUsageDetail_20' ) start [2025-12-02 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16308779', 'tblTempUsageDetail_20' ) end [2025-12-02 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-02 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-02 20:00:31] Production.INFO: ==17704== Releasing lock... [2025-12-02 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 20:00:31] Production.INFO: 50.75 MB #Memory Used# [2025-12-02 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 18:00:06 [end_date_ymd] => 2025-12-02 21:00:06 [RateCDR] => 1 ) [2025-12-02 21:00: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-12-02 18:00:06' and `end` < '2025-12-02 21:00: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-12-02 21:00:18] Production.INFO: count ==2150 [2025-12-02 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-02 18:00:06 - End Time 2025-12-02 21:00:06 [2025-12-02 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309026', 'tblTempUsageDetail_20' ) start [2025-12-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309026', 'tblTempUsageDetail_20' ) end [2025-12-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309026', 'tblTempVendorCDR_20' ) start [2025-12-02 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309026', 'tblTempVendorCDR_20' ) end [2025-12-02 21:00:19] Production.INFO: ProcessCDR(1,16309026,1,1,2) [2025-12-02 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16309026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16309026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16309026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16309026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309026', 'tblTempUsageDetail_20' ) start [2025-12-02 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309026', 'tblTempUsageDetail_20' ) end [2025-12-02 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-02 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-02 21:00:30] Production.INFO: ==23049== Releasing lock... [2025-12-02 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 21:00:30] Production.INFO: 44.25 MB #Memory Used# [2025-12-02 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 19:00:07 [end_date_ymd] => 2025-12-02 22:00:07 [RateCDR] => 1 ) [2025-12-02 22:00:07] 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-12-02 19:00:07' and `end` < '2025-12-02 22:00:07' 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-12-02 22:00:19] Production.INFO: count ==1362 [2025-12-02 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-02 19:00:07 - End Time 2025-12-02 22:00:07 [2025-12-02 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309272', 'tblTempUsageDetail_20' ) start [2025-12-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309272', 'tblTempUsageDetail_20' ) end [2025-12-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309272', 'tblTempVendorCDR_20' ) start [2025-12-02 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309272', 'tblTempVendorCDR_20' ) end [2025-12-02 22:00:20] Production.INFO: ProcessCDR(1,16309272,1,1,2) [2025-12-02 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16309272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16309272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16309272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16309272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309272', 'tblTempUsageDetail_20' ) start [2025-12-02 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309272', 'tblTempUsageDetail_20' ) end [2025-12-02 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-02 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-02 22:00:30] Production.INFO: ==27693== Releasing lock... [2025-12-02 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 22:00:30] Production.INFO: 38.5 MB #Memory Used# [2025-12-02 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-02 20:00:06 [end_date_ymd] => 2025-12-02 23:00:06 [RateCDR] => 1 ) [2025-12-02 23:00: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-12-02 20:00:06' and `end` < '2025-12-02 23:00: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-12-02 23:00:18] Production.INFO: count ==966 [2025-12-02 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-02 20:00:06 - End Time 2025-12-02 23:00:06 [2025-12-02 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309520', 'tblTempUsageDetail_20' ) start [2025-12-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16309520', 'tblTempUsageDetail_20' ) end [2025-12-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309520', 'tblTempVendorCDR_20' ) start [2025-12-02 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16309520', 'tblTempVendorCDR_20' ) end [2025-12-02 23:00:18] Production.INFO: ProcessCDR(1,16309520,1,1,2) [2025-12-02 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16309520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16309520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-02 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16309520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16309520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-02 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309520', 'tblTempUsageDetail_20' ) start [2025-12-02 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16309520', 'tblTempUsageDetail_20' ) end [2025-12-02 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-02 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-02 23:00:29] Production.INFO: ==32079== Releasing lock... [2025-12-02 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-02 23:00:29] Production.INFO: 35.5 MB #Memory Used#