[2025-10-05 00:25:05] Production.INFO: next invoice date [2025-10-05 00:25:05] Production.INFO: 2025-11-05 [2025-10-05 00:25:05] Production.INFO: getdaysdiff [2025-10-05 00:25:05] Production.INFO: +31 [2025-10-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2025-10-05 00:25:05,0,0,,,0) [2025-10-05 00:25:05] Production.INFO: next invoice date [2025-10-05 00:25:05] Production.INFO: 2025-11-05 [2025-10-05 00:25:05] Production.INFO: getdaysdiff [2025-10-05 00:25:05] Production.INFO: +31 [2025-10-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2025-10-05 00:25:05,0,0,,,0) [2025-10-05 00:25:05] Production.INFO: next invoice date [2025-10-05 00:25:05] Production.INFO: 2025-11-05 [2025-10-05 00:25:05] Production.INFO: getdaysdiff [2025-10-05 00:25:05] Production.INFO: +31 [2025-10-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2025-10-05 00:25:05,0,0,,,0) [2025-10-05 00:25:05] Production.INFO: next invoice date [2025-10-05 00:25:05] Production.INFO: 2025-11-05 [2025-10-05 00:25:05] Production.INFO: getdaysdiff [2025-10-05 00:25:05] Production.INFO: +31 [2025-10-05 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2025-10-05 00:25:05,0,0,,,0) [2025-10-05 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 21:25:06 [end_date_ymd] => 2025-10-05 00:25:06 [RateCDR] => 1 ) [2025-10-05 00: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-10-04 21:25:06' and `end` < '2025-10-05 00: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-10-05 00:25:18] Production.INFO: count ==668 [2025-10-05 00:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 21:25:06 - End Time 2025-10-05 00:25:06 [2025-10-05 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959860', 'tblTempUsageDetail_20' ) start [2025-10-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959860', 'tblTempUsageDetail_20' ) end [2025-10-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959860', 'tblTempVendorCDR_20' ) start [2025-10-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959860', 'tblTempVendorCDR_20' ) end [2025-10-05 00:25:19] Production.INFO: ProcessCDR(1,15959860,1,1,2) [2025-10-05 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15959860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15959860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15959860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15959860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959860', 'tblTempUsageDetail_20' ) start [2025-10-05 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959860', 'tblTempUsageDetail_20' ) end [2025-10-05 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-05 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 00:25:29] Production.INFO: ==6751== Releasing lock... [2025-10-05 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 00:25:29] Production.INFO: 37.5 MB #Memory Used# [2025-10-05 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 22:25:06 [end_date_ymd] => 2025-10-05 01:25:06 [RateCDR] => 1 ) [2025-10-05 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 22:25:06' and `end` < '2025-10-05 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 01:25:18] Production.INFO: count ==851 [2025-10-05 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 22:25:06 - End Time 2025-10-05 01:25:06 [2025-10-05 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960107', 'tblTempUsageDetail_20' ) start [2025-10-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960107', 'tblTempUsageDetail_20' ) end [2025-10-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960107', 'tblTempVendorCDR_20' ) start [2025-10-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960107', 'tblTempVendorCDR_20' ) end [2025-10-05 01:25:18] Production.INFO: ProcessCDR(1,15960107,1,1,2) [2025-10-05 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15960107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15960107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15960107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15960107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960107', 'tblTempUsageDetail_20' ) start [2025-10-05 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960107', 'tblTempUsageDetail_20' ) end [2025-10-05 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 01:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 01:25:28] Production.INFO: ==11279== Releasing lock... [2025-10-05 01:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 01:25:28] Production.INFO: 34.5 MB #Memory Used# [2025-10-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 23:25:05 [end_date_ymd] => 2025-10-05 02:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-04 23:25:05' and `end` < '2025-10-05 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-10-05 02:25:17] Production.INFO: count ==781 [2025-10-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 23:25:05 - End Time 2025-10-05 02:25:05 [2025-10-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960354', 'tblTempUsageDetail_20' ) start [2025-10-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960354', 'tblTempUsageDetail_20' ) end [2025-10-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960354', 'tblTempVendorCDR_20' ) start [2025-10-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960354', 'tblTempVendorCDR_20' ) end [2025-10-05 02:25:18] Production.INFO: ProcessCDR(1,15960354,1,1,2) [2025-10-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15960354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15960354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15960354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15960354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960354', 'tblTempUsageDetail_20' ) start [2025-10-05 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960354', 'tblTempUsageDetail_20' ) end [2025-10-05 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-05 02:25:27] Production.INFO: ==16011== Releasing lock... [2025-10-05 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 02:25:27] Production.INFO: 34 MB #Memory Used# [2025-10-05 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 00:25:05 [end_date_ymd] => 2025-10-05 03:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 00:25:05' and `end` < '2025-10-05 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-10-05 03:25:17] Production.INFO: count ==691 [2025-10-05 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 00:25:05 - End Time 2025-10-05 03:25:05 [2025-10-05 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960601', 'tblTempUsageDetail_20' ) start [2025-10-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960601', 'tblTempUsageDetail_20' ) end [2025-10-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960601', 'tblTempVendorCDR_20' ) start [2025-10-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960601', 'tblTempVendorCDR_20' ) end [2025-10-05 03:25:18] Production.INFO: ProcessCDR(1,15960601,1,1,2) [2025-10-05 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15960601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15960601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15960601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15960601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960601', 'tblTempUsageDetail_20' ) start [2025-10-05 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960601', 'tblTempUsageDetail_20' ) end [2025-10-05 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-05 03:25:27] Production.INFO: ==21043== Releasing lock... [2025-10-05 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 03:25:27] Production.INFO: 33.75 MB #Memory Used# [2025-10-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 01:25:05 [end_date_ymd] => 2025-10-05 04:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 01:25:05' and `end` < '2025-10-05 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-10-05 04:25:17] Production.INFO: count ==363 [2025-10-05 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 01:25:05 - End Time 2025-10-05 04:25:05 [2025-10-05 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960849', 'tblTempUsageDetail_20' ) start [2025-10-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15960849', 'tblTempUsageDetail_20' ) end [2025-10-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960849', 'tblTempVendorCDR_20' ) start [2025-10-05 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15960849', 'tblTempVendorCDR_20' ) end [2025-10-05 04:25:17] Production.INFO: ProcessCDR(1,15960849,1,1,2) [2025-10-05 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15960849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15960849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15960849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15960849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960849', 'tblTempUsageDetail_20' ) start [2025-10-05 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15960849', 'tblTempUsageDetail_20' ) end [2025-10-05 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-05 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-05 04:25:25] Production.INFO: ==25532== Releasing lock... [2025-10-05 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 04:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-10-05 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 02:25:06 [end_date_ymd] => 2025-10-05 05:25:06 [RateCDR] => 1 ) [2025-10-05 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-10-05 02:25:06' and `end` < '2025-10-05 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-10-05 05:25:18] Production.INFO: count ==263 [2025-10-05 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 02:25:06 - End Time 2025-10-05 05:25:06 [2025-10-05 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961097', 'tblTempUsageDetail_20' ) start [2025-10-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961097', 'tblTempUsageDetail_20' ) end [2025-10-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961097', 'tblTempVendorCDR_20' ) start [2025-10-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961097', 'tblTempVendorCDR_20' ) end [2025-10-05 05:25:18] Production.INFO: ProcessCDR(1,15961097,1,1,2) [2025-10-05 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15961097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15961097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15961097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 05:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15961097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961097', 'tblTempUsageDetail_20' ) start [2025-10-05 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961097', 'tblTempUsageDetail_20' ) end [2025-10-05 05:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 05:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-05 05:25:27] Production.INFO: ==30862== Releasing lock... [2025-10-05 05:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 05:25:27] Production.INFO: 30.5 MB #Memory Used# [2025-10-05 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 03:25:05 [end_date_ymd] => 2025-10-05 06:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 03:25:05' and `end` < '2025-10-05 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-10-05 06:25:17] Production.INFO: count ==170 [2025-10-05 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 03:25:05 - End Time 2025-10-05 06:25:05 [2025-10-05 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961344', 'tblTempUsageDetail_20' ) start [2025-10-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961344', 'tblTempUsageDetail_20' ) end [2025-10-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961344', 'tblTempVendorCDR_20' ) start [2025-10-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961344', 'tblTempVendorCDR_20' ) end [2025-10-05 06:25:17] Production.INFO: ProcessCDR(1,15961344,1,1,2) [2025-10-05 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15961344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15961344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15961344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15961344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961344', 'tblTempUsageDetail_20' ) start [2025-10-05 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961344', 'tblTempUsageDetail_20' ) end [2025-10-05 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 06:25:26] Production.INFO: ==2910== Releasing lock... [2025-10-05 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 04:25:05 [end_date_ymd] => 2025-10-05 07:25:05 [RateCDR] => 1 ) [2025-10-05 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-05 04:25:05' and `end` < '2025-10-05 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 07:25:17] Production.INFO: count ==119 [2025-10-05 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 04:25:05 - End Time 2025-10-05 07:25:05 [2025-10-05 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961591', 'tblTempUsageDetail_20' ) start [2025-10-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961591', 'tblTempUsageDetail_20' ) end [2025-10-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961591', 'tblTempVendorCDR_20' ) start [2025-10-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961591', 'tblTempVendorCDR_20' ) end [2025-10-05 07:25:17] Production.INFO: ProcessCDR(1,15961591,1,1,2) [2025-10-05 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15961591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15961591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15961591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15961591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961591', 'tblTempUsageDetail_20' ) start [2025-10-05 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961591', 'tblTempUsageDetail_20' ) end [2025-10-05 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-05 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-05 07:25:25] Production.INFO: ==7436== Releasing lock... [2025-10-05 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-10-05 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 05:25:05 [end_date_ymd] => 2025-10-05 08:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 05:25:05' and `end` < '2025-10-05 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-10-05 08:25:18] Production.INFO: count ==135 [2025-10-05 08:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 05:25:05 - End Time 2025-10-05 08:25:05 [2025-10-05 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961838', 'tblTempUsageDetail_20' ) start [2025-10-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15961838', 'tblTempUsageDetail_20' ) end [2025-10-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961838', 'tblTempVendorCDR_20' ) start [2025-10-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15961838', 'tblTempVendorCDR_20' ) end [2025-10-05 08:25:18] Production.INFO: ProcessCDR(1,15961838,1,1,2) [2025-10-05 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15961838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15961838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15961838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15961838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961838', 'tblTempUsageDetail_20' ) start [2025-10-05 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15961838', 'tblTempUsageDetail_20' ) end [2025-10-05 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 08:25:26] Production.INFO: ==11807== Releasing lock... [2025-10-05 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 08:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 06:25:05 [end_date_ymd] => 2025-10-05 09:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 06:25:05' and `end` < '2025-10-05 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-10-05 09:25:17] Production.INFO: count ==215 [2025-10-05 09:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 06:25:05 - End Time 2025-10-05 09:25:05 [2025-10-05 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962085', 'tblTempUsageDetail_20' ) start [2025-10-05 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962085', 'tblTempUsageDetail_20' ) end [2025-10-05 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962085', 'tblTempVendorCDR_20' ) start [2025-10-05 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962085', 'tblTempVendorCDR_20' ) end [2025-10-05 09:25:17] Production.INFO: ProcessCDR(1,15962085,1,1,2) [2025-10-05 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15962085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15962085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15962085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15962085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962085', 'tblTempUsageDetail_20' ) start [2025-10-05 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962085', 'tblTempUsageDetail_20' ) end [2025-10-05 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-05 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-05 09:25:25] Production.INFO: ==16438== Releasing lock... [2025-10-05 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 09:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-10-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 07:25:05 [end_date_ymd] => 2025-10-05 10:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 07:25:05' and `end` < '2025-10-05 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-10-05 10:25:17] Production.INFO: count ==382 [2025-10-05 10:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 07:25:05 - End Time 2025-10-05 10:25:05 [2025-10-05 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962332', 'tblTempUsageDetail_20' ) start [2025-10-05 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962332', 'tblTempUsageDetail_20' ) end [2025-10-05 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962332', 'tblTempVendorCDR_20' ) start [2025-10-05 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962332', 'tblTempVendorCDR_20' ) end [2025-10-05 10:25:17] Production.INFO: ProcessCDR(1,15962332,1,1,2) [2025-10-05 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15962332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15962332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15962332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15962332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962332', 'tblTempUsageDetail_20' ) start [2025-10-05 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962332', 'tblTempUsageDetail_20' ) end [2025-10-05 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 10:25:26] Production.INFO: ==21953== Releasing lock... [2025-10-05 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 10:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 08:25:05 [end_date_ymd] => 2025-10-05 11:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 08:25:05' and `end` < '2025-10-05 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-10-05 11:25:17] Production.INFO: count ==672 [2025-10-05 11:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 08:25:05 - End Time 2025-10-05 11:25:05 [2025-10-05 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962579', 'tblTempUsageDetail_20' ) start [2025-10-05 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962579', 'tblTempUsageDetail_20' ) end [2025-10-05 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962579', 'tblTempVendorCDR_20' ) start [2025-10-05 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962579', 'tblTempVendorCDR_20' ) end [2025-10-05 11:25:17] Production.INFO: ProcessCDR(1,15962579,1,1,2) [2025-10-05 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15962579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15962579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15962579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15962579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962579', 'tblTempUsageDetail_20' ) start [2025-10-05 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962579', 'tblTempUsageDetail_20' ) end [2025-10-05 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 11:25:26] Production.INFO: ==26751== Releasing lock... [2025-10-05 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 11:25:26] Production.INFO: 33.5 MB #Memory Used# [2025-10-05 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 09:25:05 [end_date_ymd] => 2025-10-05 12:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 09:25:05' and `end` < '2025-10-05 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-10-05 12:25:17] Production.INFO: count ==998 [2025-10-05 12:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 09:25:05 - End Time 2025-10-05 12:25:05 [2025-10-05 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962826', 'tblTempUsageDetail_20' ) start [2025-10-05 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15962826', 'tblTempUsageDetail_20' ) end [2025-10-05 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962826', 'tblTempVendorCDR_20' ) start [2025-10-05 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15962826', 'tblTempVendorCDR_20' ) end [2025-10-05 12:25:17] Production.INFO: ProcessCDR(1,15962826,1,1,2) [2025-10-05 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15962826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15962826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15962826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15962826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962826', 'tblTempUsageDetail_20' ) start [2025-10-05 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15962826', 'tblTempUsageDetail_20' ) end [2025-10-05 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 12:25:26] Production.INFO: ==31205== Releasing lock... [2025-10-05 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 12:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-10-05 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 10:25:06 [end_date_ymd] => 2025-10-05 13:25:06 [RateCDR] => 1 ) [2025-10-05 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-05 10:25:06' and `end` < '2025-10-05 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 13:25:19] Production.INFO: count ==1142 [2025-10-05 13:25:19] Production.ERROR: pbx CDR StartTime 2025-10-05 10:25:06 - End Time 2025-10-05 13:25:06 [2025-10-05 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963073', 'tblTempUsageDetail_20' ) start [2025-10-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963073', 'tblTempUsageDetail_20' ) end [2025-10-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963073', 'tblTempVendorCDR_20' ) start [2025-10-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963073', 'tblTempVendorCDR_20' ) end [2025-10-05 13:25:19] Production.INFO: ProcessCDR(1,15963073,1,1,2) [2025-10-05 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15963073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15963073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15963073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15963073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963073', 'tblTempUsageDetail_20' ) start [2025-10-05 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963073', 'tblTempUsageDetail_20' ) end [2025-10-05 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-05 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 13:25:28] Production.INFO: ==4298== Releasing lock... [2025-10-05 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 13:25:28] Production.INFO: 37 MB #Memory Used# [2025-10-05 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 11:25:06 [end_date_ymd] => 2025-10-05 14:25:06 [RateCDR] => 1 ) [2025-10-05 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-05 11:25:06' and `end` < '2025-10-05 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 14:25:18] Production.INFO: count ==1168 [2025-10-05 14:25:19] Production.ERROR: pbx CDR StartTime 2025-10-05 11:25:06 - End Time 2025-10-05 14:25:06 [2025-10-05 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963320', 'tblTempUsageDetail_20' ) start [2025-10-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963320', 'tblTempUsageDetail_20' ) end [2025-10-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963320', 'tblTempVendorCDR_20' ) start [2025-10-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963320', 'tblTempVendorCDR_20' ) end [2025-10-05 14:25:19] Production.INFO: ProcessCDR(1,15963320,1,1,2) [2025-10-05 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15963320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15963320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15963320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15963320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963320', 'tblTempUsageDetail_20' ) start [2025-10-05 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963320', 'tblTempUsageDetail_20' ) end [2025-10-05 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-05 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 14:25:28] Production.INFO: ==8894== Releasing lock... [2025-10-05 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 14:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-05 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 12:25:05 [end_date_ymd] => 2025-10-05 15:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 12:25:05' and `end` < '2025-10-05 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-10-05 15:25:17] Production.INFO: count ==1302 [2025-10-05 15:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 12:25:05 - End Time 2025-10-05 15:25:05 [2025-10-05 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963567', 'tblTempUsageDetail_20' ) start [2025-10-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963567', 'tblTempUsageDetail_20' ) end [2025-10-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963567', 'tblTempVendorCDR_20' ) start [2025-10-05 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963567', 'tblTempVendorCDR_20' ) end [2025-10-05 15:25:18] Production.INFO: ProcessCDR(1,15963567,1,1,2) [2025-10-05 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15963567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15963567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15963567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15963567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963567', 'tblTempUsageDetail_20' ) start [2025-10-05 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963567', 'tblTempUsageDetail_20' ) end [2025-10-05 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 15:25:28] Production.INFO: ==13940== Releasing lock... [2025-10-05 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 15:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-10-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 13:25:05 [end_date_ymd] => 2025-10-05 16:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 13:25:05' and `end` < '2025-10-05 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-10-05 16:25:17] Production.INFO: count ==1399 [2025-10-05 16:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 13:25:05 - End Time 2025-10-05 16:25:05 [2025-10-05 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963814', 'tblTempUsageDetail_20' ) start [2025-10-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15963814', 'tblTempUsageDetail_20' ) end [2025-10-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963814', 'tblTempVendorCDR_20' ) start [2025-10-05 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15963814', 'tblTempVendorCDR_20' ) end [2025-10-05 16:25:18] Production.INFO: ProcessCDR(1,15963814,1,1,2) [2025-10-05 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15963814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15963814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15963814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15963814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963814', 'tblTempUsageDetail_20' ) start [2025-10-05 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15963814', 'tblTempUsageDetail_20' ) end [2025-10-05 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 16:25:28] Production.INFO: ==18556== Releasing lock... [2025-10-05 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 16:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-10-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 14:25:05 [end_date_ymd] => 2025-10-05 17:25:05 [RateCDR] => 1 ) [2025-10-05 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-05 14:25:05' and `end` < '2025-10-05 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 17:25:17] Production.INFO: count ==1631 [2025-10-05 17:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 14:25:05 - End Time 2025-10-05 17:25:05 [2025-10-05 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964061', 'tblTempUsageDetail_20' ) start [2025-10-05 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964061', 'tblTempUsageDetail_20' ) end [2025-10-05 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964061', 'tblTempVendorCDR_20' ) start [2025-10-05 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964061', 'tblTempVendorCDR_20' ) end [2025-10-05 17:25:18] Production.INFO: ProcessCDR(1,15964061,1,1,2) [2025-10-05 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15964061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15964061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15964061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15964061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964061', 'tblTempUsageDetail_20' ) start [2025-10-05 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964061', 'tblTempUsageDetail_20' ) end [2025-10-05 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 17:25:28] Production.INFO: ==23013== Releasing lock... [2025-10-05 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 17:25:28] Production.INFO: 40.5 MB #Memory Used# [2025-10-05 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 15:25:05 [end_date_ymd] => 2025-10-05 18:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 15:25:05' and `end` < '2025-10-05 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-10-05 18:25:17] Production.INFO: count ==1676 [2025-10-05 18:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 15:25:05 - End Time 2025-10-05 18:25:05 [2025-10-05 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964308', 'tblTempUsageDetail_20' ) start [2025-10-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964308', 'tblTempUsageDetail_20' ) end [2025-10-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964308', 'tblTempVendorCDR_20' ) start [2025-10-05 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964308', 'tblTempVendorCDR_20' ) end [2025-10-05 18:25:18] Production.INFO: ProcessCDR(1,15964308,1,1,2) [2025-10-05 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15964308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15964308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15964308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 18:25:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15964308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 18:25:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964308', 'tblTempUsageDetail_20' ) start [2025-10-05 18:26:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964308', 'tblTempUsageDetail_20' ) end [2025-10-05 18:26:01] Production.ERROR: pbx prc_insertCDR start [2025-10-05 18:26:06] Production.ERROR: pbx prc_insertCDR end [2025-10-05 18:26:07] Production.INFO: ==27651== Releasing lock... [2025-10-05 18:26:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 18:26:07] Production.INFO: 40.75 MB #Memory Used# [2025-10-05 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 16:25:06 [end_date_ymd] => 2025-10-05 19:25:06 [RateCDR] => 1 ) [2025-10-05 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-05 16:25:06' and `end` < '2025-10-05 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-05 19:25:19] Production.INFO: count ==1818 [2025-10-05 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-05 16:25:06 - End Time 2025-10-05 19:25:06 [2025-10-05 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964553', 'tblTempUsageDetail_20' ) start [2025-10-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964553', 'tblTempUsageDetail_20' ) end [2025-10-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964553', 'tblTempVendorCDR_20' ) start [2025-10-05 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964553', 'tblTempVendorCDR_20' ) end [2025-10-05 19:25:19] Production.INFO: ProcessCDR(1,15964553,1,1,2) [2025-10-05 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15964553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15964553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15964553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15964553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964553', 'tblTempUsageDetail_20' ) start [2025-10-05 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964553', 'tblTempUsageDetail_20' ) end [2025-10-05 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-05 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-05 19:25:30] Production.INFO: ==32248== Releasing lock... [2025-10-05 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 19:25:30] Production.INFO: 42 MB #Memory Used# [2025-10-05 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 17:25:06 [end_date_ymd] => 2025-10-05 20:25:06 [RateCDR] => 1 ) [2025-10-05 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-10-05 17:25:06' and `end` < '2025-10-05 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-10-05 20:25:18] Production.INFO: count ==1953 [2025-10-05 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-05 17:25:06 - End Time 2025-10-05 20:25:06 [2025-10-05 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964800', 'tblTempUsageDetail_20' ) start [2025-10-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15964800', 'tblTempUsageDetail_20' ) end [2025-10-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964800', 'tblTempVendorCDR_20' ) start [2025-10-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15964800', 'tblTempVendorCDR_20' ) end [2025-10-05 20:25:19] Production.INFO: ProcessCDR(1,15964800,1,1,2) [2025-10-05 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15964800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15964800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15964800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15964800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964800', 'tblTempUsageDetail_20' ) start [2025-10-05 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15964800', 'tblTempUsageDetail_20' ) end [2025-10-05 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-05 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-05 20:25:28] Production.INFO: ==4689== Releasing lock... [2025-10-05 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 20:25:28] Production.INFO: 43 MB #Memory Used# [2025-10-05 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 18:25:04 [end_date_ymd] => 2025-10-05 21:25:04 [RateCDR] => 1 ) [2025-10-05 21: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-10-05 18:25:04' and `end` < '2025-10-05 21: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-10-05 21:25:17] Production.INFO: count ==1711 [2025-10-05 21:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 18:25:04 - End Time 2025-10-05 21:25:04 [2025-10-05 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965047', 'tblTempUsageDetail_20' ) start [2025-10-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965047', 'tblTempUsageDetail_20' ) end [2025-10-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965047', 'tblTempVendorCDR_20' ) start [2025-10-05 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965047', 'tblTempVendorCDR_20' ) end [2025-10-05 21:25:18] Production.INFO: ProcessCDR(1,15965047,1,1,2) [2025-10-05 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15965047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15965047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15965047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15965047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965047', 'tblTempUsageDetail_20' ) start [2025-10-05 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965047', 'tblTempUsageDetail_20' ) end [2025-10-05 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-05 21:25:26] Production.INFO: ==9331== Releasing lock... [2025-10-05 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 21:25:26] Production.INFO: 41 MB #Memory Used# [2025-10-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 19:25:05 [end_date_ymd] => 2025-10-05 22:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 19:25:05' and `end` < '2025-10-05 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-10-05 22:25:17] Production.INFO: count ==1453 [2025-10-05 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 19:25:05 - End Time 2025-10-05 22:25:05 [2025-10-05 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965294', 'tblTempUsageDetail_20' ) start [2025-10-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965294', 'tblTempUsageDetail_20' ) end [2025-10-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965294', 'tblTempVendorCDR_20' ) start [2025-10-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965294', 'tblTempVendorCDR_20' ) end [2025-10-05 22:25:18] Production.INFO: ProcessCDR(1,15965294,1,1,2) [2025-10-05 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15965294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15965294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15965294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15965294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965294', 'tblTempUsageDetail_20' ) start [2025-10-05 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965294', 'tblTempUsageDetail_20' ) end [2025-10-05 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-05 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-05 22:25:27] Production.INFO: ==13859== Releasing lock... [2025-10-05 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 22:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-10-05 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 20:25:05 [end_date_ymd] => 2025-10-05 23:25:05 [RateCDR] => 1 ) [2025-10-05 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-10-05 20:25:05' and `end` < '2025-10-05 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-10-05 23:25:17] Production.INFO: count ==939 [2025-10-05 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 20:25:05 - End Time 2025-10-05 23:25:05 [2025-10-05 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965541', 'tblTempUsageDetail_20' ) start [2025-10-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965541', 'tblTempUsageDetail_20' ) end [2025-10-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965541', 'tblTempVendorCDR_20' ) start [2025-10-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965541', 'tblTempVendorCDR_20' ) end [2025-10-05 23:25:18] Production.INFO: ProcessCDR(1,15965541,1,1,2) [2025-10-05 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15965541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15965541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-05 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15965541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15965541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-05 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965541', 'tblTempUsageDetail_20' ) start [2025-10-05 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965541', 'tblTempUsageDetail_20' ) end [2025-10-05 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-05 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-05 23:25:27] Production.INFO: ==18163== Releasing lock... [2025-10-05 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-05 23:25:27] Production.INFO: 36 MB #Memory Used#