[2025-09-21 00:25:04] Production.INFO: next invoice date [2025-09-21 00:25:04] Production.INFO: 2025-10-21 [2025-09-21 00:25:04] Production.INFO: getdaysdiff [2025-09-21 00:25:04] Production.INFO: +30 [2025-09-21 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,30,30,'RMScheduler',2025-09-21 00:25:04,1,0,,,0) [2025-09-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 21:25:05 [end_date_ymd] => 2025-09-21 00:25:05 [RateCDR] => 1 ) [2025-09-21 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-20 21:25:05' and `end` < '2025-09-21 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 00:25:17] Production.INFO: count ==701 [2025-09-21 00:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 21:25:05 - End Time 2025-09-21 00:25:05 [2025-09-21 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876879', 'tblTempUsageDetail_20' ) start [2025-09-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876879', 'tblTempUsageDetail_20' ) end [2025-09-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876879', 'tblTempVendorCDR_20' ) start [2025-09-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876879', 'tblTempVendorCDR_20' ) end [2025-09-21 00:25:17] Production.INFO: ProcessCDR(1,15876879,1,1,2) [2025-09-21 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15876879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15876879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15876879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15876879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876879', 'tblTempUsageDetail_20' ) start [2025-09-21 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876879', 'tblTempUsageDetail_20' ) end [2025-09-21 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-21 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-21 00:25:27] Production.INFO: ==18665== Releasing lock... [2025-09-21 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 00:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 22:25:05 [end_date_ymd] => 2025-09-21 01:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-20 22:25:05' and `end` < '2025-09-21 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-09-21 01:25:17] Production.INFO: count ==667 [2025-09-21 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 22:25:05 - End Time 2025-09-21 01:25:05 [2025-09-21 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877126', 'tblTempUsageDetail_20' ) start [2025-09-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877126', 'tblTempUsageDetail_20' ) end [2025-09-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877126', 'tblTempVendorCDR_20' ) start [2025-09-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877126', 'tblTempVendorCDR_20' ) end [2025-09-21 01:25:17] Production.INFO: ProcessCDR(1,15877126,1,1,2) [2025-09-21 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15877126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15877126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15877126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15877126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877126', 'tblTempUsageDetail_20' ) start [2025-09-21 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877126', 'tblTempUsageDetail_20' ) end [2025-09-21 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-21 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-21 01:25:25] Production.INFO: ==23273== Releasing lock... [2025-09-21 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 01:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-09-21 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 23:25:05 [end_date_ymd] => 2025-09-21 02:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-20 23:25:05' and `end` < '2025-09-21 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-09-21 02:25:17] Production.INFO: count ==3319 [2025-09-21 02:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 23:25:05 - End Time 2025-09-21 02:25:05 [2025-09-21 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877373', 'tblTempUsageDetail_20' ) start [2025-09-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877373', 'tblTempUsageDetail_20' ) end [2025-09-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877373', 'tblTempVendorCDR_20' ) start [2025-09-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877373', 'tblTempVendorCDR_20' ) end [2025-09-21 02:25:19] Production.INFO: ProcessCDR(1,15877373,1,1,2) [2025-09-21 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15877373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15877373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15877373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 02:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15877373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877373', 'tblTempUsageDetail_20' ) start [2025-09-21 02:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877373', 'tblTempUsageDetail_20' ) end [2025-09-21 02:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-21 02:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-21 02:25:31] Production.INFO: ==27789== Releasing lock... [2025-09-21 02:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 02:25:31] Production.INFO: 52.75 MB #Memory Used# [2025-09-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 00:25:05 [end_date_ymd] => 2025-09-21 03:25:05 [RateCDR] => 1 ) [2025-09-21 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 00:25:05' and `end` < '2025-09-21 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 03:25:18] Production.INFO: count ==6603 [2025-09-21 03:25:21] Production.ERROR: pbx CDR StartTime 2025-09-21 00:25:05 - End Time 2025-09-21 03:25:05 [2025-09-21 03:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 03:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877620', 'tblTempUsageDetail_20' ) start [2025-09-21 03:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877620', 'tblTempUsageDetail_20' ) end [2025-09-21 03:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877620', 'tblTempVendorCDR_20' ) start [2025-09-21 03:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877620', 'tblTempVendorCDR_20' ) end [2025-09-21 03:25:21] Production.INFO: ProcessCDR(1,15877620,1,1,2) [2025-09-21 03:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15877620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 03:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15877620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 03:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15877620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 03:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15877620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 03:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877620', 'tblTempUsageDetail_20' ) start [2025-09-21 03:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877620', 'tblTempUsageDetail_20' ) end [2025-09-21 03:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-21 03:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-21 03:25:34] Production.INFO: ==32259== Releasing lock... [2025-09-21 03:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 03:25:34] Production.INFO: 77.5 MB #Memory Used# [2025-09-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 01:25:05 [end_date_ymd] => 2025-09-21 04:25:05 [RateCDR] => 1 ) [2025-09-21 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 01:25:05' and `end` < '2025-09-21 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 04:25:17] Production.INFO: count ==8050 [2025-09-21 04:25:22] Production.ERROR: pbx CDR StartTime 2025-09-21 01:25:05 - End Time 2025-09-21 04:25:05 [2025-09-21 04:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877868', 'tblTempUsageDetail_20' ) start [2025-09-21 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15877868', 'tblTempUsageDetail_20' ) end [2025-09-21 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877868', 'tblTempVendorCDR_20' ) start [2025-09-21 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15877868', 'tblTempVendorCDR_20' ) end [2025-09-21 04:25:22] Production.INFO: ProcessCDR(1,15877868,1,1,2) [2025-09-21 04:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15877868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 04:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15877868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 04:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15877868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 04:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15877868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 04:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877868', 'tblTempUsageDetail_20' ) start [2025-09-21 04:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15877868', 'tblTempUsageDetail_20' ) end [2025-09-21 04:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-21 04:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-21 04:25:32] Production.INFO: ==4265== Releasing lock... [2025-09-21 04:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 04:25:32] Production.INFO: 89 MB #Memory Used# [2025-09-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 02:25:05 [end_date_ymd] => 2025-09-21 05:25:05 [RateCDR] => 1 ) [2025-09-21 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 02:25:05' and `end` < '2025-09-21 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 05:25:18] Production.INFO: count ==5047 [2025-09-21 05:25:21] Production.ERROR: pbx CDR StartTime 2025-09-21 02:25:05 - End Time 2025-09-21 05:25:05 [2025-09-21 05:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 05:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878116', 'tblTempUsageDetail_20' ) start [2025-09-21 05:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878116', 'tblTempUsageDetail_20' ) end [2025-09-21 05:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878116', 'tblTempVendorCDR_20' ) start [2025-09-21 05:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878116', 'tblTempVendorCDR_20' ) end [2025-09-21 05:25:21] Production.INFO: ProcessCDR(1,15878116,1,1,2) [2025-09-21 05:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15878116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 05:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15878116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 05:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15878116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 05:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15878116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 05:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878116', 'tblTempUsageDetail_20' ) start [2025-09-21 05:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878116', 'tblTempUsageDetail_20' ) end [2025-09-21 05:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-21 05:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-21 05:25:30] Production.INFO: ==8708== Releasing lock... [2025-09-21 05:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 05:25:30] Production.INFO: 65.75 MB #Memory Used# [2025-09-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 03:25:05 [end_date_ymd] => 2025-09-21 06:25:05 [RateCDR] => 1 ) [2025-09-21 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 03:25:05' and `end` < '2025-09-21 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 06:25:17] Production.INFO: count ==2013 [2025-09-21 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 03:25:05 - End Time 2025-09-21 06:25:05 [2025-09-21 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878363', 'tblTempUsageDetail_20' ) start [2025-09-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878363', 'tblTempUsageDetail_20' ) end [2025-09-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878363', 'tblTempVendorCDR_20' ) start [2025-09-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878363', 'tblTempVendorCDR_20' ) end [2025-09-21 06:25:18] Production.INFO: ProcessCDR(1,15878363,1,1,2) [2025-09-21 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15878363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15878363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15878363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15878363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878363', 'tblTempUsageDetail_20' ) start [2025-09-21 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878363', 'tblTempUsageDetail_20' ) end [2025-09-21 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 06:25:26] Production.INFO: ==13210== Releasing lock... [2025-09-21 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 06:25:26] Production.INFO: 43.75 MB #Memory Used# [2025-09-21 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 04:25:06 [end_date_ymd] => 2025-09-21 07:25:06 [RateCDR] => 1 ) [2025-09-21 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-09-21 04:25:06' and `end` < '2025-09-21 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-09-21 07:25:18] Production.INFO: count ==554 [2025-09-21 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 04:25:06 - End Time 2025-09-21 07:25:06 [2025-09-21 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878610', 'tblTempUsageDetail_20' ) start [2025-09-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878610', 'tblTempUsageDetail_20' ) end [2025-09-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878610', 'tblTempVendorCDR_20' ) start [2025-09-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878610', 'tblTempVendorCDR_20' ) end [2025-09-21 07:25:18] Production.INFO: ProcessCDR(1,15878610,1,1,2) [2025-09-21 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15878610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15878610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15878610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15878610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878610', 'tblTempUsageDetail_20' ) start [2025-09-21 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878610', 'tblTempUsageDetail_20' ) end [2025-09-21 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 07:25:26] Production.INFO: ==17723== Releasing lock... [2025-09-21 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 07:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 05:25:05 [end_date_ymd] => 2025-09-21 08:25:05 [RateCDR] => 1 ) [2025-09-21 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 05:25:05' and `end` < '2025-09-21 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 08:25:17] Production.INFO: count ==155 [2025-09-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-21 05:25:05 - End Time 2025-09-21 08:25:05 [2025-09-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878857', 'tblTempUsageDetail_20' ) start [2025-09-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15878857', 'tblTempUsageDetail_20' ) end [2025-09-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878857', 'tblTempVendorCDR_20' ) start [2025-09-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15878857', 'tblTempVendorCDR_20' ) end [2025-09-21 08:25:17] Production.INFO: ProcessCDR(1,15878857,1,1,2) [2025-09-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15878857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15878857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15878857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15878857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878857', 'tblTempUsageDetail_20' ) start [2025-09-21 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15878857', 'tblTempUsageDetail_20' ) end [2025-09-21 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-21 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-21 08:25:25] Production.INFO: ==22117== Releasing lock... [2025-09-21 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 08:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 06:25:05 [end_date_ymd] => 2025-09-21 09:25:05 [RateCDR] => 1 ) [2025-09-21 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 06:25:05' and `end` < '2025-09-21 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 09:25:18] Production.INFO: count ==170 [2025-09-21 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 06:25:05 - End Time 2025-09-21 09:25:05 [2025-09-21 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879104', 'tblTempUsageDetail_20' ) start [2025-09-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879104', 'tblTempUsageDetail_20' ) end [2025-09-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879104', 'tblTempVendorCDR_20' ) start [2025-09-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879104', 'tblTempVendorCDR_20' ) end [2025-09-21 09:25:18] Production.INFO: ProcessCDR(1,15879104,1,1,2) [2025-09-21 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15879104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15879104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15879104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15879104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879104', 'tblTempUsageDetail_20' ) start [2025-09-21 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879104', 'tblTempUsageDetail_20' ) end [2025-09-21 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-21 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-21 09:25:25] Production.INFO: ==26866== Releasing lock... [2025-09-21 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 09:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-21 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 07:25:05 [end_date_ymd] => 2025-09-21 10:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-21 07:25:05' and `end` < '2025-09-21 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-09-21 10:25:17] Production.INFO: count ==215 [2025-09-21 10:25:17] Production.ERROR: pbx CDR StartTime 2025-09-21 07:25:05 - End Time 2025-09-21 10:25:05 [2025-09-21 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879351', 'tblTempUsageDetail_20' ) start [2025-09-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879351', 'tblTempUsageDetail_20' ) end [2025-09-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879351', 'tblTempVendorCDR_20' ) start [2025-09-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879351', 'tblTempVendorCDR_20' ) end [2025-09-21 10:25:17] Production.INFO: ProcessCDR(1,15879351,1,1,2) [2025-09-21 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15879351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15879351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15879351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15879351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879351', 'tblTempUsageDetail_20' ) start [2025-09-21 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879351', 'tblTempUsageDetail_20' ) end [2025-09-21 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-21 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-21 10:25:25] Production.INFO: ==31475== Releasing lock... [2025-09-21 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 10:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 08:25:05 [end_date_ymd] => 2025-09-21 11:25:05 [RateCDR] => 1 ) [2025-09-21 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 08:25:05' and `end` < '2025-09-21 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 11:25:17] Production.INFO: count ==365 [2025-09-21 11:25:17] Production.ERROR: pbx CDR StartTime 2025-09-21 08:25:05 - End Time 2025-09-21 11:25:05 [2025-09-21 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879598', 'tblTempUsageDetail_20' ) start [2025-09-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879598', 'tblTempUsageDetail_20' ) end [2025-09-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879598', 'tblTempVendorCDR_20' ) start [2025-09-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879598', 'tblTempVendorCDR_20' ) end [2025-09-21 11:25:18] Production.INFO: ProcessCDR(1,15879598,1,1,2) [2025-09-21 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15879598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15879598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15879598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15879598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879598', 'tblTempUsageDetail_20' ) start [2025-09-21 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879598', 'tblTempUsageDetail_20' ) end [2025-09-21 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 11:25:26] Production.INFO: ==3375== Releasing lock... [2025-09-21 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 11:25:26] Production.INFO: 31 MB #Memory Used# [2025-09-21 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 09:25:05 [end_date_ymd] => 2025-09-21 12:25:05 [RateCDR] => 1 ) [2025-09-21 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 09:25:05' and `end` < '2025-09-21 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 12:25:17] Production.INFO: count ==598 [2025-09-21 12:25:17] Production.ERROR: pbx CDR StartTime 2025-09-21 09:25:05 - End Time 2025-09-21 12:25:05 [2025-09-21 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879845', 'tblTempUsageDetail_20' ) start [2025-09-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15879845', 'tblTempUsageDetail_20' ) end [2025-09-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879845', 'tblTempVendorCDR_20' ) start [2025-09-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15879845', 'tblTempVendorCDR_20' ) end [2025-09-21 12:25:17] Production.INFO: ProcessCDR(1,15879845,1,1,2) [2025-09-21 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15879845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15879845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15879845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15879845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879845', 'tblTempUsageDetail_20' ) start [2025-09-21 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15879845', 'tblTempUsageDetail_20' ) end [2025-09-21 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 12:25:26] Production.INFO: ==7757== Releasing lock... [2025-09-21 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 12:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-09-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 10:25:05 [end_date_ymd] => 2025-09-21 13:25:05 [RateCDR] => 1 ) [2025-09-21 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 10:25:05' and `end` < '2025-09-21 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 13:25:17] Production.INFO: count ==1085 [2025-09-21 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 10:25:05 - End Time 2025-09-21 13:25:05 [2025-09-21 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880092', 'tblTempUsageDetail_20' ) start [2025-09-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880092', 'tblTempUsageDetail_20' ) end [2025-09-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880092', 'tblTempVendorCDR_20' ) start [2025-09-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880092', 'tblTempVendorCDR_20' ) end [2025-09-21 13:25:18] Production.INFO: ProcessCDR(1,15880092,1,1,2) [2025-09-21 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15880092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15880092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15880092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15880092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880092', 'tblTempUsageDetail_20' ) start [2025-09-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880092', 'tblTempUsageDetail_20' ) end [2025-09-21 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 13:25:26] Production.INFO: ==12249== Releasing lock... [2025-09-21 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 13:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-09-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 11:25:05 [end_date_ymd] => 2025-09-21 14:25:05 [RateCDR] => 1 ) [2025-09-21 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 11:25:05' and `end` < '2025-09-21 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 14:25:17] Production.INFO: count ==1222 [2025-09-21 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 11:25:05 - End Time 2025-09-21 14:25:05 [2025-09-21 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880339', 'tblTempUsageDetail_20' ) start [2025-09-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880339', 'tblTempUsageDetail_20' ) end [2025-09-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880339', 'tblTempVendorCDR_20' ) start [2025-09-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880339', 'tblTempVendorCDR_20' ) end [2025-09-21 14:25:18] Production.INFO: ProcessCDR(1,15880339,1,1,2) [2025-09-21 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15880339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15880339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15880339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15880339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880339', 'tblTempUsageDetail_20' ) start [2025-09-21 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880339', 'tblTempUsageDetail_20' ) end [2025-09-21 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-21 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-21 14:25:26] Production.INFO: ==16453== Releasing lock... [2025-09-21 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 14:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-09-21 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 12:25:05 [end_date_ymd] => 2025-09-21 15:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-21 12:25:05' and `end` < '2025-09-21 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-09-21 15:25:18] Production.INFO: count ==2124 [2025-09-21 15:25:19] Production.ERROR: pbx CDR StartTime 2025-09-21 12:25:05 - End Time 2025-09-21 15:25:05 [2025-09-21 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880586', 'tblTempUsageDetail_20' ) start [2025-09-21 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880586', 'tblTempUsageDetail_20' ) end [2025-09-21 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880586', 'tblTempVendorCDR_20' ) start [2025-09-21 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880586', 'tblTempVendorCDR_20' ) end [2025-09-21 15:25:19] Production.INFO: ProcessCDR(1,15880586,1,1,2) [2025-09-21 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15880586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15880586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15880586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15880586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880586', 'tblTempUsageDetail_20' ) start [2025-09-21 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880586', 'tblTempUsageDetail_20' ) end [2025-09-21 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-21 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-21 15:25:29] Production.INFO: ==20735== Releasing lock... [2025-09-21 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 15:25:29] Production.INFO: 44.25 MB #Memory Used# [2025-09-21 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 13:25:06 [end_date_ymd] => 2025-09-21 16:25:06 [RateCDR] => 1 ) [2025-09-21 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 13:25:06' and `end` < '2025-09-21 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 16:25:18] Production.INFO: count ==3582 [2025-09-21 16:25:20] Production.ERROR: pbx CDR StartTime 2025-09-21 13:25:06 - End Time 2025-09-21 16:25:06 [2025-09-21 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880833', 'tblTempUsageDetail_20' ) start [2025-09-21 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15880833', 'tblTempUsageDetail_20' ) end [2025-09-21 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880833', 'tblTempVendorCDR_20' ) start [2025-09-21 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15880833', 'tblTempVendorCDR_20' ) end [2025-09-21 16:25:20] Production.INFO: ProcessCDR(1,15880833,1,1,2) [2025-09-21 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15880833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15880833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15880833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15880833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880833', 'tblTempUsageDetail_20' ) start [2025-09-21 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15880833', 'tblTempUsageDetail_20' ) end [2025-09-21 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-21 16:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-21 16:25:31] Production.INFO: ==25407== Releasing lock... [2025-09-21 16:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 16:25:31] Production.INFO: 54.75 MB #Memory Used# [2025-09-21 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 14:25:06 [end_date_ymd] => 2025-09-21 17:25:06 [RateCDR] => 1 ) [2025-09-21 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-09-21 14:25:06' and `end` < '2025-09-21 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-09-21 17:25:18] Production.INFO: count ==3854 [2025-09-21 17:25:20] Production.ERROR: pbx CDR StartTime 2025-09-21 14:25:06 - End Time 2025-09-21 17:25:06 [2025-09-21 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881080', 'tblTempUsageDetail_20' ) start [2025-09-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881080', 'tblTempUsageDetail_20' ) end [2025-09-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881080', 'tblTempVendorCDR_20' ) start [2025-09-21 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881080', 'tblTempVendorCDR_20' ) end [2025-09-21 17:25:20] Production.INFO: ProcessCDR(1,15881080,1,1,2) [2025-09-21 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15881080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15881080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15881080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15881080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881080', 'tblTempUsageDetail_20' ) start [2025-09-21 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881080', 'tblTempUsageDetail_20' ) end [2025-09-21 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-21 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-21 17:25:30] Production.INFO: ==31089== Releasing lock... [2025-09-21 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 17:25:30] Production.INFO: 57 MB #Memory Used# [2025-09-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 15:25:05 [end_date_ymd] => 2025-09-21 18:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-21 15:25:05' and `end` < '2025-09-21 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-09-21 18:25:18] Production.INFO: count ==3264 [2025-09-21 18:25:19] Production.ERROR: pbx CDR StartTime 2025-09-21 15:25:05 - End Time 2025-09-21 18:25:05 [2025-09-21 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881327', 'tblTempUsageDetail_20' ) start [2025-09-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881327', 'tblTempUsageDetail_20' ) end [2025-09-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881327', 'tblTempVendorCDR_20' ) start [2025-09-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881327', 'tblTempVendorCDR_20' ) end [2025-09-21 18:25:19] Production.INFO: ProcessCDR(1,15881327,1,1,2) [2025-09-21 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15881327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15881327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15881327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15881327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881327', 'tblTempUsageDetail_20' ) start [2025-09-21 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881327', 'tblTempUsageDetail_20' ) end [2025-09-21 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-21 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-21 18:25:29] Production.INFO: ==4887== Releasing lock... [2025-09-21 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 18:25:29] Production.INFO: 52.5 MB #Memory Used# [2025-09-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 16:25:05 [end_date_ymd] => 2025-09-21 19:25:05 [RateCDR] => 1 ) [2025-09-21 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-09-21 16:25:05' and `end` < '2025-09-21 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-09-21 19:25:18] Production.INFO: count ==2957 [2025-09-21 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-21 16:25:05 - End Time 2025-09-21 19:25:05 [2025-09-21 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881570', 'tblTempUsageDetail_20' ) start [2025-09-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881570', 'tblTempUsageDetail_20' ) end [2025-09-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881570', 'tblTempVendorCDR_20' ) start [2025-09-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881570', 'tblTempVendorCDR_20' ) end [2025-09-21 19:25:19] Production.INFO: ProcessCDR(1,15881570,1,1,2) [2025-09-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15881570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15881570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15881570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15881570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881570', 'tblTempUsageDetail_20' ) start [2025-09-21 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881570', 'tblTempUsageDetail_20' ) end [2025-09-21 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-21 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-21 19:25:30] Production.INFO: ==9097== Releasing lock... [2025-09-21 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 19:25:30] Production.INFO: 50 MB #Memory Used# [2025-09-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 17:25:05 [end_date_ymd] => 2025-09-21 20:25:05 [RateCDR] => 1 ) [2025-09-21 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 17:25:05' and `end` < '2025-09-21 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 20:25:17] Production.INFO: count ==4191 [2025-09-21 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-21 17:25:05 - End Time 2025-09-21 20:25:05 [2025-09-21 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881817', 'tblTempUsageDetail_20' ) start [2025-09-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15881817', 'tblTempUsageDetail_20' ) end [2025-09-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881817', 'tblTempVendorCDR_20' ) start [2025-09-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15881817', 'tblTempVendorCDR_20' ) end [2025-09-21 20:25:19] Production.INFO: ProcessCDR(1,15881817,1,1,2) [2025-09-21 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15881817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15881817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15881817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 20:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15881817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881817', 'tblTempUsageDetail_20' ) start [2025-09-21 20:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15881817', 'tblTempUsageDetail_20' ) end [2025-09-21 20:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-21 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-21 20:25:30] Production.INFO: ==13852== Releasing lock... [2025-09-21 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 20:25:30] Production.INFO: 59.5 MB #Memory Used# [2025-09-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 18:25:05 [end_date_ymd] => 2025-09-21 21:25:05 [RateCDR] => 1 ) [2025-09-21 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 18:25:05' and `end` < '2025-09-21 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 21:25:18] Production.INFO: count ==5162 [2025-09-21 21:25:21] Production.ERROR: pbx CDR StartTime 2025-09-21 18:25:05 - End Time 2025-09-21 21:25:05 [2025-09-21 21:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882064', 'tblTempUsageDetail_20' ) start [2025-09-21 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882064', 'tblTempUsageDetail_20' ) end [2025-09-21 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882064', 'tblTempVendorCDR_20' ) start [2025-09-21 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882064', 'tblTempVendorCDR_20' ) end [2025-09-21 21:25:21] Production.INFO: ProcessCDR(1,15882064,1,1,2) [2025-09-21 21:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15882064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 21:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15882064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 21:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15882064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 21:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15882064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 21:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882064', 'tblTempUsageDetail_20' ) start [2025-09-21 21:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882064', 'tblTempUsageDetail_20' ) end [2025-09-21 21:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-21 21:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-21 21:25:32] Production.INFO: ==18211== Releasing lock... [2025-09-21 21:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 21:25:32] Production.INFO: 66.75 MB #Memory Used# [2025-09-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 19:25:05 [end_date_ymd] => 2025-09-21 22:25:05 [RateCDR] => 1 ) [2025-09-21 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 19:25:05' and `end` < '2025-09-21 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 22:25:17] Production.INFO: count ==4242 [2025-09-21 22:25:20] Production.ERROR: pbx CDR StartTime 2025-09-21 19:25:05 - End Time 2025-09-21 22:25:05 [2025-09-21 22:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882311', 'tblTempUsageDetail_20' ) start [2025-09-21 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882311', 'tblTempUsageDetail_20' ) end [2025-09-21 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882311', 'tblTempVendorCDR_20' ) start [2025-09-21 22:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882311', 'tblTempVendorCDR_20' ) end [2025-09-21 22:25:20] Production.INFO: ProcessCDR(1,15882311,1,1,2) [2025-09-21 22:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15882311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15882311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15882311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 22:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15882311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882311', 'tblTempUsageDetail_20' ) start [2025-09-21 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882311', 'tblTempUsageDetail_20' ) end [2025-09-21 22:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-21 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-21 22:25:28] Production.INFO: ==22726== Releasing lock... [2025-09-21 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 22:25:28] Production.INFO: 60 MB #Memory Used# [2025-09-21 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 20:25:06 [end_date_ymd] => 2025-09-21 23:25:06 [RateCDR] => 1 ) [2025-09-21 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 20:25:06' and `end` < '2025-09-21 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-21 23:25:18] Production.INFO: count ==2392 [2025-09-21 23:25:19] Production.ERROR: pbx CDR StartTime 2025-09-21 20:25:06 - End Time 2025-09-21 23:25:06 [2025-09-21 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-21 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882558', 'tblTempUsageDetail_20' ) start [2025-09-21 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882558', 'tblTempUsageDetail_20' ) end [2025-09-21 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882558', 'tblTempVendorCDR_20' ) start [2025-09-21 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882558', 'tblTempVendorCDR_20' ) end [2025-09-21 23:25:19] Production.INFO: ProcessCDR(1,15882558,1,1,2) [2025-09-21 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15882558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15882558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-21 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15882558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15882558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-21 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882558', 'tblTempUsageDetail_20' ) start [2025-09-21 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882558', 'tblTempUsageDetail_20' ) end [2025-09-21 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-21 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-21 23:25:28] Production.INFO: ==27080== Releasing lock... [2025-09-21 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-21 23:25:28] Production.INFO: 46.5 MB #Memory Used#