[2025-08-29 00:25:04] Production.INFO: next invoice date [2025-08-29 00:25:04] Production.INFO: 2025-09-29 [2025-08-29 00:25:04] Production.INFO: getdaysdiff [2025-08-29 00:25:04] Production.INFO: +31 [2025-08-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,31,31,'RMScheduler',2025-08-29 00:25:04,1,0,,,0) [2025-08-29 00:25:04] Production.INFO: next invoice date [2025-08-29 00:25:04] Production.INFO: 2025-09-29 [2025-08-29 00:25:04] Production.INFO: getdaysdiff [2025-08-29 00:25:04] Production.INFO: +31 [2025-08-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,31,31,'RMScheduler',2025-08-29 00:25:04,1,0,,,0) [2025-08-29 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 21:25:05 [end_date_ymd] => 2025-08-29 00:25:05 [RateCDR] => 1 ) [2025-08-29 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-28 21:25:05' and `end` < '2025-08-29 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-29 00:25:18] Production.INFO: count ==714 [2025-08-29 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 21:25:05 - End Time 2025-08-29 00:25:05 [2025-08-29 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740548', 'tblTempUsageDetail_20' ) start [2025-08-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740548', 'tblTempUsageDetail_20' ) end [2025-08-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740548', 'tblTempVendorCDR_20' ) start [2025-08-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740548', 'tblTempVendorCDR_20' ) end [2025-08-29 00:25:18] Production.INFO: ProcessCDR(1,15740548,1,1,2) [2025-08-29 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15740548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15740548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15740548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15740548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740548', 'tblTempUsageDetail_20' ) start [2025-08-29 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740548', 'tblTempUsageDetail_20' ) end [2025-08-29 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-29 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-29 00:25:29] Production.INFO: ==1279== Releasing lock... [2025-08-29 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 00:25:29] Production.INFO: 37.5 MB #Memory Used# [2025-08-29 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 22:25:05 [end_date_ymd] => 2025-08-29 01:25:05 [RateCDR] => 1 ) [2025-08-29 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-08-28 22:25:05' and `end` < '2025-08-29 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-08-29 01:25:18] Production.INFO: count ==737 [2025-08-29 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 22:25:05 - End Time 2025-08-29 01:25:05 [2025-08-29 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740795', 'tblTempUsageDetail_20' ) start [2025-08-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740795', 'tblTempUsageDetail_20' ) end [2025-08-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740795', 'tblTempVendorCDR_20' ) start [2025-08-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740795', 'tblTempVendorCDR_20' ) end [2025-08-29 01:25:18] Production.INFO: ProcessCDR(1,15740795,1,1,2) [2025-08-29 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15740795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15740795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15740795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15740795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740795', 'tblTempUsageDetail_20' ) start [2025-08-29 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740795', 'tblTempUsageDetail_20' ) end [2025-08-29 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-29 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-29 01:25:26] Production.INFO: ==7267== Releasing lock... [2025-08-29 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 01:25:26] Production.INFO: 34 MB #Memory Used# [2025-08-29 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 23:25:05 [end_date_ymd] => 2025-08-29 02:25:05 [RateCDR] => 1 ) [2025-08-29 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-28 23:25:05' and `end` < '2025-08-29 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-29 02:25:18] Production.INFO: count ==2133 [2025-08-29 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-28 23:25:05 - End Time 2025-08-29 02:25:05 [2025-08-29 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741042', 'tblTempUsageDetail_20' ) start [2025-08-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741042', 'tblTempUsageDetail_20' ) end [2025-08-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741042', 'tblTempVendorCDR_20' ) start [2025-08-29 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741042', 'tblTempVendorCDR_20' ) end [2025-08-29 02:25:19] Production.INFO: ProcessCDR(1,15741042,1,1,2) [2025-08-29 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15741042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15741042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15741042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 02:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15741042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741042', 'tblTempUsageDetail_20' ) start [2025-08-29 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741042', 'tblTempUsageDetail_20' ) end [2025-08-29 02:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-29 02:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-29 02:25:29] Production.INFO: ==13146== Releasing lock... [2025-08-29 02:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 02:25:29] Production.INFO: 44.5 MB #Memory Used# [2025-08-29 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 00:25:04 [end_date_ymd] => 2025-08-29 03:25:04 [RateCDR] => 1 ) [2025-08-29 03: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-08-29 00:25:04' and `end` < '2025-08-29 03: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-08-29 03:25:17] Production.INFO: count ==1903 [2025-08-29 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-29 00:25:04 - End Time 2025-08-29 03:25:04 [2025-08-29 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741289', 'tblTempUsageDetail_20' ) start [2025-08-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741289', 'tblTempUsageDetail_20' ) end [2025-08-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741289', 'tblTempVendorCDR_20' ) start [2025-08-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741289', 'tblTempVendorCDR_20' ) end [2025-08-29 03:25:17] Production.INFO: ProcessCDR(1,15741289,1,1,2) [2025-08-29 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15741289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15741289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15741289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15741289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741289', 'tblTempUsageDetail_20' ) start [2025-08-29 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741289', 'tblTempUsageDetail_20' ) end [2025-08-29 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-29 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-29 03:25:25] Production.INFO: ==18801== Releasing lock... [2025-08-29 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 03:25:25] Production.INFO: 42.5 MB #Memory Used# [2025-08-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 01:25:05 [end_date_ymd] => 2025-08-29 04:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 01:25:05' and `end` < '2025-08-29 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-29 04:25:17] Production.INFO: count ==1713 [2025-08-29 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 01:25:05 - End Time 2025-08-29 04:25:05 [2025-08-29 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741537', 'tblTempUsageDetail_20' ) start [2025-08-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741537', 'tblTempUsageDetail_20' ) end [2025-08-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741537', 'tblTempVendorCDR_20' ) start [2025-08-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741537', 'tblTempVendorCDR_20' ) end [2025-08-29 04:25:18] Production.INFO: ProcessCDR(1,15741537,1,1,2) [2025-08-29 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15741537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15741537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15741537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15741537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741537', 'tblTempUsageDetail_20' ) start [2025-08-29 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741537', 'tblTempUsageDetail_20' ) end [2025-08-29 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-29 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-29 04:25:23] Production.INFO: ==24703== Releasing lock... [2025-08-29 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 04:25:23] Production.INFO: 41 MB #Memory Used# [2025-08-29 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 02:25:06 [end_date_ymd] => 2025-08-29 05:25:06 [RateCDR] => 1 ) [2025-08-29 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-29 02:25:06' and `end` < '2025-08-29 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-29 05:25:18] Production.INFO: count ==174 [2025-08-29 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 02:25:06 - End Time 2025-08-29 05:25:06 [2025-08-29 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741785', 'tblTempUsageDetail_20' ) start [2025-08-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15741785', 'tblTempUsageDetail_20' ) end [2025-08-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741785', 'tblTempVendorCDR_20' ) start [2025-08-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15741785', 'tblTempVendorCDR_20' ) end [2025-08-29 05:25:18] Production.INFO: ProcessCDR(1,15741785,1,1,2) [2025-08-29 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15741785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15741785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15741785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15741785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741785', 'tblTempUsageDetail_20' ) start [2025-08-29 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15741785', 'tblTempUsageDetail_20' ) end [2025-08-29 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-29 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-29 05:25:23] Production.INFO: ==30778== Releasing lock... [2025-08-29 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-08-29 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 03:25:05 [end_date_ymd] => 2025-08-29 06:25:05 [RateCDR] => 1 ) [2025-08-29 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-08-29 03:25:05' and `end` < '2025-08-29 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-08-29 06:25:17] Production.INFO: count ==143 [2025-08-29 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-29 03:25:05 - End Time 2025-08-29 06:25:05 [2025-08-29 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742032', 'tblTempUsageDetail_20' ) start [2025-08-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742032', 'tblTempUsageDetail_20' ) end [2025-08-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742032', 'tblTempVendorCDR_20' ) start [2025-08-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742032', 'tblTempVendorCDR_20' ) end [2025-08-29 06:25:17] Production.INFO: ProcessCDR(1,15742032,1,1,2) [2025-08-29 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15742032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15742032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15742032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15742032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742032', 'tblTempUsageDetail_20' ) start [2025-08-29 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742032', 'tblTempUsageDetail_20' ) end [2025-08-29 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-29 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-29 06:25:24] Production.INFO: ==4153== Releasing lock... [2025-08-29 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 06:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-08-29 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 04:25:06 [end_date_ymd] => 2025-08-29 07:25:06 [RateCDR] => 1 ) [2025-08-29 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-08-29 04:25:06' and `end` < '2025-08-29 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-08-29 07:25:18] Production.INFO: count ==136 [2025-08-29 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 04:25:06 - End Time 2025-08-29 07:25:06 [2025-08-29 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742279', 'tblTempUsageDetail_20' ) start [2025-08-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742279', 'tblTempUsageDetail_20' ) end [2025-08-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742279', 'tblTempVendorCDR_20' ) start [2025-08-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742279', 'tblTempVendorCDR_20' ) end [2025-08-29 07:25:18] Production.INFO: ProcessCDR(1,15742279,1,1,2) [2025-08-29 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15742279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15742279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15742279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15742279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742279', 'tblTempUsageDetail_20' ) start [2025-08-29 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742279', 'tblTempUsageDetail_20' ) end [2025-08-29 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-29 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-29 07:25:25] Production.INFO: ==9240== Releasing lock... [2025-08-29 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 05:25:05 [end_date_ymd] => 2025-08-29 08:25:05 [RateCDR] => 1 ) [2025-08-29 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-08-29 05:25:05' and `end` < '2025-08-29 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-08-29 08:25:17] Production.INFO: count ==392 [2025-08-29 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-29 05:25:05 - End Time 2025-08-29 08:25:05 [2025-08-29 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742526', 'tblTempUsageDetail_20' ) start [2025-08-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742526', 'tblTempUsageDetail_20' ) end [2025-08-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742526', 'tblTempVendorCDR_20' ) start [2025-08-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742526', 'tblTempVendorCDR_20' ) end [2025-08-29 08:25:17] Production.INFO: ProcessCDR(1,15742526,1,1,2) [2025-08-29 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15742526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15742526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15742526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15742526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742526', 'tblTempUsageDetail_20' ) start [2025-08-29 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742526', 'tblTempUsageDetail_20' ) end [2025-08-29 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-29 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-29 08:25:26] Production.INFO: ==13436== Releasing lock... [2025-08-29 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-08-29 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 06:25:06 [end_date_ymd] => 2025-08-29 09:25:06 [RateCDR] => 1 ) [2025-08-29 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-08-29 06:25:06' and `end` < '2025-08-29 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-08-29 09:25:18] Production.INFO: count ==1187 [2025-08-29 09:25:19] Production.ERROR: pbx CDR StartTime 2025-08-29 06:25:06 - End Time 2025-08-29 09:25:06 [2025-08-29 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742773', 'tblTempUsageDetail_20' ) start [2025-08-29 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15742773', 'tblTempUsageDetail_20' ) end [2025-08-29 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742773', 'tblTempVendorCDR_20' ) start [2025-08-29 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15742773', 'tblTempVendorCDR_20' ) end [2025-08-29 09:25:19] Production.INFO: ProcessCDR(1,15742773,1,1,2) [2025-08-29 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15742773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15742773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15742773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15742773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742773', 'tblTempUsageDetail_20' ) start [2025-08-29 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15742773', 'tblTempUsageDetail_20' ) end [2025-08-29 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-29 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-29 09:25:27] Production.INFO: ==17687== Releasing lock... [2025-08-29 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 09:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-08-29 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 07:25:05 [end_date_ymd] => 2025-08-29 10:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 07:25:05' and `end` < '2025-08-29 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-29 10:25:19] Production.INFO: count ==2801 [2025-08-29 10:25:21] Production.ERROR: pbx CDR StartTime 2025-08-29 07:25:05 - End Time 2025-08-29 10:25:05 [2025-08-29 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743020', 'tblTempUsageDetail_20' ) start [2025-08-29 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743020', 'tblTempUsageDetail_20' ) end [2025-08-29 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743020', 'tblTempVendorCDR_20' ) start [2025-08-29 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743020', 'tblTempVendorCDR_20' ) end [2025-08-29 10:25:21] Production.INFO: ProcessCDR(1,15743020,1,1,2) [2025-08-29 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15743020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15743020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15743020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15743020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743020', 'tblTempUsageDetail_20' ) start [2025-08-29 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743020', 'tblTempUsageDetail_20' ) end [2025-08-29 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-29 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-29 10:25:32] Production.INFO: ==22082== Releasing lock... [2025-08-29 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 10:25:32] Production.INFO: 49.25 MB #Memory Used# [2025-08-29 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 08:25:06 [end_date_ymd] => 2025-08-29 11:25:06 [RateCDR] => 1 ) [2025-08-29 11: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-29 08:25:06' and `end` < '2025-08-29 11: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-29 11:25:20] Production.INFO: count ==4177 [2025-08-29 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-29 08:25:06 - End Time 2025-08-29 11:25:06 [2025-08-29 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743267', 'tblTempUsageDetail_20' ) start [2025-08-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743267', 'tblTempUsageDetail_20' ) end [2025-08-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743267', 'tblTempVendorCDR_20' ) start [2025-08-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743267', 'tblTempVendorCDR_20' ) end [2025-08-29 11:25:22] Production.INFO: ProcessCDR(1,15743267,1,1,2) [2025-08-29 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15743267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15743267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15743267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15743267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743267', 'tblTempUsageDetail_20' ) start [2025-08-29 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743267', 'tblTempUsageDetail_20' ) end [2025-08-29 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-29 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-29 11:25:34] Production.INFO: ==26668== Releasing lock... [2025-08-29 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 11:25:34] Production.INFO: 59.75 MB #Memory Used# [2025-08-29 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 09:25:04 [end_date_ymd] => 2025-08-29 12:25:04 [RateCDR] => 1 ) [2025-08-29 12: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-08-29 09:25:04' and `end` < '2025-08-29 12: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-08-29 12:25:21] Production.INFO: count ==5079 [2025-08-29 12:25:24] Production.ERROR: pbx CDR StartTime 2025-08-29 09:25:04 - End Time 2025-08-29 12:25:04 [2025-08-29 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743514', 'tblTempUsageDetail_20' ) start [2025-08-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743514', 'tblTempUsageDetail_20' ) end [2025-08-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743514', 'tblTempVendorCDR_20' ) start [2025-08-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743514', 'tblTempVendorCDR_20' ) end [2025-08-29 12:25:24] Production.INFO: ProcessCDR(1,15743514,1,1,2) [2025-08-29 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15743514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15743514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15743514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15743514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743514', 'tblTempUsageDetail_20' ) start [2025-08-29 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743514', 'tblTempUsageDetail_20' ) end [2025-08-29 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-08-29 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-29 12:25:36] Production.INFO: ==30907== Releasing lock... [2025-08-29 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 12:25:36] Production.INFO: 66.25 MB #Memory Used# [2025-08-29 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 10:25:05 [end_date_ymd] => 2025-08-29 13:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 10:25:05' and `end` < '2025-08-29 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-29 13:25:18] Production.INFO: count ==4929 [2025-08-29 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-29 10:25:05 - End Time 2025-08-29 13:25:05 [2025-08-29 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743761', 'tblTempUsageDetail_20' ) start [2025-08-29 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15743761', 'tblTempUsageDetail_20' ) end [2025-08-29 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743761', 'tblTempVendorCDR_20' ) start [2025-08-29 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15743761', 'tblTempVendorCDR_20' ) end [2025-08-29 13:25:21] Production.INFO: ProcessCDR(1,15743761,1,1,2) [2025-08-29 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15743761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15743761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15743761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15743761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743761', 'tblTempUsageDetail_20' ) start [2025-08-29 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15743761', 'tblTempUsageDetail_20' ) end [2025-08-29 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-29 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-29 13:25:33] Production.INFO: ==2849== Releasing lock... [2025-08-29 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 13:25:33] Production.INFO: 65 MB #Memory Used# [2025-08-29 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 11:25:05 [end_date_ymd] => 2025-08-29 14:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 11:25:05' and `end` < '2025-08-29 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-29 14:25:19] Production.INFO: count ==4902 [2025-08-29 14:25:21] Production.ERROR: pbx CDR StartTime 2025-08-29 11:25:05 - End Time 2025-08-29 14:25:05 [2025-08-29 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744008', 'tblTempUsageDetail_20' ) start [2025-08-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744008', 'tblTempUsageDetail_20' ) end [2025-08-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744008', 'tblTempVendorCDR_20' ) start [2025-08-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744008', 'tblTempVendorCDR_20' ) end [2025-08-29 14:25:21] Production.INFO: ProcessCDR(1,15744008,1,1,2) [2025-08-29 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15744008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15744008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15744008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15744008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744008', 'tblTempUsageDetail_20' ) start [2025-08-29 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744008', 'tblTempUsageDetail_20' ) end [2025-08-29 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-29 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-29 14:25:34] Production.INFO: ==8345== Releasing lock... [2025-08-29 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 14:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-08-29 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 12:25:06 [end_date_ymd] => 2025-08-29 15:25:06 [RateCDR] => 1 ) [2025-08-29 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-29 12:25:06' and `end` < '2025-08-29 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-29 15:25:21] Production.INFO: count ==4845 [2025-08-29 15:25:23] Production.ERROR: pbx CDR StartTime 2025-08-29 12:25:06 - End Time 2025-08-29 15:25:06 [2025-08-29 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744255', 'tblTempUsageDetail_20' ) start [2025-08-29 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744255', 'tblTempUsageDetail_20' ) end [2025-08-29 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744255', 'tblTempVendorCDR_20' ) start [2025-08-29 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744255', 'tblTempVendorCDR_20' ) end [2025-08-29 15:25:24] Production.INFO: ProcessCDR(1,15744255,1,1,2) [2025-08-29 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15744255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15744255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15744255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15744255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744255', 'tblTempUsageDetail_20' ) start [2025-08-29 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744255', 'tblTempUsageDetail_20' ) end [2025-08-29 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-08-29 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-29 15:25:36] Production.INFO: ==12623== Releasing lock... [2025-08-29 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 15:25:36] Production.INFO: 64.5 MB #Memory Used# [2025-08-29 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 13:25:05 [end_date_ymd] => 2025-08-29 16:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 13:25:05' and `end` < '2025-08-29 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-29 16:25:20] Production.INFO: count ==4973 [2025-08-29 16:25:22] Production.ERROR: pbx CDR StartTime 2025-08-29 13:25:05 - End Time 2025-08-29 16:25:05 [2025-08-29 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744502', 'tblTempUsageDetail_20' ) start [2025-08-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744502', 'tblTempUsageDetail_20' ) end [2025-08-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744502', 'tblTempVendorCDR_20' ) start [2025-08-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744502', 'tblTempVendorCDR_20' ) end [2025-08-29 16:25:22] Production.INFO: ProcessCDR(1,15744502,1,1,2) [2025-08-29 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15744502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15744502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15744502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15744502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744502', 'tblTempUsageDetail_20' ) start [2025-08-29 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744502', 'tblTempUsageDetail_20' ) end [2025-08-29 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-29 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-29 16:25:34] Production.INFO: ==16863== Releasing lock... [2025-08-29 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 16:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-08-29 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 14:25:06 [end_date_ymd] => 2025-08-29 17:25:06 [RateCDR] => 1 ) [2025-08-29 17: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-29 14:25:06' and `end` < '2025-08-29 17: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-29 17:25:19] Production.INFO: count ==4751 [2025-08-29 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-29 14:25:06 - End Time 2025-08-29 17:25:06 [2025-08-29 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744749', 'tblTempUsageDetail_20' ) start [2025-08-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744749', 'tblTempUsageDetail_20' ) end [2025-08-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744749', 'tblTempVendorCDR_20' ) start [2025-08-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744749', 'tblTempVendorCDR_20' ) end [2025-08-29 17:25:21] Production.INFO: ProcessCDR(1,15744749,1,1,2) [2025-08-29 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15744749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15744749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15744749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15744749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744749', 'tblTempUsageDetail_20' ) start [2025-08-29 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744749', 'tblTempUsageDetail_20' ) end [2025-08-29 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-29 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-29 17:25:32] Production.INFO: ==21326== Releasing lock... [2025-08-29 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 17:25:32] Production.INFO: 63.75 MB #Memory Used# [2025-08-29 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 15:25:05 [end_date_ymd] => 2025-08-29 18:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 15:25:05' and `end` < '2025-08-29 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-29 18:25:20] Production.INFO: count ==4111 [2025-08-29 18:25:22] Production.ERROR: pbx CDR StartTime 2025-08-29 15:25:05 - End Time 2025-08-29 18:25:05 [2025-08-29 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744996', 'tblTempUsageDetail_20' ) start [2025-08-29 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15744996', 'tblTempUsageDetail_20' ) end [2025-08-29 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744996', 'tblTempVendorCDR_20' ) start [2025-08-29 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15744996', 'tblTempVendorCDR_20' ) end [2025-08-29 18:25:22] Production.INFO: ProcessCDR(1,15744996,1,1,2) [2025-08-29 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15744996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 18:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15744996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 18:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15744996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15744996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744996', 'tblTempUsageDetail_20' ) start [2025-08-29 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15744996', 'tblTempUsageDetail_20' ) end [2025-08-29 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-29 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-29 18:25:32] Production.INFO: ==25661== Releasing lock... [2025-08-29 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 18:25:32] Production.INFO: 59 MB #Memory Used# [2025-08-29 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 16:25:05 [end_date_ymd] => 2025-08-29 19:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 16:25:05' and `end` < '2025-08-29 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-29 19:25:18] Production.INFO: count ==3805 [2025-08-29 19:25:20] Production.ERROR: pbx CDR StartTime 2025-08-29 16:25:05 - End Time 2025-08-29 19:25:05 [2025-08-29 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745240', 'tblTempUsageDetail_20' ) start [2025-08-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745240', 'tblTempUsageDetail_20' ) end [2025-08-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745240', 'tblTempVendorCDR_20' ) start [2025-08-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745240', 'tblTempVendorCDR_20' ) end [2025-08-29 19:25:20] Production.INFO: ProcessCDR(1,15745240,1,1,2) [2025-08-29 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15745240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15745240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15745240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15745240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745240', 'tblTempUsageDetail_20' ) start [2025-08-29 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745240', 'tblTempUsageDetail_20' ) end [2025-08-29 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-29 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-29 19:25:30] Production.INFO: ==30571== Releasing lock... [2025-08-29 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 19:25:30] Production.INFO: 56.5 MB #Memory Used# [2025-08-29 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 17:25:06 [end_date_ymd] => 2025-08-29 20:25:06 [RateCDR] => 1 ) [2025-08-29 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-29 17:25:06' and `end` < '2025-08-29 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-29 20:25:18] Production.INFO: count ==2963 [2025-08-29 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-29 17:25:06 - End Time 2025-08-29 20:25:06 [2025-08-29 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745487', 'tblTempUsageDetail_20' ) start [2025-08-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745487', 'tblTempUsageDetail_20' ) end [2025-08-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745487', 'tblTempVendorCDR_20' ) start [2025-08-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745487', 'tblTempVendorCDR_20' ) end [2025-08-29 20:25:19] Production.INFO: ProcessCDR(1,15745487,1,1,2) [2025-08-29 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15745487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15745487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15745487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15745487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745487', 'tblTempUsageDetail_20' ) start [2025-08-29 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745487', 'tblTempUsageDetail_20' ) end [2025-08-29 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-29 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-29 20:25:28] Production.INFO: ==3325== Releasing lock... [2025-08-29 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 20:25:28] Production.INFO: 50 MB #Memory Used# [2025-08-29 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 18:25:05 [end_date_ymd] => 2025-08-29 21:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 18:25:05' and `end` < '2025-08-29 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-29 21:25:18] Production.INFO: count ==2514 [2025-08-29 21:25:19] Production.ERROR: pbx CDR StartTime 2025-08-29 18:25:05 - End Time 2025-08-29 21:25:05 [2025-08-29 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745734', 'tblTempUsageDetail_20' ) start [2025-08-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745734', 'tblTempUsageDetail_20' ) end [2025-08-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745734', 'tblTempVendorCDR_20' ) start [2025-08-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745734', 'tblTempVendorCDR_20' ) end [2025-08-29 21:25:19] Production.INFO: ProcessCDR(1,15745734,1,1,2) [2025-08-29 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15745734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15745734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15745734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15745734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745734', 'tblTempUsageDetail_20' ) start [2025-08-29 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745734', 'tblTempUsageDetail_20' ) end [2025-08-29 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-29 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-29 21:25:27] Production.INFO: ==7564== Releasing lock... [2025-08-29 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 21:25:27] Production.INFO: 47 MB #Memory Used# [2025-08-29 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 19:25:05 [end_date_ymd] => 2025-08-29 22:25:05 [RateCDR] => 1 ) [2025-08-29 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-08-29 19:25:05' and `end` < '2025-08-29 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-08-29 22:25:17] Production.INFO: count ==1592 [2025-08-29 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 19:25:05 - End Time 2025-08-29 22:25:05 [2025-08-29 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745981', 'tblTempUsageDetail_20' ) start [2025-08-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15745981', 'tblTempUsageDetail_20' ) end [2025-08-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745981', 'tblTempVendorCDR_20' ) start [2025-08-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15745981', 'tblTempVendorCDR_20' ) end [2025-08-29 22:25:18] Production.INFO: ProcessCDR(1,15745981,1,1,2) [2025-08-29 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15745981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15745981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15745981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15745981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745981', 'tblTempUsageDetail_20' ) start [2025-08-29 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15745981', 'tblTempUsageDetail_20' ) end [2025-08-29 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-29 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-29 22:25:27] Production.INFO: ==11815== Releasing lock... [2025-08-29 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 22:25:27] Production.INFO: 40.25 MB #Memory Used# [2025-08-29 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 20:25:05 [end_date_ymd] => 2025-08-29 23:25:05 [RateCDR] => 1 ) [2025-08-29 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-29 20:25:05' and `end` < '2025-08-29 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-29 23:25:18] Production.INFO: count ==1276 [2025-08-29 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 20:25:05 - End Time 2025-08-29 23:25:05 [2025-08-29 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746228', 'tblTempUsageDetail_20' ) start [2025-08-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746228', 'tblTempUsageDetail_20' ) end [2025-08-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746228', 'tblTempVendorCDR_20' ) start [2025-08-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746228', 'tblTempVendorCDR_20' ) end [2025-08-29 23:25:18] Production.INFO: ProcessCDR(1,15746228,1,1,2) [2025-08-29 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15746228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15746228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-29 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15746228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15746228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-29 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746228', 'tblTempUsageDetail_20' ) start [2025-08-29 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746228', 'tblTempUsageDetail_20' ) end [2025-08-29 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-29 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-29 23:25:27] Production.INFO: ==16308== Releasing lock... [2025-08-29 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-29 23:25:27] Production.INFO: 38 MB #Memory Used#