[2025-07-27 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 21:25:05 [end_date_ymd] => 2025-07-27 00:25:05 [RateCDR] => 1 ) [2025-07-27 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-26 21:25:05' and `end` < '2025-07-27 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 00:25:17] Production.INFO: count ==616 [2025-07-27 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 21:25:05 - End Time 2025-07-27 00:25:05 [2025-07-27 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544951', 'tblTempUsageDetail_20' ) start [2025-07-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544951', 'tblTempUsageDetail_20' ) end [2025-07-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544951', 'tblTempVendorCDR_20' ) start [2025-07-27 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544951', 'tblTempVendorCDR_20' ) end [2025-07-27 00:25:18] Production.INFO: ProcessCDR(1,15544951,1,1,2) [2025-07-27 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15544951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15544951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15544951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15544951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544951', 'tblTempUsageDetail_20' ) start [2025-07-27 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544951', 'tblTempUsageDetail_20' ) end [2025-07-27 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 00:25:26] Production.INFO: ==15403== Releasing lock... [2025-07-27 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 00:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-07-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 22:25:05 [end_date_ymd] => 2025-07-27 01:25:05 [RateCDR] => 1 ) [2025-07-27 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-26 22:25:05' and `end` < '2025-07-27 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-27 01:25:17] Production.INFO: count ==612 [2025-07-27 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 22:25:05 - End Time 2025-07-27 01:25:05 [2025-07-27 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545198', 'tblTempUsageDetail_20' ) start [2025-07-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545198', 'tblTempUsageDetail_20' ) end [2025-07-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545198', 'tblTempVendorCDR_20' ) start [2025-07-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545198', 'tblTempVendorCDR_20' ) end [2025-07-27 01:25:17] Production.INFO: ProcessCDR(1,15545198,1,1,2) [2025-07-27 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15545198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15545198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15545198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15545198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545198', 'tblTempUsageDetail_20' ) start [2025-07-27 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545198', 'tblTempUsageDetail_20' ) end [2025-07-27 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 01:25:24] Production.INFO: ==20004== Releasing lock... [2025-07-27 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 01:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-07-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 23:25:05 [end_date_ymd] => 2025-07-27 02:25:05 [RateCDR] => 1 ) [2025-07-27 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-26 23:25:05' and `end` < '2025-07-27 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-27 02:25:17] Production.INFO: count ==601 [2025-07-27 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 23:25:05 - End Time 2025-07-27 02:25:05 [2025-07-27 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545444', 'tblTempUsageDetail_20' ) start [2025-07-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545444', 'tblTempUsageDetail_20' ) end [2025-07-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545444', 'tblTempVendorCDR_20' ) start [2025-07-27 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545444', 'tblTempVendorCDR_20' ) end [2025-07-27 02:25:18] Production.INFO: ProcessCDR(1,15545444,1,1,2) [2025-07-27 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15545444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15545444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15545444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15545444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545444', 'tblTempUsageDetail_20' ) start [2025-07-27 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545444', 'tblTempUsageDetail_20' ) end [2025-07-27 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-27 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-27 02:25:25] Production.INFO: ==24456== Releasing lock... [2025-07-27 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-07-27 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 00:25:06 [end_date_ymd] => 2025-07-27 03:25:06 [RateCDR] => 1 ) [2025-07-27 03: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-27 00:25:06' and `end` < '2025-07-27 03: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-27 03:25:18] Production.INFO: count ==528 [2025-07-27 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 00:25:06 - End Time 2025-07-27 03:25:06 [2025-07-27 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545692', 'tblTempUsageDetail_20' ) start [2025-07-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545692', 'tblTempUsageDetail_20' ) end [2025-07-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545692', 'tblTempVendorCDR_20' ) start [2025-07-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545692', 'tblTempVendorCDR_20' ) end [2025-07-27 03:25:18] Production.INFO: ProcessCDR(1,15545692,1,1,2) [2025-07-27 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15545692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15545692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15545692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15545692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545692', 'tblTempUsageDetail_20' ) start [2025-07-27 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545692', 'tblTempUsageDetail_20' ) end [2025-07-27 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-27 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 03:25:26] Production.INFO: ==28712== Releasing lock... [2025-07-27 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 03:25:26] Production.INFO: 33 MB #Memory Used# [2025-07-27 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 01:25:06 [end_date_ymd] => 2025-07-27 04:25:06 [RateCDR] => 1 ) [2025-07-27 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-27 01:25:06' and `end` < '2025-07-27 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-27 04:25:18] Production.INFO: count ==429 [2025-07-27 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 01:25:06 - End Time 2025-07-27 04:25:06 [2025-07-27 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545940', 'tblTempUsageDetail_20' ) start [2025-07-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15545940', 'tblTempUsageDetail_20' ) end [2025-07-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545940', 'tblTempVendorCDR_20' ) start [2025-07-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15545940', 'tblTempVendorCDR_20' ) end [2025-07-27 04:25:18] Production.INFO: ProcessCDR(1,15545940,1,1,2) [2025-07-27 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15545940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15545940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15545940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15545940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545940', 'tblTempUsageDetail_20' ) start [2025-07-27 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15545940', 'tblTempUsageDetail_20' ) end [2025-07-27 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-27 04:25:25] Production.INFO: ==588== Releasing lock... [2025-07-27 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 04:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-07-27 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 02:25:06 [end_date_ymd] => 2025-07-27 05:25:06 [RateCDR] => 1 ) [2025-07-27 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 02:25:06' and `end` < '2025-07-27 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 05:25:18] Production.INFO: count ==267 [2025-07-27 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 02:25:06 - End Time 2025-07-27 05:25:06 [2025-07-27 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546188', 'tblTempUsageDetail_20' ) start [2025-07-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546188', 'tblTempUsageDetail_20' ) end [2025-07-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546188', 'tblTempVendorCDR_20' ) start [2025-07-27 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546188', 'tblTempVendorCDR_20' ) end [2025-07-27 05:25:18] Production.INFO: ProcessCDR(1,15546188,1,1,2) [2025-07-27 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15546188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15546188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15546188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15546188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546188', 'tblTempUsageDetail_20' ) start [2025-07-27 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546188', 'tblTempUsageDetail_20' ) end [2025-07-27 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 05:25:24] Production.INFO: ==5305== Releasing lock... [2025-07-27 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 05:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-07-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 03:25:05 [end_date_ymd] => 2025-07-27 06:25:05 [RateCDR] => 1 ) [2025-07-27 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 03:25:05' and `end` < '2025-07-27 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 06:25:17] Production.INFO: count ==205 [2025-07-27 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 03:25:05 - End Time 2025-07-27 06:25:05 [2025-07-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546435', 'tblTempUsageDetail_20' ) start [2025-07-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546435', 'tblTempUsageDetail_20' ) end [2025-07-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546435', 'tblTempVendorCDR_20' ) start [2025-07-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546435', 'tblTempVendorCDR_20' ) end [2025-07-27 06:25:17] Production.INFO: ProcessCDR(1,15546435,1,1,2) [2025-07-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15546435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15546435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15546435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15546435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546435', 'tblTempUsageDetail_20' ) start [2025-07-27 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546435', 'tblTempUsageDetail_20' ) end [2025-07-27 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 06:25:24] Production.INFO: ==9697== Releasing lock... [2025-07-27 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 06:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-07-27 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 04:25:05 [end_date_ymd] => 2025-07-27 07:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 04:25:05' and `end` < '2025-07-27 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-27 07:25:18] Production.INFO: count ==163 [2025-07-27 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 04:25:05 - End Time 2025-07-27 07:25:05 [2025-07-27 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546682', 'tblTempUsageDetail_20' ) start [2025-07-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546682', 'tblTempUsageDetail_20' ) end [2025-07-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546682', 'tblTempVendorCDR_20' ) start [2025-07-27 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546682', 'tblTempVendorCDR_20' ) end [2025-07-27 07:25:18] Production.INFO: ProcessCDR(1,15546682,1,1,2) [2025-07-27 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15546682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15546682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15546682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15546682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546682', 'tblTempUsageDetail_20' ) start [2025-07-27 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546682', 'tblTempUsageDetail_20' ) end [2025-07-27 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 07:25:24] Production.INFO: ==14106== Releasing lock... [2025-07-27 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-27 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 05:25:05 [end_date_ymd] => 2025-07-27 08:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 05:25:05' and `end` < '2025-07-27 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-27 08:25:17] Production.INFO: count ==151 [2025-07-27 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 05:25:05 - End Time 2025-07-27 08:25:05 [2025-07-27 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546929', 'tblTempUsageDetail_20' ) start [2025-07-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15546929', 'tblTempUsageDetail_20' ) end [2025-07-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546929', 'tblTempVendorCDR_20' ) start [2025-07-27 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15546929', 'tblTempVendorCDR_20' ) end [2025-07-27 08:25:17] Production.INFO: ProcessCDR(1,15546929,1,1,2) [2025-07-27 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15546929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15546929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15546929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15546929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546929', 'tblTempUsageDetail_20' ) start [2025-07-27 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15546929', 'tblTempUsageDetail_20' ) end [2025-07-27 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 08:25:24] Production.INFO: ==18604== Releasing lock... [2025-07-27 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-27 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 06:25:04 [end_date_ymd] => 2025-07-27 09:25:04 [RateCDR] => 1 ) [2025-07-27 09: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-27 06:25:04' and `end` < '2025-07-27 09: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-27 09:25:16] Production.INFO: count ==148 [2025-07-27 09:25:16] Production.ERROR: pbx CDR StartTime 2025-07-27 06:25:04 - End Time 2025-07-27 09:25:04 [2025-07-27 09:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547176', 'tblTempUsageDetail_20' ) start [2025-07-27 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547176', 'tblTempUsageDetail_20' ) end [2025-07-27 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547176', 'tblTempVendorCDR_20' ) start [2025-07-27 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547176', 'tblTempVendorCDR_20' ) end [2025-07-27 09:25:16] Production.INFO: ProcessCDR(1,15547176,1,1,2) [2025-07-27 09:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15547176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15547176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15547176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15547176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547176', 'tblTempUsageDetail_20' ) start [2025-07-27 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547176', 'tblTempUsageDetail_20' ) end [2025-07-27 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-27 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-27 09:25:23] Production.INFO: ==23203== Releasing lock... [2025-07-27 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 09:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-27 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 07:25:05 [end_date_ymd] => 2025-07-27 10:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 07:25:05' and `end` < '2025-07-27 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-27 10:25:17] Production.INFO: count ==260 [2025-07-27 10:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 07:25:05 - End Time 2025-07-27 10:25:05 [2025-07-27 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547423', 'tblTempUsageDetail_20' ) start [2025-07-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547423', 'tblTempUsageDetail_20' ) end [2025-07-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547423', 'tblTempVendorCDR_20' ) start [2025-07-27 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547423', 'tblTempVendorCDR_20' ) end [2025-07-27 10:25:17] Production.INFO: ProcessCDR(1,15547423,1,1,2) [2025-07-27 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15547423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15547423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15547423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15547423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547423', 'tblTempUsageDetail_20' ) start [2025-07-27 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547423', 'tblTempUsageDetail_20' ) end [2025-07-27 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-27 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 10:25:24] Production.INFO: ==27697== Releasing lock... [2025-07-27 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 10:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 08:25:05 [end_date_ymd] => 2025-07-27 11:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 08:25:05' and `end` < '2025-07-27 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-27 11:25:17] Production.INFO: count ==442 [2025-07-27 11:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 08:25:05 - End Time 2025-07-27 11:25:05 [2025-07-27 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547670', 'tblTempUsageDetail_20' ) start [2025-07-27 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547670', 'tblTempUsageDetail_20' ) end [2025-07-27 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547670', 'tblTempVendorCDR_20' ) start [2025-07-27 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547670', 'tblTempVendorCDR_20' ) end [2025-07-27 11:25:17] Production.INFO: ProcessCDR(1,15547670,1,1,2) [2025-07-27 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15547670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15547670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15547670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15547670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547670', 'tblTempUsageDetail_20' ) start [2025-07-27 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547670', 'tblTempUsageDetail_20' ) end [2025-07-27 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 11:25:24] Production.INFO: ==32289== Releasing lock... [2025-07-27 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 11:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 09:25:05 [end_date_ymd] => 2025-07-27 12:25:05 [RateCDR] => 1 ) [2025-07-27 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 09:25:05' and `end` < '2025-07-27 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 12:25:17] Production.INFO: count ==669 [2025-07-27 12:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 09:25:05 - End Time 2025-07-27 12:25:05 [2025-07-27 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547917', 'tblTempUsageDetail_20' ) start [2025-07-27 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15547917', 'tblTempUsageDetail_20' ) end [2025-07-27 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547917', 'tblTempVendorCDR_20' ) start [2025-07-27 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15547917', 'tblTempVendorCDR_20' ) end [2025-07-27 12:25:18] Production.INFO: ProcessCDR(1,15547917,1,1,2) [2025-07-27 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15547917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15547917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15547917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15547917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547917', 'tblTempUsageDetail_20' ) start [2025-07-27 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15547917', 'tblTempUsageDetail_20' ) end [2025-07-27 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 12:25:24] Production.INFO: ==5400== Releasing lock... [2025-07-27 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 12:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-07-27 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 10:25:05 [end_date_ymd] => 2025-07-27 13:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 10:25:05' and `end` < '2025-07-27 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-27 13:25:17] Production.INFO: count ==904 [2025-07-27 13:25:17] Production.ERROR: pbx CDR StartTime 2025-07-27 10:25:05 - End Time 2025-07-27 13:25:05 [2025-07-27 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548164', 'tblTempUsageDetail_20' ) start [2025-07-27 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548164', 'tblTempUsageDetail_20' ) end [2025-07-27 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548164', 'tblTempVendorCDR_20' ) start [2025-07-27 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548164', 'tblTempVendorCDR_20' ) end [2025-07-27 13:25:17] Production.INFO: ProcessCDR(1,15548164,1,1,2) [2025-07-27 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15548164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15548164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15548164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15548164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548164', 'tblTempUsageDetail_20' ) start [2025-07-27 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548164', 'tblTempUsageDetail_20' ) end [2025-07-27 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-27 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-27 13:25:24] Production.INFO: ==9802== Releasing lock... [2025-07-27 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 13:25:24] Production.INFO: 34.75 MB #Memory Used# [2025-07-27 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 11:25:05 [end_date_ymd] => 2025-07-27 14:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 11:25:05' and `end` < '2025-07-27 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-27 14:25:18] Production.INFO: count ==1139 [2025-07-27 14:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 11:25:05 - End Time 2025-07-27 14:25:05 [2025-07-27 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548411', 'tblTempUsageDetail_20' ) start [2025-07-27 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548411', 'tblTempUsageDetail_20' ) end [2025-07-27 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548411', 'tblTempVendorCDR_20' ) start [2025-07-27 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548411', 'tblTempVendorCDR_20' ) end [2025-07-27 14:25:19] Production.INFO: ProcessCDR(1,15548411,1,1,2) [2025-07-27 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15548411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15548411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15548411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15548411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548411', 'tblTempUsageDetail_20' ) start [2025-07-27 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548411', 'tblTempUsageDetail_20' ) end [2025-07-27 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-27 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 14:25:26] Production.INFO: ==14474== Releasing lock... [2025-07-27 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 14:25:26] Production.INFO: 37 MB #Memory Used# [2025-07-27 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 12:25:06 [end_date_ymd] => 2025-07-27 15:25:06 [RateCDR] => 1 ) [2025-07-27 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 12:25:06' and `end` < '2025-07-27 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 15:25:18] Production.INFO: count ==1324 [2025-07-27 15:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 12:25:06 - End Time 2025-07-27 15:25:06 [2025-07-27 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548658', 'tblTempUsageDetail_20' ) start [2025-07-27 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548658', 'tblTempUsageDetail_20' ) end [2025-07-27 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548658', 'tblTempVendorCDR_20' ) start [2025-07-27 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548658', 'tblTempVendorCDR_20' ) end [2025-07-27 15:25:19] Production.INFO: ProcessCDR(1,15548658,1,1,2) [2025-07-27 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15548658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15548658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15548658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15548658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548658', 'tblTempUsageDetail_20' ) start [2025-07-27 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548658', 'tblTempUsageDetail_20' ) end [2025-07-27 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-27 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-27 15:25:27] Production.INFO: ==18888== Releasing lock... [2025-07-27 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 15:25:27] Production.INFO: 38 MB #Memory Used# [2025-07-27 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 13:25:06 [end_date_ymd] => 2025-07-27 16:25:06 [RateCDR] => 1 ) [2025-07-27 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 13:25:06' and `end` < '2025-07-27 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 16:25:18] Production.INFO: count ==1376 [2025-07-27 16:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 13:25:06 - End Time 2025-07-27 16:25:06 [2025-07-27 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548905', 'tblTempUsageDetail_20' ) start [2025-07-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15548905', 'tblTempUsageDetail_20' ) end [2025-07-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548905', 'tblTempVendorCDR_20' ) start [2025-07-27 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15548905', 'tblTempVendorCDR_20' ) end [2025-07-27 16:25:19] Production.INFO: ProcessCDR(1,15548905,1,1,2) [2025-07-27 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15548905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15548905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15548905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15548905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548905', 'tblTempUsageDetail_20' ) start [2025-07-27 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15548905', 'tblTempUsageDetail_20' ) end [2025-07-27 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-27 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 16:25:26] Production.INFO: ==23608== Releasing lock... [2025-07-27 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 16:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-07-27 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 14:25:05 [end_date_ymd] => 2025-07-27 17:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 14:25:05' and `end` < '2025-07-27 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-27 17:25:17] Production.INFO: count ==1433 [2025-07-27 17:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 14:25:05 - End Time 2025-07-27 17:25:05 [2025-07-27 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549152', 'tblTempUsageDetail_20' ) start [2025-07-27 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549152', 'tblTempUsageDetail_20' ) end [2025-07-27 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549152', 'tblTempVendorCDR_20' ) start [2025-07-27 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549152', 'tblTempVendorCDR_20' ) end [2025-07-27 17:25:18] Production.INFO: ProcessCDR(1,15549152,1,1,2) [2025-07-27 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15549152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15549152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15549152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15549152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549152', 'tblTempUsageDetail_20' ) start [2025-07-27 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549152', 'tblTempUsageDetail_20' ) end [2025-07-27 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-27 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 17:25:26] Production.INFO: ==27855== Releasing lock... [2025-07-27 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 17:25:26] Production.INFO: 39 MB #Memory Used# [2025-07-27 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 15:25:05 [end_date_ymd] => 2025-07-27 18:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 15:25:05' and `end` < '2025-07-27 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-27 18:25:18] Production.INFO: count ==1557 [2025-07-27 18:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 15:25:05 - End Time 2025-07-27 18:25:05 [2025-07-27 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549399', 'tblTempUsageDetail_20' ) start [2025-07-27 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549399', 'tblTempUsageDetail_20' ) end [2025-07-27 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549399', 'tblTempVendorCDR_20' ) start [2025-07-27 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549399', 'tblTempVendorCDR_20' ) end [2025-07-27 18:25:19] Production.INFO: ProcessCDR(1,15549399,1,1,2) [2025-07-27 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15549399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15549399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15549399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 18:25:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15549399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 18:25:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549399', 'tblTempUsageDetail_20' ) start [2025-07-27 18:25:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549399', 'tblTempUsageDetail_20' ) end [2025-07-27 18:25:56] Production.ERROR: pbx prc_insertCDR start [2025-07-27 18:25:57] Production.ERROR: pbx prc_insertCDR end [2025-07-27 18:25:58] Production.INFO: ==32531== Releasing lock... [2025-07-27 18:25:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 18:25:58] Production.INFO: 39.75 MB #Memory Used# [2025-07-27 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 16:25:05 [end_date_ymd] => 2025-07-27 19:25:05 [RateCDR] => 1 ) [2025-07-27 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-27 16:25:05' and `end` < '2025-07-27 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-27 19:25:18] Production.INFO: count ==1590 [2025-07-27 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 16:25:05 - End Time 2025-07-27 19:25:05 [2025-07-27 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549642', 'tblTempUsageDetail_20' ) start [2025-07-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549642', 'tblTempUsageDetail_20' ) end [2025-07-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549642', 'tblTempVendorCDR_20' ) start [2025-07-27 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549642', 'tblTempVendorCDR_20' ) end [2025-07-27 19:25:18] Production.INFO: ProcessCDR(1,15549642,1,1,2) [2025-07-27 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15549642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15549642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15549642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15549642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549642', 'tblTempUsageDetail_20' ) start [2025-07-27 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549642', 'tblTempUsageDetail_20' ) end [2025-07-27 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-27 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 19:25:26] Production.INFO: ==4897== Releasing lock... [2025-07-27 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 19:25:26] Production.INFO: 40 MB #Memory Used# [2025-07-27 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 17:25:06 [end_date_ymd] => 2025-07-27 20:25:06 [RateCDR] => 1 ) [2025-07-27 20: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-27 17:25:06' and `end` < '2025-07-27 20: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-27 20:25:18] Production.INFO: count ==2602 [2025-07-27 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 17:25:06 - End Time 2025-07-27 20:25:06 [2025-07-27 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549889', 'tblTempUsageDetail_20' ) start [2025-07-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15549889', 'tblTempUsageDetail_20' ) end [2025-07-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549889', 'tblTempVendorCDR_20' ) start [2025-07-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15549889', 'tblTempVendorCDR_20' ) end [2025-07-27 20:25:19] Production.INFO: ProcessCDR(1,15549889,1,1,2) [2025-07-27 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15549889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15549889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15549889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15549889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549889', 'tblTempUsageDetail_20' ) start [2025-07-27 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15549889', 'tblTempUsageDetail_20' ) end [2025-07-27 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-27 20:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-27 20:25:31] Production.INFO: ==9409== Releasing lock... [2025-07-27 20:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 20:25:31] Production.INFO: 48.25 MB #Memory Used# [2025-07-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 18:25:05 [end_date_ymd] => 2025-07-27 21:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 18:25:05' and `end` < '2025-07-27 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-27 21:25:18] Production.INFO: count ==2383 [2025-07-27 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-27 18:25:05 - End Time 2025-07-27 21:25:05 [2025-07-27 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550136', 'tblTempUsageDetail_20' ) start [2025-07-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550136', 'tblTempUsageDetail_20' ) end [2025-07-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550136', 'tblTempVendorCDR_20' ) start [2025-07-27 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550136', 'tblTempVendorCDR_20' ) end [2025-07-27 21:25:19] Production.INFO: ProcessCDR(1,15550136,1,1,2) [2025-07-27 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15550136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15550136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15550136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15550136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550136', 'tblTempUsageDetail_20' ) start [2025-07-27 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550136', 'tblTempUsageDetail_20' ) end [2025-07-27 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-27 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-27 21:25:27] Production.INFO: ==13733== Releasing lock... [2025-07-27 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 21:25:27] Production.INFO: 46.25 MB #Memory Used# [2025-07-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 19:25:05 [end_date_ymd] => 2025-07-27 22:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 19:25:05' and `end` < '2025-07-27 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-27 22:25:18] Production.INFO: count ==2203 [2025-07-27 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-27 19:25:05 - End Time 2025-07-27 22:25:05 [2025-07-27 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550383', 'tblTempUsageDetail_20' ) start [2025-07-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550383', 'tblTempUsageDetail_20' ) end [2025-07-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550383', 'tblTempVendorCDR_20' ) start [2025-07-27 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550383', 'tblTempVendorCDR_20' ) end [2025-07-27 22:25:19] Production.INFO: ProcessCDR(1,15550383,1,1,2) [2025-07-27 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15550383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15550383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15550383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15550383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550383', 'tblTempUsageDetail_20' ) start [2025-07-27 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550383', 'tblTempUsageDetail_20' ) end [2025-07-27 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-27 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-27 22:25:26] Production.INFO: ==18116== Releasing lock... [2025-07-27 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 22:25:26] Production.INFO: 44.75 MB #Memory Used# [2025-07-27 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-27 20:25:05 [end_date_ymd] => 2025-07-27 23:25:05 [RateCDR] => 1 ) [2025-07-27 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-27 20:25:05' and `end` < '2025-07-27 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-27 23:25:18] Production.INFO: count ==4055 [2025-07-27 23:25:20] Production.ERROR: pbx CDR StartTime 2025-07-27 20:25:05 - End Time 2025-07-27 23:25:05 [2025-07-27 23:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-27 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550630', 'tblTempUsageDetail_20' ) start [2025-07-27 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15550630', 'tblTempUsageDetail_20' ) end [2025-07-27 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550630', 'tblTempVendorCDR_20' ) start [2025-07-27 23:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15550630', 'tblTempVendorCDR_20' ) end [2025-07-27 23:25:20] Production.INFO: ProcessCDR(1,15550630,1,1,2) [2025-07-27 23:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15550630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15550630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-27 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15550630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 23:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15550630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-27 23:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550630', 'tblTempUsageDetail_20' ) start [2025-07-27 23:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15550630', 'tblTempUsageDetail_20' ) end [2025-07-27 23:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-27 23:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-27 23:25:31] Production.INFO: ==22509== Releasing lock... [2025-07-27 23:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-27 23:25:31] Production.INFO: 58.5 MB #Memory Used#