[2025-07-06 00:25:04] Production.INFO: next invoice date [2025-07-06 00:25:04] Production.INFO: 2025-08-06 [2025-07-06 00:25:04] Production.INFO: getdaysdiff [2025-07-06 00:25:04] Production.INFO: +31 [2025-07-06 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-07-06 00:25:04,1,0,,,0) [2025-07-06 00:25:04] Production.INFO: next invoice date [2025-07-06 00:25:04] Production.INFO: 2025-08-06 [2025-07-06 00:25:04] Production.INFO: getdaysdiff [2025-07-06 00:25:04] Production.INFO: +31 [2025-07-06 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-07-06 00:25:04,0,0,,,0) [2025-07-06 00:25:04] Production.INFO: next invoice date [2025-07-06 00:25:04] Production.INFO: 2025-08-06 [2025-07-06 00:25:04] Production.INFO: getdaysdiff [2025-07-06 00:25:04] Production.INFO: +31 [2025-07-06 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-07-06 00:25:04,0,0,,,0) [2025-07-06 00:25:04] Production.INFO: next invoice date [2025-07-06 00:25:04] Production.INFO: 2025-08-06 [2025-07-06 00:25:04] Production.INFO: getdaysdiff [2025-07-06 00:25:04] Production.INFO: +31 [2025-07-06 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-07-06 00:25:04,0,0,,,0) [2025-07-06 00:25:04] Production.INFO: next invoice date [2025-07-06 00:25:04] Production.INFO: 2025-08-06 [2025-07-06 00:25:04] Production.INFO: getdaysdiff [2025-07-06 00:25:04] Production.INFO: +31 [2025-07-06 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-07-06 00:25:04,0,0,,,0) [2025-07-06 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-05 21:25:05 [end_date_ymd] => 2025-07-06 00:25:05 [RateCDR] => 1 ) [2025-07-06 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-05 21:25:05' and `end` < '2025-07-06 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 00:25:18] Production.INFO: count ==661 [2025-07-06 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-05 21:25:05 - End Time 2025-07-06 00:25:05 [2025-07-06 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420486', 'tblTempUsageDetail_20' ) start [2025-07-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420486', 'tblTempUsageDetail_20' ) end [2025-07-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420486', 'tblTempVendorCDR_20' ) start [2025-07-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420486', 'tblTempVendorCDR_20' ) end [2025-07-06 00:25:18] Production.INFO: ProcessCDR(1,15420486,1,1,2) [2025-07-06 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15420486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15420486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15420486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15420486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420486', 'tblTempUsageDetail_20' ) start [2025-07-06 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420486', 'tblTempUsageDetail_20' ) end [2025-07-06 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 00:25:26] Production.INFO: ==13168== Releasing lock... [2025-07-06 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 00:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-07-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-05 22:25:05 [end_date_ymd] => 2025-07-06 01:25:05 [RateCDR] => 1 ) [2025-07-06 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-05 22:25:05' and `end` < '2025-07-06 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 01:25:18] Production.INFO: count ==722 [2025-07-06 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-05 22:25:05 - End Time 2025-07-06 01:25:05 [2025-07-06 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420733', 'tblTempUsageDetail_20' ) start [2025-07-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420733', 'tblTempUsageDetail_20' ) end [2025-07-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420733', 'tblTempVendorCDR_20' ) start [2025-07-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420733', 'tblTempVendorCDR_20' ) end [2025-07-06 01:25:18] Production.INFO: ProcessCDR(1,15420733,1,1,2) [2025-07-06 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15420733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15420733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15420733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15420733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420733', 'tblTempUsageDetail_20' ) start [2025-07-06 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420733', 'tblTempUsageDetail_20' ) end [2025-07-06 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 01:25:25] Production.INFO: ==18704== Releasing lock... [2025-07-06 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 01:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-07-06 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-05 23:25:05 [end_date_ymd] => 2025-07-06 02:25:05 [RateCDR] => 1 ) [2025-07-06 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-05 23:25:05' and `end` < '2025-07-06 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 02:25:17] Production.INFO: count ==735 [2025-07-06 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-05 23:25:05 - End Time 2025-07-06 02:25:05 [2025-07-06 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420980', 'tblTempUsageDetail_20' ) start [2025-07-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15420980', 'tblTempUsageDetail_20' ) end [2025-07-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420980', 'tblTempVendorCDR_20' ) start [2025-07-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15420980', 'tblTempVendorCDR_20' ) end [2025-07-06 02:25:18] Production.INFO: ProcessCDR(1,15420980,1,1,2) [2025-07-06 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15420980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15420980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15420980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15420980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420980', 'tblTempUsageDetail_20' ) start [2025-07-06 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15420980', 'tblTempUsageDetail_20' ) end [2025-07-06 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 02:25:25] Production.INFO: ==23128== Releasing lock... [2025-07-06 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 02:25:25] Production.INFO: 33.75 MB #Memory Used# [2025-07-06 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 00:25:05 [end_date_ymd] => 2025-07-06 03:25:05 [RateCDR] => 1 ) [2025-07-06 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-07-06 00:25:05' and `end` < '2025-07-06 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-07-06 03:25:19] Production.INFO: count ==695 [2025-07-06 03:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 00:25:05 - End Time 2025-07-06 03:25:05 [2025-07-06 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421227', 'tblTempUsageDetail_20' ) start [2025-07-06 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421227', 'tblTempUsageDetail_20' ) end [2025-07-06 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421227', 'tblTempVendorCDR_20' ) start [2025-07-06 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421227', 'tblTempVendorCDR_20' ) end [2025-07-06 03:25:19] Production.INFO: ProcessCDR(1,15421227,1,1,2) [2025-07-06 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15421227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15421227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15421227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15421227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421227', 'tblTempUsageDetail_20' ) start [2025-07-06 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421227', 'tblTempUsageDetail_20' ) end [2025-07-06 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 03:25:25] Production.INFO: ==27377== Releasing lock... [2025-07-06 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 03:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-07-06 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 01:25:05 [end_date_ymd] => 2025-07-06 04:25:05 [RateCDR] => 1 ) [2025-07-06 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-07-06 01:25:05' and `end` < '2025-07-06 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-07-06 04:25:17] Production.INFO: count ==491 [2025-07-06 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-06 01:25:05 - End Time 2025-07-06 04:25:05 [2025-07-06 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421475', 'tblTempUsageDetail_20' ) start [2025-07-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421475', 'tblTempUsageDetail_20' ) end [2025-07-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421475', 'tblTempVendorCDR_20' ) start [2025-07-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421475', 'tblTempVendorCDR_20' ) end [2025-07-06 04:25:18] Production.INFO: ProcessCDR(1,15421475,1,1,2) [2025-07-06 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15421475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15421475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15421475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15421475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421475', 'tblTempUsageDetail_20' ) start [2025-07-06 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421475', 'tblTempUsageDetail_20' ) end [2025-07-06 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-06 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 04:25:24] Production.INFO: ==32734== Releasing lock... [2025-07-06 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 04:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-06 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 02:25:05 [end_date_ymd] => 2025-07-06 05:25:05 [RateCDR] => 1 ) [2025-07-06 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-07-06 02:25:05' and `end` < '2025-07-06 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-07-06 05:25:18] Production.INFO: count ==335 [2025-07-06 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 02:25:05 - End Time 2025-07-06 05:25:05 [2025-07-06 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421723', 'tblTempUsageDetail_20' ) start [2025-07-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421723', 'tblTempUsageDetail_20' ) end [2025-07-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421723', 'tblTempVendorCDR_20' ) start [2025-07-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421723', 'tblTempVendorCDR_20' ) end [2025-07-06 05:25:18] Production.INFO: ProcessCDR(1,15421723,1,1,2) [2025-07-06 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15421723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15421723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15421723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15421723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421723', 'tblTempUsageDetail_20' ) start [2025-07-06 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421723', 'tblTempUsageDetail_20' ) end [2025-07-06 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 05:25:24] Production.INFO: ==6053== Releasing lock... [2025-07-06 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 05:25:24] Production.INFO: 31 MB #Memory Used# [2025-07-06 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 03:25:05 [end_date_ymd] => 2025-07-06 06:25:05 [RateCDR] => 1 ) [2025-07-06 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 03:25:05' and `end` < '2025-07-06 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 06:25:18] Production.INFO: count ==209 [2025-07-06 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 03:25:05 - End Time 2025-07-06 06:25:05 [2025-07-06 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421970', 'tblTempUsageDetail_20' ) start [2025-07-06 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15421970', 'tblTempUsageDetail_20' ) end [2025-07-06 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421970', 'tblTempVendorCDR_20' ) start [2025-07-06 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15421970', 'tblTempVendorCDR_20' ) end [2025-07-06 06:25:18] Production.INFO: ProcessCDR(1,15421970,1,1,2) [2025-07-06 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15421970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15421970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15421970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15421970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421970', 'tblTempUsageDetail_20' ) start [2025-07-06 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15421970', 'tblTempUsageDetail_20' ) end [2025-07-06 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 06:25:24] Production.INFO: ==11084== Releasing lock... [2025-07-06 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 06:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-07-06 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 04:25:06 [end_date_ymd] => 2025-07-06 07:25:06 [RateCDR] => 1 ) [2025-07-06 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 04:25:06' and `end` < '2025-07-06 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 07:25:18] Production.INFO: count ==151 [2025-07-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 04:25:06 - End Time 2025-07-06 07:25:06 [2025-07-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422217', 'tblTempUsageDetail_20' ) start [2025-07-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422217', 'tblTempUsageDetail_20' ) end [2025-07-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422217', 'tblTempVendorCDR_20' ) start [2025-07-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422217', 'tblTempVendorCDR_20' ) end [2025-07-06 07:25:18] Production.INFO: ProcessCDR(1,15422217,1,1,2) [2025-07-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15422217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15422217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15422217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15422217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422217', 'tblTempUsageDetail_20' ) start [2025-07-06 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422217', 'tblTempUsageDetail_20' ) end [2025-07-06 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-06 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-06 07:25:22] Production.INFO: ==15523== Releasing lock... [2025-07-06 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-07-06 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 05:25:05 [end_date_ymd] => 2025-07-06 08:25:05 [RateCDR] => 1 ) [2025-07-06 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 05:25:05' and `end` < '2025-07-06 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 08:25:17] Production.INFO: count ==145 [2025-07-06 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-06 05:25:05 - End Time 2025-07-06 08:25:05 [2025-07-06 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422464', 'tblTempUsageDetail_20' ) start [2025-07-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422464', 'tblTempUsageDetail_20' ) end [2025-07-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422464', 'tblTempVendorCDR_20' ) start [2025-07-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422464', 'tblTempVendorCDR_20' ) end [2025-07-06 08:25:17] Production.INFO: ProcessCDR(1,15422464,1,1,2) [2025-07-06 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15422464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15422464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15422464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15422464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422464', 'tblTempUsageDetail_20' ) start [2025-07-06 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422464', 'tblTempUsageDetail_20' ) end [2025-07-06 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 08:25:24] Production.INFO: ==20064== Releasing lock... [2025-07-06 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-06 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 06:25:06 [end_date_ymd] => 2025-07-06 09:25:06 [RateCDR] => 1 ) [2025-07-06 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 06:25:06' and `end` < '2025-07-06 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 09:25:18] Production.INFO: count ==161 [2025-07-06 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 06:25:06 - End Time 2025-07-06 09:25:06 [2025-07-06 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422711', 'tblTempUsageDetail_20' ) start [2025-07-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422711', 'tblTempUsageDetail_20' ) end [2025-07-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422711', 'tblTempVendorCDR_20' ) start [2025-07-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422711', 'tblTempVendorCDR_20' ) end [2025-07-06 09:25:18] Production.INFO: ProcessCDR(1,15422711,1,1,2) [2025-07-06 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15422711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15422711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15422711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15422711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422711', 'tblTempUsageDetail_20' ) start [2025-07-06 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422711', 'tblTempUsageDetail_20' ) end [2025-07-06 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 09:25:25] Production.INFO: ==25103== Releasing lock... [2025-07-06 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 09:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-07-06 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 07:25:06 [end_date_ymd] => 2025-07-06 10:25:06 [RateCDR] => 1 ) [2025-07-06 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-07-06 07:25:06' and `end` < '2025-07-06 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-07-06 10:25:18] Production.INFO: count ==212 [2025-07-06 10:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 07:25:06 - End Time 2025-07-06 10:25:06 [2025-07-06 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422958', 'tblTempUsageDetail_20' ) start [2025-07-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15422958', 'tblTempUsageDetail_20' ) end [2025-07-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422958', 'tblTempVendorCDR_20' ) start [2025-07-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15422958', 'tblTempVendorCDR_20' ) end [2025-07-06 10:25:18] Production.INFO: ProcessCDR(1,15422958,1,1,2) [2025-07-06 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15422958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15422958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15422958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15422958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422958', 'tblTempUsageDetail_20' ) start [2025-07-06 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15422958', 'tblTempUsageDetail_20' ) end [2025-07-06 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 10:25:24] Production.INFO: ==29792== Releasing lock... [2025-07-06 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 10:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 08:25:05 [end_date_ymd] => 2025-07-06 11:25:05 [RateCDR] => 1 ) [2025-07-06 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 08:25:05' and `end` < '2025-07-06 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 11:25:17] Production.INFO: count ==387 [2025-07-06 11:25:17] Production.ERROR: pbx CDR StartTime 2025-07-06 08:25:05 - End Time 2025-07-06 11:25:05 [2025-07-06 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423205', 'tblTempUsageDetail_20' ) start [2025-07-06 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423205', 'tblTempUsageDetail_20' ) end [2025-07-06 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423205', 'tblTempVendorCDR_20' ) start [2025-07-06 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423205', 'tblTempVendorCDR_20' ) end [2025-07-06 11:25:17] Production.INFO: ProcessCDR(1,15423205,1,1,2) [2025-07-06 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15423205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15423205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15423205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15423205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423205', 'tblTempUsageDetail_20' ) start [2025-07-06 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423205', 'tblTempUsageDetail_20' ) end [2025-07-06 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 11:25:25] Production.INFO: ==2090== Releasing lock... [2025-07-06 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 11:25:25] Production.INFO: 31 MB #Memory Used# [2025-07-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 09:25:05 [end_date_ymd] => 2025-07-06 12:25:05 [RateCDR] => 1 ) [2025-07-06 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 09:25:05' and `end` < '2025-07-06 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 12:25:17] Production.INFO: count ==651 [2025-07-06 12:25:17] Production.ERROR: pbx CDR StartTime 2025-07-06 09:25:05 - End Time 2025-07-06 12:25:05 [2025-07-06 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423452', 'tblTempUsageDetail_20' ) start [2025-07-06 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423452', 'tblTempUsageDetail_20' ) end [2025-07-06 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423452', 'tblTempVendorCDR_20' ) start [2025-07-06 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423452', 'tblTempVendorCDR_20' ) end [2025-07-06 12:25:17] Production.INFO: ProcessCDR(1,15423452,1,1,2) [2025-07-06 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15423452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15423452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15423452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15423452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423452', 'tblTempUsageDetail_20' ) start [2025-07-06 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423452', 'tblTempUsageDetail_20' ) end [2025-07-06 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 12:25:25] Production.INFO: ==6974== Releasing lock... [2025-07-06 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 12:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-07-06 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 10:25:06 [end_date_ymd] => 2025-07-06 13:25:06 [RateCDR] => 1 ) [2025-07-06 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 10:25:06' and `end` < '2025-07-06 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 13:25:18] Production.INFO: count ==934 [2025-07-06 13:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 10:25:06 - End Time 2025-07-06 13:25:06 [2025-07-06 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423699', 'tblTempUsageDetail_20' ) start [2025-07-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423699', 'tblTempUsageDetail_20' ) end [2025-07-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423699', 'tblTempVendorCDR_20' ) start [2025-07-06 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423699', 'tblTempVendorCDR_20' ) end [2025-07-06 13:25:19] Production.INFO: ProcessCDR(1,15423699,1,1,2) [2025-07-06 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15423699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15423699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15423699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15423699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423699', 'tblTempUsageDetail_20' ) start [2025-07-06 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423699', 'tblTempUsageDetail_20' ) end [2025-07-06 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-06 13:25:26] Production.INFO: ==11349== Releasing lock... [2025-07-06 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 13:25:26] Production.INFO: 35.5 MB #Memory Used# [2025-07-06 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 11:25:06 [end_date_ymd] => 2025-07-06 14:25:06 [RateCDR] => 1 ) [2025-07-06 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 11:25:06' and `end` < '2025-07-06 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 14:25:18] Production.INFO: count ==980 [2025-07-06 14:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 11:25:06 - End Time 2025-07-06 14:25:06 [2025-07-06 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423946', 'tblTempUsageDetail_20' ) start [2025-07-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15423946', 'tblTempUsageDetail_20' ) end [2025-07-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423946', 'tblTempVendorCDR_20' ) start [2025-07-06 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15423946', 'tblTempVendorCDR_20' ) end [2025-07-06 14:25:19] Production.INFO: ProcessCDR(1,15423946,1,1,2) [2025-07-06 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15423946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15423946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15423946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15423946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423946', 'tblTempUsageDetail_20' ) start [2025-07-06 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15423946', 'tblTempUsageDetail_20' ) end [2025-07-06 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-06 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-06 14:25:26] Production.INFO: ==15639== Releasing lock... [2025-07-06 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 14:25:26] Production.INFO: 36 MB #Memory Used# [2025-07-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 12:25:05 [end_date_ymd] => 2025-07-06 15:25:05 [RateCDR] => 1 ) [2025-07-06 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-07-06 12:25:05' and `end` < '2025-07-06 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-07-06 15:25:18] Production.INFO: count ==999 [2025-07-06 15:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 12:25:05 - End Time 2025-07-06 15:25:05 [2025-07-06 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424193', 'tblTempUsageDetail_20' ) start [2025-07-06 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424193', 'tblTempUsageDetail_20' ) end [2025-07-06 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424193', 'tblTempVendorCDR_20' ) start [2025-07-06 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424193', 'tblTempVendorCDR_20' ) end [2025-07-06 15:25:19] Production.INFO: ProcessCDR(1,15424193,1,1,2) [2025-07-06 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15424193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15424193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15424193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15424193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424193', 'tblTempUsageDetail_20' ) start [2025-07-06 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424193', 'tblTempUsageDetail_20' ) end [2025-07-06 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-06 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-06 15:25:26] Production.INFO: ==19993== Releasing lock... [2025-07-06 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 15:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-07-06 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 13:25:04 [end_date_ymd] => 2025-07-06 16:25:04 [RateCDR] => 1 ) [2025-07-06 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 13:25:04' and `end` < '2025-07-06 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 16:25:17] Production.INFO: count ==1013 [2025-07-06 16:25:17] Production.ERROR: pbx CDR StartTime 2025-07-06 13:25:04 - End Time 2025-07-06 16:25:04 [2025-07-06 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424436', 'tblTempUsageDetail_20' ) start [2025-07-06 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424436', 'tblTempUsageDetail_20' ) end [2025-07-06 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424436', 'tblTempVendorCDR_20' ) start [2025-07-06 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424436', 'tblTempVendorCDR_20' ) end [2025-07-06 16:25:17] Production.INFO: ProcessCDR(1,15424436,1,1,2) [2025-07-06 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15424436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15424436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15424436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15424436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424436', 'tblTempUsageDetail_20' ) start [2025-07-06 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424436', 'tblTempUsageDetail_20' ) end [2025-07-06 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-06 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-06 16:25:24] Production.INFO: ==24662== Releasing lock... [2025-07-06 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 16:25:24] Production.INFO: 36 MB #Memory Used# [2025-07-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 14:25:05 [end_date_ymd] => 2025-07-06 17:25:05 [RateCDR] => 1 ) [2025-07-06 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 14:25:05' and `end` < '2025-07-06 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 17:25:17] Production.INFO: count ==1309 [2025-07-06 17:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 14:25:05 - End Time 2025-07-06 17:25:05 [2025-07-06 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424687', 'tblTempUsageDetail_20' ) start [2025-07-06 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424687', 'tblTempUsageDetail_20' ) end [2025-07-06 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424687', 'tblTempVendorCDR_20' ) start [2025-07-06 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424687', 'tblTempVendorCDR_20' ) end [2025-07-06 17:25:18] Production.INFO: ProcessCDR(1,15424687,1,1,2) [2025-07-06 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15424687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15424687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15424687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15424687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424687', 'tblTempUsageDetail_20' ) start [2025-07-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424687', 'tblTempUsageDetail_20' ) end [2025-07-06 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 17:25:25] Production.INFO: ==29116== Releasing lock... [2025-07-06 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 17:25:25] Production.INFO: 38.25 MB #Memory Used# [2025-07-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 15:25:05 [end_date_ymd] => 2025-07-06 18:25:05 [RateCDR] => 1 ) [2025-07-06 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 15:25:05' and `end` < '2025-07-06 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 18:25:17] Production.INFO: count ==1448 [2025-07-06 18:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 15:25:05 - End Time 2025-07-06 18:25:05 [2025-07-06 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424934', 'tblTempUsageDetail_20' ) start [2025-07-06 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15424934', 'tblTempUsageDetail_20' ) end [2025-07-06 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424934', 'tblTempVendorCDR_20' ) start [2025-07-06 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15424934', 'tblTempVendorCDR_20' ) end [2025-07-06 18:25:18] Production.INFO: ProcessCDR(1,15424934,1,1,2) [2025-07-06 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15424934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15424934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15424934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15424934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424934', 'tblTempUsageDetail_20' ) start [2025-07-06 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15424934', 'tblTempUsageDetail_20' ) end [2025-07-06 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 18:25:25] Production.INFO: ==1064== Releasing lock... [2025-07-06 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 18:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-07-06 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 16:25:06 [end_date_ymd] => 2025-07-06 19:25:06 [RateCDR] => 1 ) [2025-07-06 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 16:25:06' and `end` < '2025-07-06 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 19:25:18] Production.INFO: count ==1649 [2025-07-06 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 16:25:06 - End Time 2025-07-06 19:25:06 [2025-07-06 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425178', 'tblTempUsageDetail_20' ) start [2025-07-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425178', 'tblTempUsageDetail_20' ) end [2025-07-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425178', 'tblTempVendorCDR_20' ) start [2025-07-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425178', 'tblTempVendorCDR_20' ) end [2025-07-06 19:25:19] Production.INFO: ProcessCDR(1,15425178,1,1,2) [2025-07-06 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15425178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15425178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15425178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15425178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425178', 'tblTempUsageDetail_20' ) start [2025-07-06 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425178', 'tblTempUsageDetail_20' ) end [2025-07-06 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-06 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-06 19:25:27] Production.INFO: ==5540== Releasing lock... [2025-07-06 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 19:25:27] Production.INFO: 40.5 MB #Memory Used# [2025-07-06 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 17:25:05 [end_date_ymd] => 2025-07-06 20:25:05 [RateCDR] => 1 ) [2025-07-06 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-07-06 17:25:05' and `end` < '2025-07-06 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-07-06 20:25:18] Production.INFO: count ==1590 [2025-07-06 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-06 17:25:05 - End Time 2025-07-06 20:25:05 [2025-07-06 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425425', 'tblTempUsageDetail_20' ) start [2025-07-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425425', 'tblTempUsageDetail_20' ) end [2025-07-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425425', 'tblTempVendorCDR_20' ) start [2025-07-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425425', 'tblTempVendorCDR_20' ) end [2025-07-06 20:25:19] Production.INFO: ProcessCDR(1,15425425,1,1,2) [2025-07-06 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15425425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15425425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15425425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15425425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425425', 'tblTempUsageDetail_20' ) start [2025-07-06 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425425', 'tblTempUsageDetail_20' ) end [2025-07-06 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-06 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-06 20:25:26] Production.INFO: ==10311== Releasing lock... [2025-07-06 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 20:25:26] Production.INFO: 40 MB #Memory Used# [2025-07-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 18:25:05 [end_date_ymd] => 2025-07-06 21:25:05 [RateCDR] => 1 ) [2025-07-06 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 18:25:05' and `end` < '2025-07-06 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 21:25:18] Production.INFO: count ==1431 [2025-07-06 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 18:25:05 - End Time 2025-07-06 21:25:05 [2025-07-06 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425672', 'tblTempUsageDetail_20' ) start [2025-07-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425672', 'tblTempUsageDetail_20' ) end [2025-07-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425672', 'tblTempVendorCDR_20' ) start [2025-07-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425672', 'tblTempVendorCDR_20' ) end [2025-07-06 21:25:18] Production.INFO: ProcessCDR(1,15425672,1,1,2) [2025-07-06 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15425672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15425672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15425672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15425672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425672', 'tblTempUsageDetail_20' ) start [2025-07-06 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425672', 'tblTempUsageDetail_20' ) end [2025-07-06 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 21:25:25] Production.INFO: ==14563== Releasing lock... [2025-07-06 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 21:25:25] Production.INFO: 39 MB #Memory Used# [2025-07-06 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 19:25:05 [end_date_ymd] => 2025-07-06 22:25:05 [RateCDR] => 1 ) [2025-07-06 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 19:25:05' and `end` < '2025-07-06 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 22:25:18] Production.INFO: count ==1229 [2025-07-06 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 19:25:05 - End Time 2025-07-06 22:25:05 [2025-07-06 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425919', 'tblTempUsageDetail_20' ) start [2025-07-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15425919', 'tblTempUsageDetail_20' ) end [2025-07-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425919', 'tblTempVendorCDR_20' ) start [2025-07-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15425919', 'tblTempVendorCDR_20' ) end [2025-07-06 22:25:18] Production.INFO: ProcessCDR(1,15425919,1,1,2) [2025-07-06 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15425919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15425919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15425919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15425919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425919', 'tblTempUsageDetail_20' ) start [2025-07-06 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15425919', 'tblTempUsageDetail_20' ) end [2025-07-06 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 22:25:25] Production.INFO: ==18971== Releasing lock... [2025-07-06 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 22:25:25] Production.INFO: 37.5 MB #Memory Used# [2025-07-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-06 20:25:05 [end_date_ymd] => 2025-07-06 23:25:05 [RateCDR] => 1 ) [2025-07-06 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-06 20:25:05' and `end` < '2025-07-06 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-06 23:25:18] Production.INFO: count ==996 [2025-07-06 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-06 20:25:05 - End Time 2025-07-06 23:25:05 [2025-07-06 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15426166', 'tblTempUsageDetail_20' ) start [2025-07-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15426166', 'tblTempUsageDetail_20' ) end [2025-07-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15426166', 'tblTempVendorCDR_20' ) start [2025-07-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15426166', 'tblTempVendorCDR_20' ) end [2025-07-06 23:25:18] Production.INFO: ProcessCDR(1,15426166,1,1,2) [2025-07-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15426166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15426166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-06 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15426166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15426166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-06 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15426166', 'tblTempUsageDetail_20' ) start [2025-07-06 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15426166', 'tblTempUsageDetail_20' ) end [2025-07-06 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-06 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-06 23:25:25] Production.INFO: ==23707== Releasing lock... [2025-07-06 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-06 23:25:25] Production.INFO: 36 MB #Memory Used#