[2025-08-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 21:25:05 [end_date_ymd] => 2025-08-20 00:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-19 21:25:05' and `end` < '2025-08-20 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-08-20 00:25:18] Production.INFO: count ==672 [2025-08-20 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 21:25:05 - End Time 2025-08-20 00:25:05 [2025-08-20 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687203', 'tblTempUsageDetail_20' ) start [2025-08-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687203', 'tblTempUsageDetail_20' ) end [2025-08-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687203', 'tblTempVendorCDR_20' ) start [2025-08-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687203', 'tblTempVendorCDR_20' ) end [2025-08-20 00:25:18] Production.INFO: ProcessCDR(1,15687203,1,1,2) [2025-08-20 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15687203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15687203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15687203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15687203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687203', 'tblTempUsageDetail_20' ) start [2025-08-20 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687203', 'tblTempUsageDetail_20' ) end [2025-08-20 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-20 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-20 00:25:28] Production.INFO: ==5087== Releasing lock... [2025-08-20 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 00:25:28] Production.INFO: 37.25 MB #Memory Used# [2025-08-20 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 22:25:06 [end_date_ymd] => 2025-08-20 01:25:06 [RateCDR] => 1 ) [2025-08-20 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-08-19 22:25:06' and `end` < '2025-08-20 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-08-20 01:25:18] Production.INFO: count ==586 [2025-08-20 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 22:25:06 - End Time 2025-08-20 01:25:06 [2025-08-20 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687450', 'tblTempUsageDetail_20' ) start [2025-08-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687450', 'tblTempUsageDetail_20' ) end [2025-08-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687450', 'tblTempVendorCDR_20' ) start [2025-08-20 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687450', 'tblTempVendorCDR_20' ) end [2025-08-20 01:25:18] Production.INFO: ProcessCDR(1,15687450,1,1,2) [2025-08-20 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15687450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15687450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15687450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15687450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687450', 'tblTempUsageDetail_20' ) start [2025-08-20 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687450', 'tblTempUsageDetail_20' ) end [2025-08-20 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 01:25:25] Production.INFO: ==9410== Releasing lock... [2025-08-20 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 01:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-08-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-19 23:25:05 [end_date_ymd] => 2025-08-20 02:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-19 23:25:05' and `end` < '2025-08-20 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-08-20 02:25:17] Production.INFO: count ==517 [2025-08-20 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-19 23:25:05 - End Time 2025-08-20 02:25:05 [2025-08-20 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687697', 'tblTempUsageDetail_20' ) start [2025-08-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687697', 'tblTempUsageDetail_20' ) end [2025-08-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687697', 'tblTempVendorCDR_20' ) start [2025-08-20 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687697', 'tblTempVendorCDR_20' ) end [2025-08-20 02:25:18] Production.INFO: ProcessCDR(1,15687697,1,1,2) [2025-08-20 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15687697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15687697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15687697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15687697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687697', 'tblTempUsageDetail_20' ) start [2025-08-20 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687697', 'tblTempUsageDetail_20' ) end [2025-08-20 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 02:25:26] Production.INFO: ==14171== Releasing lock... [2025-08-20 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 02:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-08-20 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 00:25:05 [end_date_ymd] => 2025-08-20 03:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 00:25:05' and `end` < '2025-08-20 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-08-20 03:25:17] Production.INFO: count ==393 [2025-08-20 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 00:25:05 - End Time 2025-08-20 03:25:05 [2025-08-20 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687944', 'tblTempUsageDetail_20' ) start [2025-08-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15687944', 'tblTempUsageDetail_20' ) end [2025-08-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687944', 'tblTempVendorCDR_20' ) start [2025-08-20 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15687944', 'tblTempVendorCDR_20' ) end [2025-08-20 03:25:18] Production.INFO: ProcessCDR(1,15687944,1,1,2) [2025-08-20 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15687944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15687944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15687944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15687944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687944', 'tblTempUsageDetail_20' ) start [2025-08-20 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15687944', 'tblTempUsageDetail_20' ) end [2025-08-20 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 03:25:25] Production.INFO: ==20046== Releasing lock... [2025-08-20 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 03:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-08-20 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 01:25:05 [end_date_ymd] => 2025-08-20 04:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 01:25:05' and `end` < '2025-08-20 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-08-20 04:25:17] Production.INFO: count ==277 [2025-08-20 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-20 01:25:05 - End Time 2025-08-20 04:25:05 [2025-08-20 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688192', 'tblTempUsageDetail_20' ) start [2025-08-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688192', 'tblTempUsageDetail_20' ) end [2025-08-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688192', 'tblTempVendorCDR_20' ) start [2025-08-20 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688192', 'tblTempVendorCDR_20' ) end [2025-08-20 04:25:17] Production.INFO: ProcessCDR(1,15688192,1,1,2) [2025-08-20 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15688192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15688192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15688192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15688192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688192', 'tblTempUsageDetail_20' ) start [2025-08-20 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688192', 'tblTempUsageDetail_20' ) end [2025-08-20 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-20 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-20 04:25:24] Production.INFO: ==26203== Releasing lock... [2025-08-20 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 04:25:24] Production.INFO: 30 MB #Memory Used# [2025-08-20 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 02:25:06 [end_date_ymd] => 2025-08-20 05:25:06 [RateCDR] => 1 ) [2025-08-20 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-20 02:25:06' and `end` < '2025-08-20 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-20 05:25:18] Production.INFO: count ==185 [2025-08-20 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 02:25:06 - End Time 2025-08-20 05:25:06 [2025-08-20 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688440', 'tblTempUsageDetail_20' ) start [2025-08-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688440', 'tblTempUsageDetail_20' ) end [2025-08-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688440', 'tblTempVendorCDR_20' ) start [2025-08-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688440', 'tblTempVendorCDR_20' ) end [2025-08-20 05:25:18] Production.INFO: ProcessCDR(1,15688440,1,1,2) [2025-08-20 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15688440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15688440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15688440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15688440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688440', 'tblTempUsageDetail_20' ) start [2025-08-20 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688440', 'tblTempUsageDetail_20' ) end [2025-08-20 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 05:25:25] Production.INFO: ==31256== Releasing lock... [2025-08-20 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 05:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-20 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 03:25:06 [end_date_ymd] => 2025-08-20 06:25:06 [RateCDR] => 1 ) [2025-08-20 06: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-08-20 03:25:06' and `end` < '2025-08-20 06: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-08-20 06:25:18] Production.INFO: count ==122 [2025-08-20 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 03:25:06 - End Time 2025-08-20 06:25:06 [2025-08-20 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688687', 'tblTempUsageDetail_20' ) start [2025-08-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688687', 'tblTempUsageDetail_20' ) end [2025-08-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688687', 'tblTempVendorCDR_20' ) start [2025-08-20 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688687', 'tblTempVendorCDR_20' ) end [2025-08-20 06:25:18] Production.INFO: ProcessCDR(1,15688687,1,1,2) [2025-08-20 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15688687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15688687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15688687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15688687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688687', 'tblTempUsageDetail_20' ) start [2025-08-20 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688687', 'tblTempUsageDetail_20' ) end [2025-08-20 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 06:25:25] Production.INFO: ==3573== Releasing lock... [2025-08-20 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 04:25:05 [end_date_ymd] => 2025-08-20 07:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 04:25:05' and `end` < '2025-08-20 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-08-20 07:25:17] Production.INFO: count ==137 [2025-08-20 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-20 04:25:05 - End Time 2025-08-20 07:25:05 [2025-08-20 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688934', 'tblTempUsageDetail_20' ) start [2025-08-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15688934', 'tblTempUsageDetail_20' ) end [2025-08-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688934', 'tblTempVendorCDR_20' ) start [2025-08-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15688934', 'tblTempVendorCDR_20' ) end [2025-08-20 07:25:17] Production.INFO: ProcessCDR(1,15688934,1,1,2) [2025-08-20 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15688934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15688934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15688934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15688934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688934', 'tblTempUsageDetail_20' ) start [2025-08-20 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15688934', 'tblTempUsageDetail_20' ) end [2025-08-20 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-20 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-20 07:25:24] Production.INFO: ==7856== Releasing lock... [2025-08-20 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-20 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 05:25:06 [end_date_ymd] => 2025-08-20 08:25:06 [RateCDR] => 1 ) [2025-08-20 08: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-08-20 05:25:06' and `end` < '2025-08-20 08: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-08-20 08:25:18] Production.INFO: count ==342 [2025-08-20 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 05:25:06 - End Time 2025-08-20 08:25:06 [2025-08-20 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689181', 'tblTempUsageDetail_20' ) start [2025-08-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689181', 'tblTempUsageDetail_20' ) end [2025-08-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689181', 'tblTempVendorCDR_20' ) start [2025-08-20 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689181', 'tblTempVendorCDR_20' ) end [2025-08-20 08:25:18] Production.INFO: ProcessCDR(1,15689181,1,1,2) [2025-08-20 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15689181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15689181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15689181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15689181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689181', 'tblTempUsageDetail_20' ) start [2025-08-20 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689181', 'tblTempUsageDetail_20' ) end [2025-08-20 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-20 08:25:25] Production.INFO: ==12204== Releasing lock... [2025-08-20 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 08:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 06:25:05 [end_date_ymd] => 2025-08-20 09:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 06:25:05' and `end` < '2025-08-20 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-08-20 09:25:18] Production.INFO: count ==1093 [2025-08-20 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 06:25:05 - End Time 2025-08-20 09:25:05 [2025-08-20 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689428', 'tblTempUsageDetail_20' ) start [2025-08-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689428', 'tblTempUsageDetail_20' ) end [2025-08-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689428', 'tblTempVendorCDR_20' ) start [2025-08-20 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689428', 'tblTempVendorCDR_20' ) end [2025-08-20 09:25:18] Production.INFO: ProcessCDR(1,15689428,1,1,2) [2025-08-20 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15689428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15689428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15689428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15689428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689428', 'tblTempUsageDetail_20' ) start [2025-08-20 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689428', 'tblTempUsageDetail_20' ) end [2025-08-20 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-20 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-20 09:25:27] Production.INFO: ==16673== Releasing lock... [2025-08-20 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 09:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-08-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 07:25:05 [end_date_ymd] => 2025-08-20 10:25:05 [RateCDR] => 1 ) [2025-08-20 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-20 07:25:05' and `end` < '2025-08-20 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-20 10:25:18] Production.INFO: count ==2565 [2025-08-20 10:25:19] Production.ERROR: pbx CDR StartTime 2025-08-20 07:25:05 - End Time 2025-08-20 10:25:05 [2025-08-20 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689675', 'tblTempUsageDetail_20' ) start [2025-08-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689675', 'tblTempUsageDetail_20' ) end [2025-08-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689675', 'tblTempVendorCDR_20' ) start [2025-08-20 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689675', 'tblTempVendorCDR_20' ) end [2025-08-20 10:25:19] Production.INFO: ProcessCDR(1,15689675,1,1,2) [2025-08-20 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15689675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15689675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15689675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15689675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689675', 'tblTempUsageDetail_20' ) start [2025-08-20 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689675', 'tblTempUsageDetail_20' ) end [2025-08-20 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-20 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-20 10:25:29] Production.INFO: ==22280== Releasing lock... [2025-08-20 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 10:25:29] Production.INFO: 47.75 MB #Memory Used# [2025-08-20 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 08:25:05 [end_date_ymd] => 2025-08-20 11:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 08:25:05' and `end` < '2025-08-20 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-08-20 11:25:20] Production.INFO: count ==4014 [2025-08-20 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-20 08:25:05 - End Time 2025-08-20 11:25:05 [2025-08-20 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689922', 'tblTempUsageDetail_20' ) start [2025-08-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15689922', 'tblTempUsageDetail_20' ) end [2025-08-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689922', 'tblTempVendorCDR_20' ) start [2025-08-20 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15689922', 'tblTempVendorCDR_20' ) end [2025-08-20 11:25:23] Production.INFO: ProcessCDR(1,15689922,1,1,2) [2025-08-20 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15689922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15689922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15689922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15689922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689922', 'tblTempUsageDetail_20' ) start [2025-08-20 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15689922', 'tblTempUsageDetail_20' ) end [2025-08-20 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-20 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-20 11:25:34] Production.INFO: ==26589== Releasing lock... [2025-08-20 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 11:25:34] Production.INFO: 58.25 MB #Memory Used# [2025-08-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 09:25:05 [end_date_ymd] => 2025-08-20 12:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 09:25:05' and `end` < '2025-08-20 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-08-20 12:25:19] Production.INFO: count ==5046 [2025-08-20 12:25:21] Production.ERROR: pbx CDR StartTime 2025-08-20 09:25:05 - End Time 2025-08-20 12:25:05 [2025-08-20 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690169', 'tblTempUsageDetail_20' ) start [2025-08-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690169', 'tblTempUsageDetail_20' ) end [2025-08-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690169', 'tblTempVendorCDR_20' ) start [2025-08-20 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690169', 'tblTempVendorCDR_20' ) end [2025-08-20 12:25:22] Production.INFO: ProcessCDR(1,15690169,1,1,2) [2025-08-20 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15690169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15690169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15690169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15690169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690169', 'tblTempUsageDetail_20' ) start [2025-08-20 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690169', 'tblTempUsageDetail_20' ) end [2025-08-20 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-20 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-20 12:25:34] Production.INFO: ==30990== Releasing lock... [2025-08-20 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 12:25:34] Production.INFO: 66 MB #Memory Used# [2025-08-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 10:25:05 [end_date_ymd] => 2025-08-20 13:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 10:25:05' and `end` < '2025-08-20 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-08-20 13:25:19] Production.INFO: count ==4886 [2025-08-20 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-20 10:25:05 - End Time 2025-08-20 13:25:05 [2025-08-20 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690416', 'tblTempUsageDetail_20' ) start [2025-08-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690416', 'tblTempUsageDetail_20' ) end [2025-08-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690416', 'tblTempVendorCDR_20' ) start [2025-08-20 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690416', 'tblTempVendorCDR_20' ) end [2025-08-20 13:25:21] Production.INFO: ProcessCDR(1,15690416,1,1,2) [2025-08-20 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15690416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15690416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15690416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15690416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690416', 'tblTempUsageDetail_20' ) start [2025-08-20 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690416', 'tblTempUsageDetail_20' ) end [2025-08-20 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-20 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-20 13:25:33] Production.INFO: ==3160== Releasing lock... [2025-08-20 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 13:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-08-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 11:25:05 [end_date_ymd] => 2025-08-20 14:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 11:25:05' and `end` < '2025-08-20 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-08-20 14:25:20] Production.INFO: count ==4883 [2025-08-20 14:25:23] Production.ERROR: pbx CDR StartTime 2025-08-20 11:25:05 - End Time 2025-08-20 14:25:05 [2025-08-20 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690663', 'tblTempUsageDetail_20' ) start [2025-08-20 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690663', 'tblTempUsageDetail_20' ) end [2025-08-20 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690663', 'tblTempVendorCDR_20' ) start [2025-08-20 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690663', 'tblTempVendorCDR_20' ) end [2025-08-20 14:25:23] Production.INFO: ProcessCDR(1,15690663,1,1,2) [2025-08-20 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15690663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15690663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15690663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15690663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690663', 'tblTempUsageDetail_20' ) start [2025-08-20 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690663', 'tblTempUsageDetail_20' ) end [2025-08-20 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-20 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-20 14:25:34] Production.INFO: ==7625== Releasing lock... [2025-08-20 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 14:25:34] Production.INFO: 64.75 MB #Memory Used# [2025-08-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 12:25:05 [end_date_ymd] => 2025-08-20 15:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 12:25:05' and `end` < '2025-08-20 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-08-20 15:25:19] Production.INFO: count ==4616 [2025-08-20 15:25:21] Production.ERROR: pbx CDR StartTime 2025-08-20 12:25:05 - End Time 2025-08-20 15:25:05 [2025-08-20 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690910', 'tblTempUsageDetail_20' ) start [2025-08-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15690910', 'tblTempUsageDetail_20' ) end [2025-08-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690910', 'tblTempVendorCDR_20' ) start [2025-08-20 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15690910', 'tblTempVendorCDR_20' ) end [2025-08-20 15:25:21] Production.INFO: ProcessCDR(1,15690910,1,1,2) [2025-08-20 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15690910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15690910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15690910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15690910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690910', 'tblTempUsageDetail_20' ) start [2025-08-20 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15690910', 'tblTempUsageDetail_20' ) end [2025-08-20 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-20 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-20 15:25:33] Production.INFO: ==13327== Releasing lock... [2025-08-20 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 15:25:33] Production.INFO: 62.75 MB #Memory Used# [2025-08-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 13:25:05 [end_date_ymd] => 2025-08-20 16:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 13:25:05' and `end` < '2025-08-20 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-08-20 16:25:21] Production.INFO: count ==4935 [2025-08-20 16:25:23] Production.ERROR: pbx CDR StartTime 2025-08-20 13:25:05 - End Time 2025-08-20 16:25:05 [2025-08-20 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691157', 'tblTempUsageDetail_20' ) start [2025-08-20 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691157', 'tblTempUsageDetail_20' ) end [2025-08-20 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691157', 'tblTempVendorCDR_20' ) start [2025-08-20 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691157', 'tblTempVendorCDR_20' ) end [2025-08-20 16:25:24] Production.INFO: ProcessCDR(1,15691157,1,1,2) [2025-08-20 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15691157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15691157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15691157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15691157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691157', 'tblTempUsageDetail_20' ) start [2025-08-20 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691157', 'tblTempUsageDetail_20' ) end [2025-08-20 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-20 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-20 16:25:36] Production.INFO: ==18314== Releasing lock... [2025-08-20 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 16:25:36] Production.INFO: 65.25 MB #Memory Used# [2025-08-20 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 14:25:05 [end_date_ymd] => 2025-08-20 17:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 14:25:05' and `end` < '2025-08-20 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-08-20 17:25:18] Production.INFO: count ==4477 [2025-08-20 17:25:20] Production.ERROR: pbx CDR StartTime 2025-08-20 14:25:05 - End Time 2025-08-20 17:25:05 [2025-08-20 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691404', 'tblTempUsageDetail_20' ) start [2025-08-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691404', 'tblTempUsageDetail_20' ) end [2025-08-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691404', 'tblTempVendorCDR_20' ) start [2025-08-20 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691404', 'tblTempVendorCDR_20' ) end [2025-08-20 17:25:21] Production.INFO: ProcessCDR(1,15691404,1,1,2) [2025-08-20 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15691404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15691404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15691404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15691404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691404', 'tblTempUsageDetail_20' ) start [2025-08-20 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691404', 'tblTempUsageDetail_20' ) end [2025-08-20 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-20 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-20 17:25:31] Production.INFO: ==22740== Releasing lock... [2025-08-20 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 17:25:31] Production.INFO: 61.75 MB #Memory Used# [2025-08-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 15:25:05 [end_date_ymd] => 2025-08-20 18:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 15:25:05' and `end` < '2025-08-20 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-08-20 18:25:18] Production.INFO: count ==3901 [2025-08-20 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-20 15:25:05 - End Time 2025-08-20 18:25:05 [2025-08-20 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691651', 'tblTempUsageDetail_20' ) start [2025-08-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691651', 'tblTempUsageDetail_20' ) end [2025-08-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691651', 'tblTempVendorCDR_20' ) start [2025-08-20 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691651', 'tblTempVendorCDR_20' ) end [2025-08-20 18:25:20] Production.INFO: ProcessCDR(1,15691651,1,1,2) [2025-08-20 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15691651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15691651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15691651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 18:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15691651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 18:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691651', 'tblTempUsageDetail_20' ) start [2025-08-20 18:25:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691651', 'tblTempUsageDetail_20' ) end [2025-08-20 18:25:44] Production.ERROR: pbx prc_insertCDR start [2025-08-20 18:25:47] Production.ERROR: pbx prc_insertCDR end [2025-08-20 18:25:49] Production.INFO: ==27214== Releasing lock... [2025-08-20 18:25:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 18:25:49] Production.INFO: 57.5 MB #Memory Used# [2025-08-20 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 16:25:05 [end_date_ymd] => 2025-08-20 19:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 16:25:05' and `end` < '2025-08-20 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-08-20 19:25:18] Production.INFO: count ==2889 [2025-08-20 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-20 16:25:05 - End Time 2025-08-20 19:25:05 [2025-08-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691896', 'tblTempUsageDetail_20' ) start [2025-08-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15691896', 'tblTempUsageDetail_20' ) end [2025-08-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691896', 'tblTempVendorCDR_20' ) start [2025-08-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15691896', 'tblTempVendorCDR_20' ) end [2025-08-20 19:25:19] Production.INFO: ProcessCDR(1,15691896,1,1,2) [2025-08-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15691896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15691896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15691896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15691896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691896', 'tblTempUsageDetail_20' ) start [2025-08-20 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15691896', 'tblTempUsageDetail_20' ) end [2025-08-20 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-20 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-20 19:25:28] Production.INFO: ==31737== Releasing lock... [2025-08-20 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 19:25:28] Production.INFO: 50.25 MB #Memory Used# [2025-08-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 17:25:05 [end_date_ymd] => 2025-08-20 20:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 17:25:05' and `end` < '2025-08-20 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-08-20 20:25:18] Production.INFO: count ==2291 [2025-08-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-20 17:25:05 - End Time 2025-08-20 20:25:05 [2025-08-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692143', 'tblTempUsageDetail_20' ) start [2025-08-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692143', 'tblTempUsageDetail_20' ) end [2025-08-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692143', 'tblTempVendorCDR_20' ) start [2025-08-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692143', 'tblTempVendorCDR_20' ) end [2025-08-20 20:25:19] Production.INFO: ProcessCDR(1,15692143,1,1,2) [2025-08-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15692143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15692143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15692143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15692143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692143', 'tblTempUsageDetail_20' ) start [2025-08-20 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692143', 'tblTempUsageDetail_20' ) end [2025-08-20 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-20 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-20 20:25:27] Production.INFO: ==3739== Releasing lock... [2025-08-20 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 20:25:27] Production.INFO: 45.5 MB #Memory Used# [2025-08-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 18:25:05 [end_date_ymd] => 2025-08-20 21:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 18:25:05' and `end` < '2025-08-20 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-08-20 21:25:18] Production.INFO: count ==1646 [2025-08-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 18:25:05 - End Time 2025-08-20 21:25:05 [2025-08-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692390', 'tblTempUsageDetail_20' ) start [2025-08-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692390', 'tblTempUsageDetail_20' ) end [2025-08-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692390', 'tblTempVendorCDR_20' ) start [2025-08-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692390', 'tblTempVendorCDR_20' ) end [2025-08-20 21:25:18] Production.INFO: ProcessCDR(1,15692390,1,1,2) [2025-08-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15692390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15692390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15692390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15692390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692390', 'tblTempUsageDetail_20' ) start [2025-08-20 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692390', 'tblTempUsageDetail_20' ) end [2025-08-20 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-20 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-20 21:25:26] Production.INFO: ==8054== Releasing lock... [2025-08-20 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 21:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-08-20 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 19:25:06 [end_date_ymd] => 2025-08-20 22:25:06 [RateCDR] => 1 ) [2025-08-20 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-08-20 19:25:06' and `end` < '2025-08-20 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-08-20 22:25:18] Production.INFO: count ==1266 [2025-08-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 19:25:06 - End Time 2025-08-20 22:25:06 [2025-08-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692637', 'tblTempUsageDetail_20' ) start [2025-08-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692637', 'tblTempUsageDetail_20' ) end [2025-08-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692637', 'tblTempVendorCDR_20' ) start [2025-08-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692637', 'tblTempVendorCDR_20' ) end [2025-08-20 22:25:18] Production.INFO: ProcessCDR(1,15692637,1,1,2) [2025-08-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15692637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15692637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15692637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15692637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692637', 'tblTempUsageDetail_20' ) start [2025-08-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692637', 'tblTempUsageDetail_20' ) end [2025-08-20 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-20 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-20 22:25:26] Production.INFO: ==12374== Releasing lock... [2025-08-20 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 22:25:26] Production.INFO: 38 MB #Memory Used# [2025-08-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 20:25:05 [end_date_ymd] => 2025-08-20 23:25:05 [RateCDR] => 1 ) [2025-08-20 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-08-20 20:25:05' and `end` < '2025-08-20 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-08-20 23:25:18] Production.INFO: count ==916 [2025-08-20 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 20:25:05 - End Time 2025-08-20 23:25:05 [2025-08-20 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692884', 'tblTempUsageDetail_20' ) start [2025-08-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15692884', 'tblTempUsageDetail_20' ) end [2025-08-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692884', 'tblTempVendorCDR_20' ) start [2025-08-20 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15692884', 'tblTempVendorCDR_20' ) end [2025-08-20 23:25:18] Production.INFO: ProcessCDR(1,15692884,1,1,2) [2025-08-20 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15692884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15692884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-20 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15692884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15692884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692884', 'tblTempUsageDetail_20' ) start [2025-08-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15692884', 'tblTempUsageDetail_20' ) end [2025-08-20 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-20 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-20 23:25:26] Production.INFO: ==16640== Releasing lock... [2025-08-20 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-20 23:25:26] Production.INFO: 35.5 MB #Memory Used#