[2025-06-12 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 21:25:05 [end_date_ymd] => 2025-06-12 00:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-11 21:25:05' and `end` < '2025-06-12 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-06-12 00:25:17] Production.INFO: count ==479 [2025-06-12 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-11 21:25:05 - End Time 2025-06-12 00:25:05 [2025-06-12 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278236', 'tblTempUsageDetail_20' ) start [2025-06-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278236', 'tblTempUsageDetail_20' ) end [2025-06-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278236', 'tblTempVendorCDR_20' ) start [2025-06-12 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278236', 'tblTempVendorCDR_20' ) end [2025-06-12 00:25:18] Production.INFO: ProcessCDR(1,15278236,1,1,2) [2025-06-12 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15278236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15278236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15278236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15278236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278236', 'tblTempUsageDetail_20' ) start [2025-06-12 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278236', 'tblTempUsageDetail_20' ) end [2025-06-12 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-12 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-12 00:25:25] Production.INFO: ==28183== Releasing lock... [2025-06-12 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 00:25:25] Production.INFO: 36 MB #Memory Used# [2025-06-12 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 22:25:06 [end_date_ymd] => 2025-06-12 01:25:06 [RateCDR] => 1 ) [2025-06-12 01: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-06-11 22:25:06' and `end` < '2025-06-12 01: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-06-12 01:25:18] Production.INFO: count ==378 [2025-06-12 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 22:25:06 - End Time 2025-06-12 01:25:06 [2025-06-12 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278483', 'tblTempUsageDetail_20' ) start [2025-06-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278483', 'tblTempUsageDetail_20' ) end [2025-06-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278483', 'tblTempVendorCDR_20' ) start [2025-06-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278483', 'tblTempVendorCDR_20' ) end [2025-06-12 01:25:18] Production.INFO: ProcessCDR(1,15278483,1,1,2) [2025-06-12 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15278483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15278483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15278483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15278483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278483', 'tblTempUsageDetail_20' ) start [2025-06-12 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278483', 'tblTempUsageDetail_20' ) end [2025-06-12 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-12 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-12 01:25:24] Production.INFO: ==32439== Releasing lock... [2025-06-12 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 01:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-06-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-11 23:25:05 [end_date_ymd] => 2025-06-12 02:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-11 23:25:05' and `end` < '2025-06-12 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-06-12 02:25:18] Production.INFO: count ==318 [2025-06-12 02:25:18] Production.ERROR: pbx CDR StartTime 2025-06-11 23:25:05 - End Time 2025-06-12 02:25:05 [2025-06-12 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278730', 'tblTempUsageDetail_20' ) start [2025-06-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278730', 'tblTempUsageDetail_20' ) end [2025-06-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278730', 'tblTempVendorCDR_20' ) start [2025-06-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278730', 'tblTempVendorCDR_20' ) end [2025-06-12 02:25:18] Production.INFO: ProcessCDR(1,15278730,1,1,2) [2025-06-12 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15278730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15278730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15278730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15278730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278730', 'tblTempUsageDetail_20' ) start [2025-06-12 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278730', 'tblTempUsageDetail_20' ) end [2025-06-12 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-12 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-12 02:25:24] Production.INFO: ==4431== Releasing lock... [2025-06-12 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 02:25:24] Production.INFO: 31 MB #Memory Used# [2025-06-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 00:25:05 [end_date_ymd] => 2025-06-12 03:25:05 [RateCDR] => 1 ) [2025-06-12 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 00:25:05' and `end` < '2025-06-12 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 03:25:17] Production.INFO: count ==230 [2025-06-12 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 00:25:05 - End Time 2025-06-12 03:25:05 [2025-06-12 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278977', 'tblTempUsageDetail_20' ) start [2025-06-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15278977', 'tblTempUsageDetail_20' ) end [2025-06-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278977', 'tblTempVendorCDR_20' ) start [2025-06-12 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15278977', 'tblTempVendorCDR_20' ) end [2025-06-12 03:25:17] Production.INFO: ProcessCDR(1,15278977,1,1,2) [2025-06-12 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15278977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15278977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15278977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15278977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278977', 'tblTempUsageDetail_20' ) start [2025-06-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15278977', 'tblTempUsageDetail_20' ) end [2025-06-12 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-12 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-12 03:25:21] Production.INFO: ==9090== Releasing lock... [2025-06-12 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 03:25:21] Production.INFO: 30 MB #Memory Used# [2025-06-12 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 01:25:05 [end_date_ymd] => 2025-06-12 04:25:05 [RateCDR] => 1 ) [2025-06-12 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 01:25:05' and `end` < '2025-06-12 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 04:25:17] Production.INFO: count ==149 [2025-06-12 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 01:25:05 - End Time 2025-06-12 04:25:05 [2025-06-12 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279225', 'tblTempUsageDetail_20' ) start [2025-06-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279225', 'tblTempUsageDetail_20' ) end [2025-06-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279225', 'tblTempVendorCDR_20' ) start [2025-06-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279225', 'tblTempVendorCDR_20' ) end [2025-06-12 04:25:17] Production.INFO: ProcessCDR(1,15279225,1,1,2) [2025-06-12 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15279225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15279225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15279225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15279225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279225', 'tblTempUsageDetail_20' ) start [2025-06-12 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279225', 'tblTempUsageDetail_20' ) end [2025-06-12 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-12 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-12 04:25:23] Production.INFO: ==13838== Releasing lock... [2025-06-12 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 04:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-12 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 02:25:04 [end_date_ymd] => 2025-06-12 05:25:04 [RateCDR] => 1 ) [2025-06-12 05: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-06-12 02:25:04' and `end` < '2025-06-12 05: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-06-12 05:25:17] Production.INFO: count ==116 [2025-06-12 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 02:25:04 - End Time 2025-06-12 05:25:04 [2025-06-12 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279473', 'tblTempUsageDetail_20' ) start [2025-06-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279473', 'tblTempUsageDetail_20' ) end [2025-06-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279473', 'tblTempVendorCDR_20' ) start [2025-06-12 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279473', 'tblTempVendorCDR_20' ) end [2025-06-12 05:25:17] Production.INFO: ProcessCDR(1,15279473,1,1,2) [2025-06-12 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15279473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15279473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15279473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15279473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279473', 'tblTempUsageDetail_20' ) start [2025-06-12 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279473', 'tblTempUsageDetail_20' ) end [2025-06-12 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-06-12 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-06-12 05:25:21] Production.INFO: ==18394== Releasing lock... [2025-06-12 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-06-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 03:25:05 [end_date_ymd] => 2025-06-12 06:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 03:25:05' and `end` < '2025-06-12 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-06-12 06:25:17] Production.INFO: count ==104 [2025-06-12 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 03:25:05 - End Time 2025-06-12 06:25:05 [2025-06-12 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279720', 'tblTempUsageDetail_20' ) start [2025-06-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279720', 'tblTempUsageDetail_20' ) end [2025-06-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279720', 'tblTempVendorCDR_20' ) start [2025-06-12 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279720', 'tblTempVendorCDR_20' ) end [2025-06-12 06:25:17] Production.INFO: ProcessCDR(1,15279720,1,1,2) [2025-06-12 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15279720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15279720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15279720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15279720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279720', 'tblTempUsageDetail_20' ) start [2025-06-12 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279720', 'tblTempUsageDetail_20' ) end [2025-06-12 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-12 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-12 06:25:23] Production.INFO: ==23264== Releasing lock... [2025-06-12 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-06-12 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 04:25:05 [end_date_ymd] => 2025-06-12 07:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 04:25:05' and `end` < '2025-06-12 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-06-12 07:25:18] Production.INFO: count ==141 [2025-06-12 07:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 04:25:05 - End Time 2025-06-12 07:25:05 [2025-06-12 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279967', 'tblTempUsageDetail_20' ) start [2025-06-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15279967', 'tblTempUsageDetail_20' ) end [2025-06-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279967', 'tblTempVendorCDR_20' ) start [2025-06-12 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15279967', 'tblTempVendorCDR_20' ) end [2025-06-12 07:25:18] Production.INFO: ProcessCDR(1,15279967,1,1,2) [2025-06-12 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15279967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15279967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15279967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15279967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279967', 'tblTempUsageDetail_20' ) start [2025-06-12 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15279967', 'tblTempUsageDetail_20' ) end [2025-06-12 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-12 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-12 07:25:24] Production.INFO: ==27498== Releasing lock... [2025-06-12 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-06-12 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 05:25:05 [end_date_ymd] => 2025-06-12 08:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 05:25:05' and `end` < '2025-06-12 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-06-12 08:25:17] Production.INFO: count ==438 [2025-06-12 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 05:25:05 - End Time 2025-06-12 08:25:05 [2025-06-12 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280214', 'tblTempUsageDetail_20' ) start [2025-06-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280214', 'tblTempUsageDetail_20' ) end [2025-06-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280214', 'tblTempVendorCDR_20' ) start [2025-06-12 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280214', 'tblTempVendorCDR_20' ) end [2025-06-12 08:25:17] Production.INFO: ProcessCDR(1,15280214,1,1,2) [2025-06-12 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15280214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15280214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15280214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15280214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280214', 'tblTempUsageDetail_20' ) start [2025-06-12 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280214', 'tblTempUsageDetail_20' ) end [2025-06-12 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-12 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-12 08:25:23] Production.INFO: ==31756== Releasing lock... [2025-06-12 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 08:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-06-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 06:25:05 [end_date_ymd] => 2025-06-12 09:25:05 [RateCDR] => 1 ) [2025-06-12 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 06:25:05' and `end` < '2025-06-12 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 09:25:17] Production.INFO: count ==1468 [2025-06-12 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 06:25:05 - End Time 2025-06-12 09:25:05 [2025-06-12 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280461', 'tblTempUsageDetail_20' ) start [2025-06-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280461', 'tblTempUsageDetail_20' ) end [2025-06-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280461', 'tblTempVendorCDR_20' ) start [2025-06-12 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280461', 'tblTempVendorCDR_20' ) end [2025-06-12 09:25:18] Production.INFO: ProcessCDR(1,15280461,1,1,2) [2025-06-12 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15280461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15280461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15280461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15280461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280461', 'tblTempUsageDetail_20' ) start [2025-06-12 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280461', 'tblTempUsageDetail_20' ) end [2025-06-12 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-12 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-12 09:25:25] Production.INFO: ==3723== Releasing lock... [2025-06-12 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 09:25:25] Production.INFO: 39.25 MB #Memory Used# [2025-06-12 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 07:25:06 [end_date_ymd] => 2025-06-12 10:25:06 [RateCDR] => 1 ) [2025-06-12 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 07:25:06' and `end` < '2025-06-12 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 10:25:19] Production.INFO: count ==2984 [2025-06-12 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-12 07:25:06 - End Time 2025-06-12 10:25:06 [2025-06-12 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280708', 'tblTempUsageDetail_20' ) start [2025-06-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280708', 'tblTempUsageDetail_20' ) end [2025-06-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280708', 'tblTempVendorCDR_20' ) start [2025-06-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280708', 'tblTempVendorCDR_20' ) end [2025-06-12 10:25:20] Production.INFO: ProcessCDR(1,15280708,1,1,2) [2025-06-12 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15280708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15280708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15280708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15280708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280708', 'tblTempUsageDetail_20' ) start [2025-06-12 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280708', 'tblTempUsageDetail_20' ) end [2025-06-12 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-12 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-12 10:25:30] Production.INFO: ==8523== Releasing lock... [2025-06-12 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 10:25:30] Production.INFO: 50.5 MB #Memory Used# [2025-06-12 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 08:25:05 [end_date_ymd] => 2025-06-12 11:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 08:25:05' and `end` < '2025-06-12 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-06-12 11:25:20] Production.INFO: count ==4485 [2025-06-12 11:25:22] Production.ERROR: pbx CDR StartTime 2025-06-12 08:25:05 - End Time 2025-06-12 11:25:05 [2025-06-12 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280955', 'tblTempUsageDetail_20' ) start [2025-06-12 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15280955', 'tblTempUsageDetail_20' ) end [2025-06-12 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280955', 'tblTempVendorCDR_20' ) start [2025-06-12 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15280955', 'tblTempVendorCDR_20' ) end [2025-06-12 11:25:22] Production.INFO: ProcessCDR(1,15280955,1,1,2) [2025-06-12 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15280955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15280955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15280955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15280955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280955', 'tblTempUsageDetail_20' ) start [2025-06-12 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15280955', 'tblTempUsageDetail_20' ) end [2025-06-12 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-12 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-12 11:25:33] Production.INFO: ==12910== Releasing lock... [2025-06-12 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 11:25:33] Production.INFO: 61.75 MB #Memory Used# [2025-06-12 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 09:25:05 [end_date_ymd] => 2025-06-12 12:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 09:25:05' and `end` < '2025-06-12 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-06-12 12:25:19] Production.INFO: count ==5558 [2025-06-12 12:25:22] Production.ERROR: pbx CDR StartTime 2025-06-12 09:25:05 - End Time 2025-06-12 12:25:05 [2025-06-12 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281202', 'tblTempUsageDetail_20' ) start [2025-06-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281202', 'tblTempUsageDetail_20' ) end [2025-06-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281202', 'tblTempVendorCDR_20' ) start [2025-06-12 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281202', 'tblTempVendorCDR_20' ) end [2025-06-12 12:25:22] Production.INFO: ProcessCDR(1,15281202,1,1,2) [2025-06-12 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15281202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15281202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15281202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15281202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281202', 'tblTempUsageDetail_20' ) start [2025-06-12 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281202', 'tblTempUsageDetail_20' ) end [2025-06-12 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-12 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-12 12:25:33] Production.INFO: ==17290== Releasing lock... [2025-06-12 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 12:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-06-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 10:25:05 [end_date_ymd] => 2025-06-12 13:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 10:25:05' and `end` < '2025-06-12 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-06-12 13:25:24] Production.INFO: count ==5828 [2025-06-12 13:25:27] Production.ERROR: pbx CDR StartTime 2025-06-12 10:25:05 - End Time 2025-06-12 13:25:05 [2025-06-12 13:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281449', 'tblTempUsageDetail_20' ) start [2025-06-12 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281449', 'tblTempUsageDetail_20' ) end [2025-06-12 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281449', 'tblTempVendorCDR_20' ) start [2025-06-12 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281449', 'tblTempVendorCDR_20' ) end [2025-06-12 13:25:27] Production.INFO: ProcessCDR(1,15281449,1,1,2) [2025-06-12 13:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15281449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15281449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15281449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15281449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281449', 'tblTempUsageDetail_20' ) start [2025-06-12 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281449', 'tblTempUsageDetail_20' ) end [2025-06-12 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-06-12 13:25:37] Production.ERROR: pbx prc_insertCDR end [2025-06-12 13:25:37] Production.INFO: ==21580== Releasing lock... [2025-06-12 13:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 13:25:37] Production.INFO: 72 MB #Memory Used# [2025-06-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 11:25:05 [end_date_ymd] => 2025-06-12 14:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 11:25:05' and `end` < '2025-06-12 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-06-12 14:25:19] Production.INFO: count ==5896 [2025-06-12 14:25:22] Production.ERROR: pbx CDR StartTime 2025-06-12 11:25:05 - End Time 2025-06-12 14:25:05 [2025-06-12 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281696', 'tblTempUsageDetail_20' ) start [2025-06-12 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281696', 'tblTempUsageDetail_20' ) end [2025-06-12 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281696', 'tblTempVendorCDR_20' ) start [2025-06-12 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281696', 'tblTempVendorCDR_20' ) end [2025-06-12 14:25:22] Production.INFO: ProcessCDR(1,15281696,1,1,2) [2025-06-12 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15281696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15281696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15281696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15281696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281696', 'tblTempUsageDetail_20' ) start [2025-06-12 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281696', 'tblTempUsageDetail_20' ) end [2025-06-12 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-12 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-12 14:25:33] Production.INFO: ==26369== Releasing lock... [2025-06-12 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 14:25:33] Production.INFO: 72.75 MB #Memory Used# [2025-06-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 12:25:05 [end_date_ymd] => 2025-06-12 15:25:05 [RateCDR] => 1 ) [2025-06-12 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 12:25:05' and `end` < '2025-06-12 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 15:25:18] Production.INFO: count ==5516 [2025-06-12 15:25:21] Production.ERROR: pbx CDR StartTime 2025-06-12 12:25:05 - End Time 2025-06-12 15:25:05 [2025-06-12 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281943', 'tblTempUsageDetail_20' ) start [2025-06-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15281943', 'tblTempUsageDetail_20' ) end [2025-06-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281943', 'tblTempVendorCDR_20' ) start [2025-06-12 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15281943', 'tblTempVendorCDR_20' ) end [2025-06-12 15:25:21] Production.INFO: ProcessCDR(1,15281943,1,1,2) [2025-06-12 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15281943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15281943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15281943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 15:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15281943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281943', 'tblTempUsageDetail_20' ) start [2025-06-12 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15281943', 'tblTempUsageDetail_20' ) end [2025-06-12 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-12 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-12 15:25:32] Production.INFO: ==31060== Releasing lock... [2025-06-12 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 15:25:32] Production.INFO: 69.5 MB #Memory Used# [2025-06-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 13:25:05 [end_date_ymd] => 2025-06-12 16:25:05 [RateCDR] => 1 ) [2025-06-12 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 13:25:05' and `end` < '2025-06-12 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 16:25:20] Production.INFO: count ==5890 [2025-06-12 16:25:23] Production.ERROR: pbx CDR StartTime 2025-06-12 13:25:05 - End Time 2025-06-12 16:25:05 [2025-06-12 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282190', 'tblTempUsageDetail_20' ) start [2025-06-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282190', 'tblTempUsageDetail_20' ) end [2025-06-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282190', 'tblTempVendorCDR_20' ) start [2025-06-12 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282190', 'tblTempVendorCDR_20' ) end [2025-06-12 16:25:23] Production.INFO: ProcessCDR(1,15282190,1,1,2) [2025-06-12 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15282190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15282190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15282190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15282190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282190', 'tblTempUsageDetail_20' ) start [2025-06-12 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282190', 'tblTempUsageDetail_20' ) end [2025-06-12 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-12 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-12 16:25:34] Production.INFO: ==2996== Releasing lock... [2025-06-12 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 16:25:34] Production.INFO: 72.25 MB #Memory Used# [2025-06-12 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 14:25:05 [end_date_ymd] => 2025-06-12 17:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 14:25:05' and `end` < '2025-06-12 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-06-12 17:25:19] Production.INFO: count ==5656 [2025-06-12 17:25:21] Production.ERROR: pbx CDR StartTime 2025-06-12 14:25:05 - End Time 2025-06-12 17:25:05 [2025-06-12 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282437', 'tblTempUsageDetail_20' ) start [2025-06-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282437', 'tblTempUsageDetail_20' ) end [2025-06-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282437', 'tblTempVendorCDR_20' ) start [2025-06-12 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282437', 'tblTempVendorCDR_20' ) end [2025-06-12 17:25:22] Production.INFO: ProcessCDR(1,15282437,1,1,2) [2025-06-12 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15282437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15282437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15282437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15282437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282437', 'tblTempUsageDetail_20' ) start [2025-06-12 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282437', 'tblTempUsageDetail_20' ) end [2025-06-12 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-12 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-12 17:25:32] Production.INFO: ==7277== Releasing lock... [2025-06-12 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 17:25:32] Production.INFO: 70.5 MB #Memory Used# [2025-06-12 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 15:25:05 [end_date_ymd] => 2025-06-12 18:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 15:25:05' and `end` < '2025-06-12 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-06-12 18:25:18] Production.INFO: count ==5052 [2025-06-12 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-12 15:25:05 - End Time 2025-06-12 18:25:05 [2025-06-12 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282684', 'tblTempUsageDetail_20' ) start [2025-06-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282684', 'tblTempUsageDetail_20' ) end [2025-06-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282684', 'tblTempVendorCDR_20' ) start [2025-06-12 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282684', 'tblTempVendorCDR_20' ) end [2025-06-12 18:25:21] Production.INFO: ProcessCDR(1,15282684,1,1,2) [2025-06-12 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15282684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15282684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15282684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15282684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282684', 'tblTempUsageDetail_20' ) start [2025-06-12 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282684', 'tblTempUsageDetail_20' ) end [2025-06-12 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-12 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-12 18:25:30] Production.INFO: ==11577== Releasing lock... [2025-06-12 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 18:25:30] Production.INFO: 66 MB #Memory Used# [2025-06-12 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 16:25:05 [end_date_ymd] => 2025-06-12 19:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 16:25:05' and `end` < '2025-06-12 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-06-12 19:25:18] Production.INFO: count ==3540 [2025-06-12 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-12 16:25:05 - End Time 2025-06-12 19:25:05 [2025-06-12 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282928', 'tblTempUsageDetail_20' ) start [2025-06-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15282928', 'tblTempUsageDetail_20' ) end [2025-06-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282928', 'tblTempVendorCDR_20' ) start [2025-06-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15282928', 'tblTempVendorCDR_20' ) end [2025-06-12 19:25:20] Production.INFO: ProcessCDR(1,15282928,1,1,2) [2025-06-12 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15282928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15282928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15282928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15282928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282928', 'tblTempUsageDetail_20' ) start [2025-06-12 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15282928', 'tblTempUsageDetail_20' ) end [2025-06-12 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-12 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-12 19:25:27] Production.INFO: ==16373== Releasing lock... [2025-06-12 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 19:25:27] Production.INFO: 54.5 MB #Memory Used# [2025-06-12 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 17:25:05 [end_date_ymd] => 2025-06-12 20:25:05 [RateCDR] => 1 ) [2025-06-12 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-12 17:25:05' and `end` < '2025-06-12 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-12 20:25:17] Production.INFO: count ==2502 [2025-06-12 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 17:25:05 - End Time 2025-06-12 20:25:05 [2025-06-12 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283175', 'tblTempUsageDetail_20' ) start [2025-06-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283175', 'tblTempUsageDetail_20' ) end [2025-06-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283175', 'tblTempVendorCDR_20' ) start [2025-06-12 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283175', 'tblTempVendorCDR_20' ) end [2025-06-12 20:25:18] Production.INFO: ProcessCDR(1,15283175,1,1,2) [2025-06-12 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15283175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15283175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15283175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15283175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283175', 'tblTempUsageDetail_20' ) start [2025-06-12 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283175', 'tblTempUsageDetail_20' ) end [2025-06-12 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-12 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-12 20:25:25] Production.INFO: ==21256== Releasing lock... [2025-06-12 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 20:25:25] Production.INFO: 47 MB #Memory Used# [2025-06-12 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 18:25:05 [end_date_ymd] => 2025-06-12 21:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 18:25:05' and `end` < '2025-06-12 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-06-12 21:25:18] Production.INFO: count ==1888 [2025-06-12 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 18:25:05 - End Time 2025-06-12 21:25:05 [2025-06-12 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283422', 'tblTempUsageDetail_20' ) start [2025-06-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283422', 'tblTempUsageDetail_20' ) end [2025-06-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283422', 'tblTempVendorCDR_20' ) start [2025-06-12 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283422', 'tblTempVendorCDR_20' ) end [2025-06-12 21:25:18] Production.INFO: ProcessCDR(1,15283422,1,1,2) [2025-06-12 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15283422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15283422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15283422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15283422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283422', 'tblTempUsageDetail_20' ) start [2025-06-12 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283422', 'tblTempUsageDetail_20' ) end [2025-06-12 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-12 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-12 21:25:26] Production.INFO: ==25611== Releasing lock... [2025-06-12 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 21:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-06-12 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 19:25:06 [end_date_ymd] => 2025-06-12 22:25:06 [RateCDR] => 1 ) [2025-06-12 22: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-06-12 19:25:06' and `end` < '2025-06-12 22: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-06-12 22:25:18] Production.INFO: count ==1544 [2025-06-12 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 19:25:06 - End Time 2025-06-12 22:25:06 [2025-06-12 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283669', 'tblTempUsageDetail_20' ) start [2025-06-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283669', 'tblTempUsageDetail_20' ) end [2025-06-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283669', 'tblTempVendorCDR_20' ) start [2025-06-12 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283669', 'tblTempVendorCDR_20' ) end [2025-06-12 22:25:18] Production.INFO: ProcessCDR(1,15283669,1,1,2) [2025-06-12 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15283669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15283669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15283669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15283669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283669', 'tblTempUsageDetail_20' ) start [2025-06-12 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283669', 'tblTempUsageDetail_20' ) end [2025-06-12 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-12 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-12 22:25:26] Production.INFO: ==30230== Releasing lock... [2025-06-12 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 22:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-06-12 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 20:25:05 [end_date_ymd] => 2025-06-12 23:25:05 [RateCDR] => 1 ) [2025-06-12 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-06-12 20:25:05' and `end` < '2025-06-12 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-06-12 23:25:17] Production.INFO: count ==1221 [2025-06-12 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 20:25:05 - End Time 2025-06-12 23:25:05 [2025-06-12 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283916', 'tblTempUsageDetail_20' ) start [2025-06-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15283916', 'tblTempUsageDetail_20' ) end [2025-06-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283916', 'tblTempVendorCDR_20' ) start [2025-06-12 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15283916', 'tblTempVendorCDR_20' ) end [2025-06-12 23:25:18] Production.INFO: ProcessCDR(1,15283916,1,1,2) [2025-06-12 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15283916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15283916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-12 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15283916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15283916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-12 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283916', 'tblTempUsageDetail_20' ) start [2025-06-12 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15283916', 'tblTempUsageDetail_20' ) end [2025-06-12 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-12 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-12 23:25:24] Production.INFO: ==2580== Releasing lock... [2025-06-12 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-12 23:25:24] Production.INFO: 37.25 MB #Memory Used#