[2025-09-10 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 21:25:05 [end_date_ymd] => 2025-09-10 00:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-09 21:25:05' and `end` < '2025-09-10 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-09-10 00:25:17] Production.INFO: count ==506 [2025-09-10 00:25:17] Production.ERROR: pbx CDR StartTime 2025-09-09 21:25:05 - End Time 2025-09-10 00:25:05 [2025-09-10 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811676', 'tblTempUsageDetail_20' ) start [2025-09-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811676', 'tblTempUsageDetail_20' ) end [2025-09-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811676', 'tblTempVendorCDR_20' ) start [2025-09-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811676', 'tblTempVendorCDR_20' ) end [2025-09-10 00:25:17] Production.INFO: ProcessCDR(1,15811676,1,1,2) [2025-09-10 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15811676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15811676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15811676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15811676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811676', 'tblTempUsageDetail_20' ) start [2025-09-10 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811676', 'tblTempUsageDetail_20' ) end [2025-09-10 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-10 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-10 00:25:28] Production.INFO: ==15867== Releasing lock... [2025-09-10 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 00:25:28] Production.INFO: 35.75 MB #Memory Used# [2025-09-10 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 22:25:06 [end_date_ymd] => 2025-09-10 01:25:06 [RateCDR] => 1 ) [2025-09-10 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-09-09 22:25:06' and `end` < '2025-09-10 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-09-10 01:25:18] Production.INFO: count ==449 [2025-09-10 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 22:25:06 - End Time 2025-09-10 01:25:06 [2025-09-10 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811923', 'tblTempUsageDetail_20' ) start [2025-09-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811923', 'tblTempUsageDetail_20' ) end [2025-09-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811923', 'tblTempVendorCDR_20' ) start [2025-09-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811923', 'tblTempVendorCDR_20' ) end [2025-09-10 01:25:18] Production.INFO: ProcessCDR(1,15811923,1,1,2) [2025-09-10 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15811923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15811923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15811923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15811923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811923', 'tblTempUsageDetail_20' ) start [2025-09-10 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811923', 'tblTempUsageDetail_20' ) end [2025-09-10 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-10 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-10 01:25:26] Production.INFO: ==20384== Releasing lock... [2025-09-10 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-09-10 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 23:25:06 [end_date_ymd] => 2025-09-10 02:25:06 [RateCDR] => 1 ) [2025-09-10 02: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-09-09 23:25:06' and `end` < '2025-09-10 02: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-09-10 02:25:18] Production.INFO: count ==335 [2025-09-10 02:25:19] Production.ERROR: pbx CDR StartTime 2025-09-09 23:25:06 - End Time 2025-09-10 02:25:06 [2025-09-10 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812170', 'tblTempUsageDetail_20' ) start [2025-09-10 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812170', 'tblTempUsageDetail_20' ) end [2025-09-10 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812170', 'tblTempVendorCDR_20' ) start [2025-09-10 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812170', 'tblTempVendorCDR_20' ) end [2025-09-10 02:25:19] Production.INFO: ProcessCDR(1,15812170,1,1,2) [2025-09-10 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15812170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15812170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15812170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15812170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812170', 'tblTempUsageDetail_20' ) start [2025-09-10 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812170', 'tblTempUsageDetail_20' ) end [2025-09-10 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-10 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-10 02:25:26] Production.INFO: ==24715== Releasing lock... [2025-09-10 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 02:25:26] Production.INFO: 31 MB #Memory Used# [2025-09-10 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 00:25:05 [end_date_ymd] => 2025-09-10 03:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 00:25:05' and `end` < '2025-09-10 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-09-10 03:25:17] Production.INFO: count ==254 [2025-09-10 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 00:25:05 - End Time 2025-09-10 03:25:05 [2025-09-10 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812417', 'tblTempUsageDetail_20' ) start [2025-09-10 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812417', 'tblTempUsageDetail_20' ) end [2025-09-10 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812417', 'tblTempVendorCDR_20' ) start [2025-09-10 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812417', 'tblTempVendorCDR_20' ) end [2025-09-10 03:25:17] Production.INFO: ProcessCDR(1,15812417,1,1,2) [2025-09-10 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15812417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15812417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15812417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15812417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812417', 'tblTempUsageDetail_20' ) start [2025-09-10 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812417', 'tblTempUsageDetail_20' ) end [2025-09-10 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-10 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-10 03:25:25] Production.INFO: ==29612== Releasing lock... [2025-09-10 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 03:25:25] Production.INFO: 30 MB #Memory Used# [2025-09-10 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 01:25:05 [end_date_ymd] => 2025-09-10 04:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 01:25:05' and `end` < '2025-09-10 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-09-10 04:25:17] Production.INFO: count ==185 [2025-09-10 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 01:25:05 - End Time 2025-09-10 04:25:05 [2025-09-10 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812665', 'tblTempUsageDetail_20' ) start [2025-09-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812665', 'tblTempUsageDetail_20' ) end [2025-09-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812665', 'tblTempVendorCDR_20' ) start [2025-09-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812665', 'tblTempVendorCDR_20' ) end [2025-09-10 04:25:17] Production.INFO: ProcessCDR(1,15812665,1,1,2) [2025-09-10 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15812665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15812665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15812665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15812665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812665', 'tblTempUsageDetail_20' ) start [2025-09-10 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812665', 'tblTempUsageDetail_20' ) end [2025-09-10 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-10 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-10 04:25:22] Production.INFO: ==2465== Releasing lock... [2025-09-10 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 04:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-09-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 02:25:05 [end_date_ymd] => 2025-09-10 05:25:05 [RateCDR] => 1 ) [2025-09-10 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-10 02:25:05' and `end` < '2025-09-10 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-10 05:25:17] Production.INFO: count ==158 [2025-09-10 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 02:25:05 - End Time 2025-09-10 05:25:05 [2025-09-10 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812913', 'tblTempUsageDetail_20' ) start [2025-09-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15812913', 'tblTempUsageDetail_20' ) end [2025-09-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812913', 'tblTempVendorCDR_20' ) start [2025-09-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15812913', 'tblTempVendorCDR_20' ) end [2025-09-10 05:25:17] Production.INFO: ProcessCDR(1,15812913,1,1,2) [2025-09-10 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15812913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15812913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15812913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15812913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812913', 'tblTempUsageDetail_20' ) start [2025-09-10 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15812913', 'tblTempUsageDetail_20' ) end [2025-09-10 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-10 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-10 05:25:24] Production.INFO: ==7193== Releasing lock... [2025-09-10 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 05:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-09-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 03:25:05 [end_date_ymd] => 2025-09-10 06:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 03:25:05' and `end` < '2025-09-10 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-09-10 06:25:17] Production.INFO: count ==123 [2025-09-10 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 03:25:05 - End Time 2025-09-10 06:25:05 [2025-09-10 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813160', 'tblTempUsageDetail_20' ) start [2025-09-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813160', 'tblTempUsageDetail_20' ) end [2025-09-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813160', 'tblTempVendorCDR_20' ) start [2025-09-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813160', 'tblTempVendorCDR_20' ) end [2025-09-10 06:25:17] Production.INFO: ProcessCDR(1,15813160,1,1,2) [2025-09-10 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15813160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15813160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15813160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15813160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813160', 'tblTempUsageDetail_20' ) start [2025-09-10 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813160', 'tblTempUsageDetail_20' ) end [2025-09-10 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-10 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-10 06:25:25] Production.INFO: ==11417== Releasing lock... [2025-09-10 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 06:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-10 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 04:25:05 [end_date_ymd] => 2025-09-10 07:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 04:25:05' and `end` < '2025-09-10 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-09-10 07:25:17] Production.INFO: count ==144 [2025-09-10 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 04:25:05 - End Time 2025-09-10 07:25:05 [2025-09-10 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813407', 'tblTempUsageDetail_20' ) start [2025-09-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813407', 'tblTempUsageDetail_20' ) end [2025-09-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813407', 'tblTempVendorCDR_20' ) start [2025-09-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813407', 'tblTempVendorCDR_20' ) end [2025-09-10 07:25:17] Production.INFO: ProcessCDR(1,15813407,1,1,2) [2025-09-10 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15813407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15813407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15813407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15813407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813407', 'tblTempUsageDetail_20' ) start [2025-09-10 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813407', 'tblTempUsageDetail_20' ) end [2025-09-10 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-10 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-10 07:25:25] Production.INFO: ==15632== Releasing lock... [2025-09-10 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-10 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 05:25:05 [end_date_ymd] => 2025-09-10 08:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 05:25:05' and `end` < '2025-09-10 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-09-10 08:25:17] Production.INFO: count ==316 [2025-09-10 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 05:25:05 - End Time 2025-09-10 08:25:05 [2025-09-10 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813654', 'tblTempUsageDetail_20' ) start [2025-09-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813654', 'tblTempUsageDetail_20' ) end [2025-09-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813654', 'tblTempVendorCDR_20' ) start [2025-09-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813654', 'tblTempVendorCDR_20' ) end [2025-09-10 08:25:17] Production.INFO: ProcessCDR(1,15813654,1,1,2) [2025-09-10 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15813654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15813654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15813654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15813654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813654', 'tblTempUsageDetail_20' ) start [2025-09-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813654', 'tblTempUsageDetail_20' ) end [2025-09-10 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-10 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-10 08:25:26] Production.INFO: ==19853== Releasing lock... [2025-09-10 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 08:25:26] Production.INFO: 31 MB #Memory Used# [2025-09-10 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 06:25:05 [end_date_ymd] => 2025-09-10 09:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 06:25:05' and `end` < '2025-09-10 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-09-10 09:25:18] Production.INFO: count ==1139 [2025-09-10 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-10 06:25:05 - End Time 2025-09-10 09:25:05 [2025-09-10 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813901', 'tblTempUsageDetail_20' ) start [2025-09-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15813901', 'tblTempUsageDetail_20' ) end [2025-09-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813901', 'tblTempVendorCDR_20' ) start [2025-09-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15813901', 'tblTempVendorCDR_20' ) end [2025-09-10 09:25:18] Production.INFO: ProcessCDR(1,15813901,1,1,2) [2025-09-10 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15813901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15813901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15813901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15813901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813901', 'tblTempUsageDetail_20' ) start [2025-09-10 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15813901', 'tblTempUsageDetail_20' ) end [2025-09-10 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-10 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-10 09:25:27] Production.INFO: ==24129== Releasing lock... [2025-09-10 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 09:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-10 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 07:25:06 [end_date_ymd] => 2025-09-10 10:25:06 [RateCDR] => 1 ) [2025-09-10 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-09-10 07:25:06' and `end` < '2025-09-10 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-09-10 10:25:18] Production.INFO: count ==2479 [2025-09-10 10:25:20] Production.ERROR: pbx CDR StartTime 2025-09-10 07:25:06 - End Time 2025-09-10 10:25:06 [2025-09-10 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814148', 'tblTempUsageDetail_20' ) start [2025-09-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814148', 'tblTempUsageDetail_20' ) end [2025-09-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814148', 'tblTempVendorCDR_20' ) start [2025-09-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814148', 'tblTempVendorCDR_20' ) end [2025-09-10 10:25:20] Production.INFO: ProcessCDR(1,15814148,1,1,2) [2025-09-10 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15814148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15814148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15814148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15814148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814148', 'tblTempUsageDetail_20' ) start [2025-09-10 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814148', 'tblTempUsageDetail_20' ) end [2025-09-10 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-10 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-10 10:25:30] Production.INFO: ==29462== Releasing lock... [2025-09-10 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 10:25:30] Production.INFO: 47 MB #Memory Used# [2025-09-10 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 08:25:05 [end_date_ymd] => 2025-09-10 11:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 08:25:05' and `end` < '2025-09-10 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-09-10 11:25:18] Production.INFO: count ==3850 [2025-09-10 11:25:20] Production.ERROR: pbx CDR StartTime 2025-09-10 08:25:05 - End Time 2025-09-10 11:25:05 [2025-09-10 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814395', 'tblTempUsageDetail_20' ) start [2025-09-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814395', 'tblTempUsageDetail_20' ) end [2025-09-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814395', 'tblTempVendorCDR_20' ) start [2025-09-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814395', 'tblTempVendorCDR_20' ) end [2025-09-10 11:25:20] Production.INFO: ProcessCDR(1,15814395,1,1,2) [2025-09-10 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15814395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15814395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15814395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15814395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814395', 'tblTempUsageDetail_20' ) start [2025-09-10 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814395', 'tblTempUsageDetail_20' ) end [2025-09-10 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-10 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-10 11:25:32] Production.INFO: ==1291== Releasing lock... [2025-09-10 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 11:25:32] Production.INFO: 57 MB #Memory Used# [2025-09-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 09:25:05 [end_date_ymd] => 2025-09-10 12:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 09:25:05' and `end` < '2025-09-10 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-09-10 12:25:20] Production.INFO: count ==4805 [2025-09-10 12:25:22] Production.ERROR: pbx CDR StartTime 2025-09-10 09:25:05 - End Time 2025-09-10 12:25:05 [2025-09-10 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814642', 'tblTempUsageDetail_20' ) start [2025-09-10 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814642', 'tblTempUsageDetail_20' ) end [2025-09-10 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814642', 'tblTempVendorCDR_20' ) start [2025-09-10 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814642', 'tblTempVendorCDR_20' ) end [2025-09-10 12:25:22] Production.INFO: ProcessCDR(1,15814642,1,1,2) [2025-09-10 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15814642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15814642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15814642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15814642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814642', 'tblTempUsageDetail_20' ) start [2025-09-10 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814642', 'tblTempUsageDetail_20' ) end [2025-09-10 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-10 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-10 12:25:35] Production.INFO: ==5640== Releasing lock... [2025-09-10 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 12:25:35] Production.INFO: 64.25 MB #Memory Used# [2025-09-10 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 10:25:05 [end_date_ymd] => 2025-09-10 13:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 10:25:05' and `end` < '2025-09-10 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-09-10 13:25:19] Production.INFO: count ==5402 [2025-09-10 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-10 10:25:05 - End Time 2025-09-10 13:25:05 [2025-09-10 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814889', 'tblTempUsageDetail_20' ) start [2025-09-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15814889', 'tblTempUsageDetail_20' ) end [2025-09-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814889', 'tblTempVendorCDR_20' ) start [2025-09-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15814889', 'tblTempVendorCDR_20' ) end [2025-09-10 13:25:22] Production.INFO: ProcessCDR(1,15814889,1,1,2) [2025-09-10 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15814889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15814889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15814889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15814889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814889', 'tblTempUsageDetail_20' ) start [2025-09-10 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15814889', 'tblTempUsageDetail_20' ) end [2025-09-10 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-10 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-10 13:25:35] Production.INFO: ==9980== Releasing lock... [2025-09-10 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 13:25:35] Production.INFO: 68.75 MB #Memory Used# [2025-09-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 11:25:05 [end_date_ymd] => 2025-09-10 14:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 11:25:05' and `end` < '2025-09-10 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-09-10 14:25:19] Production.INFO: count ==5688 [2025-09-10 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-10 11:25:05 - End Time 2025-09-10 14:25:05 [2025-09-10 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815136', 'tblTempUsageDetail_20' ) start [2025-09-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815136', 'tblTempUsageDetail_20' ) end [2025-09-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815136', 'tblTempVendorCDR_20' ) start [2025-09-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815136', 'tblTempVendorCDR_20' ) end [2025-09-10 14:25:22] Production.INFO: ProcessCDR(1,15815136,1,1,2) [2025-09-10 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15815136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15815136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15815136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15815136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815136', 'tblTempUsageDetail_20' ) start [2025-09-10 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815136', 'tblTempUsageDetail_20' ) end [2025-09-10 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-10 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-10 14:25:34] Production.INFO: ==14676== Releasing lock... [2025-09-10 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 14:25:34] Production.INFO: 70.75 MB #Memory Used# [2025-09-10 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 12:25:06 [end_date_ymd] => 2025-09-10 15:25:06 [RateCDR] => 1 ) [2025-09-10 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-09-10 12:25:06' and `end` < '2025-09-10 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-09-10 15:25:20] Production.INFO: count ==5544 [2025-09-10 15:25:23] Production.ERROR: pbx CDR StartTime 2025-09-10 12:25:06 - End Time 2025-09-10 15:25:06 [2025-09-10 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815383', 'tblTempUsageDetail_20' ) start [2025-09-10 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815383', 'tblTempUsageDetail_20' ) end [2025-09-10 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815383', 'tblTempVendorCDR_20' ) start [2025-09-10 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815383', 'tblTempVendorCDR_20' ) end [2025-09-10 15:25:23] Production.INFO: ProcessCDR(1,15815383,1,1,2) [2025-09-10 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15815383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15815383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15815383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15815383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815383', 'tblTempUsageDetail_20' ) start [2025-09-10 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815383', 'tblTempUsageDetail_20' ) end [2025-09-10 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-10 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-10 15:25:34] Production.INFO: ==19065== Releasing lock... [2025-09-10 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 15:25:34] Production.INFO: 69.75 MB #Memory Used# [2025-09-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 13:25:05 [end_date_ymd] => 2025-09-10 16:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 13:25:05' and `end` < '2025-09-10 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-09-10 16:25:21] Production.INFO: count ==5159 [2025-09-10 16:25:23] Production.ERROR: pbx CDR StartTime 2025-09-10 13:25:05 - End Time 2025-09-10 16:25:05 [2025-09-10 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815630', 'tblTempUsageDetail_20' ) start [2025-09-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815630', 'tblTempUsageDetail_20' ) end [2025-09-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815630', 'tblTempVendorCDR_20' ) start [2025-09-10 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815630', 'tblTempVendorCDR_20' ) end [2025-09-10 16:25:24] Production.INFO: ProcessCDR(1,15815630,1,1,2) [2025-09-10 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15815630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15815630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15815630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15815630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815630', 'tblTempUsageDetail_20' ) start [2025-09-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815630', 'tblTempUsageDetail_20' ) end [2025-09-10 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-10 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-10 16:25:35] Production.INFO: ==24442== Releasing lock... [2025-09-10 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 16:25:35] Production.INFO: 66.75 MB #Memory Used# [2025-09-10 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 14:25:05 [end_date_ymd] => 2025-09-10 17:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 14:25:05' and `end` < '2025-09-10 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-09-10 17:25:19] Production.INFO: count ==4850 [2025-09-10 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-10 14:25:05 - End Time 2025-09-10 17:25:05 [2025-09-10 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815877', 'tblTempUsageDetail_20' ) start [2025-09-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15815877', 'tblTempUsageDetail_20' ) end [2025-09-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815877', 'tblTempVendorCDR_20' ) start [2025-09-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15815877', 'tblTempVendorCDR_20' ) end [2025-09-10 17:25:21] Production.INFO: ProcessCDR(1,15815877,1,1,2) [2025-09-10 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15815877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15815877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15815877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15815877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815877', 'tblTempUsageDetail_20' ) start [2025-09-10 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15815877', 'tblTempUsageDetail_20' ) end [2025-09-10 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-10 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-10 17:25:32] Production.INFO: ==30630== Releasing lock... [2025-09-10 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 17:25:32] Production.INFO: 64.5 MB #Memory Used# [2025-09-10 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 15:25:06 [end_date_ymd] => 2025-09-10 18:25:06 [RateCDR] => 1 ) [2025-09-10 18: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-09-10 15:25:06' and `end` < '2025-09-10 18: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-09-10 18:25:19] Production.INFO: count ==4085 [2025-09-10 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-10 15:25:06 - End Time 2025-09-10 18:25:06 [2025-09-10 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816124', 'tblTempUsageDetail_20' ) start [2025-09-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816124', 'tblTempUsageDetail_20' ) end [2025-09-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816124', 'tblTempVendorCDR_20' ) start [2025-09-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816124', 'tblTempVendorCDR_20' ) end [2025-09-10 18:25:21] Production.INFO: ProcessCDR(1,15816124,1,1,2) [2025-09-10 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15816124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15816124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15816124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15816124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816124', 'tblTempUsageDetail_20' ) start [2025-09-10 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816124', 'tblTempUsageDetail_20' ) end [2025-09-10 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-10 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-10 18:25:34] Production.INFO: ==4677== Releasing lock... [2025-09-10 18:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 18:25:34] Production.INFO: 58.75 MB #Memory Used# [2025-09-10 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 16:25:04 [end_date_ymd] => 2025-09-10 19:25:04 [RateCDR] => 1 ) [2025-09-10 19: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-09-10 16:25:04' and `end` < '2025-09-10 19: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-09-10 19:25:20] Production.INFO: count ==3681 [2025-09-10 19:25:22] Production.ERROR: pbx CDR StartTime 2025-09-10 16:25:04 - End Time 2025-09-10 19:25:04 [2025-09-10 19:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816368', 'tblTempUsageDetail_20' ) start [2025-09-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816368', 'tblTempUsageDetail_20' ) end [2025-09-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816368', 'tblTempVendorCDR_20' ) start [2025-09-10 19:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816368', 'tblTempVendorCDR_20' ) end [2025-09-10 19:25:22] Production.INFO: ProcessCDR(1,15816368,1,1,2) [2025-09-10 19:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15816368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 19:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15816368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 19:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15816368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 19:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15816368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816368', 'tblTempUsageDetail_20' ) start [2025-09-10 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816368', 'tblTempUsageDetail_20' ) end [2025-09-10 19:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-10 19:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-10 19:25:32] Production.INFO: ==10601== Releasing lock... [2025-09-10 19:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 19:25:32] Production.INFO: 56 MB #Memory Used# [2025-09-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 17:25:05 [end_date_ymd] => 2025-09-10 20:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 17:25:05' and `end` < '2025-09-10 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-09-10 20:25:18] Production.INFO: count ==7518 [2025-09-10 20:25:22] Production.ERROR: pbx CDR StartTime 2025-09-10 17:25:05 - End Time 2025-09-10 20:25:05 [2025-09-10 20:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 20:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816615', 'tblTempUsageDetail_20' ) start [2025-09-10 20:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816615', 'tblTempUsageDetail_20' ) end [2025-09-10 20:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816615', 'tblTempVendorCDR_20' ) start [2025-09-10 20:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816615', 'tblTempVendorCDR_20' ) end [2025-09-10 20:25:22] Production.INFO: ProcessCDR(1,15816615,1,1,2) [2025-09-10 20:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15816615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 20:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15816615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 20:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15816615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 20:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15816615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 20:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816615', 'tblTempUsageDetail_20' ) start [2025-09-10 20:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816615', 'tblTempUsageDetail_20' ) end [2025-09-10 20:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-10 20:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-10 20:25:36] Production.INFO: ==15979== Releasing lock... [2025-09-10 20:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 20:25:36] Production.INFO: 85 MB #Memory Used# [2025-09-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 18:25:05 [end_date_ymd] => 2025-09-10 21:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 18:25:05' and `end` < '2025-09-10 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-09-10 21:25:18] Production.INFO: count ==9788 [2025-09-10 21:25:24] Production.ERROR: pbx CDR StartTime 2025-09-10 18:25:05 - End Time 2025-09-10 21:25:05 [2025-09-10 21:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 21:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816862', 'tblTempUsageDetail_20' ) start [2025-09-10 21:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15816862', 'tblTempUsageDetail_20' ) end [2025-09-10 21:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816862', 'tblTempVendorCDR_20' ) start [2025-09-10 21:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15816862', 'tblTempVendorCDR_20' ) end [2025-09-10 21:25:24] Production.INFO: ProcessCDR(1,15816862,1,1,2) [2025-09-10 21:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15816862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 21:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15816862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 21:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15816862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 21:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15816862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 21:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816862', 'tblTempUsageDetail_20' ) start [2025-09-10 21:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15816862', 'tblTempUsageDetail_20' ) end [2025-09-10 21:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-10 21:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-10 21:25:36] Production.INFO: ==20989== Releasing lock... [2025-09-10 21:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 21:25:36] Production.INFO: 102 MB #Memory Used# [2025-09-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 19:25:05 [end_date_ymd] => 2025-09-10 22:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 19:25:05' and `end` < '2025-09-10 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-09-10 22:25:18] Production.INFO: count ==8797 [2025-09-10 22:25:23] Production.ERROR: pbx CDR StartTime 2025-09-10 19:25:05 - End Time 2025-09-10 22:25:05 [2025-09-10 22:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 22:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817109', 'tblTempUsageDetail_20' ) start [2025-09-10 22:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817109', 'tblTempUsageDetail_20' ) end [2025-09-10 22:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817109', 'tblTempVendorCDR_20' ) start [2025-09-10 22:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817109', 'tblTempVendorCDR_20' ) end [2025-09-10 22:25:24] Production.INFO: ProcessCDR(1,15817109,1,1,2) [2025-09-10 22:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15817109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 22:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15817109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 22:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15817109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 22:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15817109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 22:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817109', 'tblTempUsageDetail_20' ) start [2025-09-10 22:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817109', 'tblTempUsageDetail_20' ) end [2025-09-10 22:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-10 22:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-10 22:25:32] Production.INFO: ==26380== Releasing lock... [2025-09-10 22:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 22:25:32] Production.INFO: 94.75 MB #Memory Used# [2025-09-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 20:25:05 [end_date_ymd] => 2025-09-10 23:25:05 [RateCDR] => 1 ) [2025-09-10 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-09-10 20:25:05' and `end` < '2025-09-10 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-09-10 23:25:17] Production.INFO: count ==3735 [2025-09-10 23:25:19] Production.ERROR: pbx CDR StartTime 2025-09-10 20:25:05 - End Time 2025-09-10 23:25:05 [2025-09-10 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817356', 'tblTempUsageDetail_20' ) start [2025-09-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817356', 'tblTempUsageDetail_20' ) end [2025-09-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817356', 'tblTempVendorCDR_20' ) start [2025-09-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817356', 'tblTempVendorCDR_20' ) end [2025-09-10 23:25:19] Production.INFO: ProcessCDR(1,15817356,1,1,2) [2025-09-10 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15817356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15817356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-10 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15817356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15817356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-10 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817356', 'tblTempUsageDetail_20' ) start [2025-09-10 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817356', 'tblTempUsageDetail_20' ) end [2025-09-10 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-10 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-10 23:25:28] Production.INFO: ==31511== Releasing lock... [2025-09-10 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-10 23:25:28] Production.INFO: 56 MB #Memory Used#