[2025-11-23 00:00:05] Production.INFO: next invoice date [2025-11-23 00:00:05] Production.INFO: 2025-12-23 [2025-11-23 00:00:05] Production.INFO: getdaysdiff [2025-11-23 00:00:05] Production.INFO: +30 [2025-11-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,30,30,'RMScheduler',2025-11-23 00:00:05,1,0,,,0) [2025-11-23 00:00:05] Production.INFO: next invoice date [2025-11-23 00:00:05] Production.INFO: 2025-12-23 [2025-11-23 00:00:05] Production.INFO: getdaysdiff [2025-11-23 00:00:05] Production.INFO: +30 [2025-11-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,30,30,'RMScheduler',2025-11-23 00:00:05,1,0,,,0) [2025-11-23 00:00:05] Production.INFO: next invoice date [2025-11-23 00:00:05] Production.INFO: 2025-12-23 [2025-11-23 00:00:05] Production.INFO: getdaysdiff [2025-11-23 00:00:05] Production.INFO: +30 [2025-11-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,30,30,'RMScheduler',2025-11-23 00:00:05,1,0,,,0) [2025-11-23 00:00:05] Production.INFO: next invoice date [2025-11-23 00:00:05] Production.INFO: 2025-12-23 [2025-11-23 00:00:05] Production.INFO: getdaysdiff [2025-11-23 00:00:05] Production.INFO: +30 [2025-11-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,30,30,'RMScheduler',2025-11-23 00:00:05,1,0,,,0) [2025-11-23 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 21:00:07 [end_date_ymd] => 2025-11-23 00:00:07 [RateCDR] => 1 ) [2025-11-23 00:00:07] 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-11-22 21:00:07' and `end` < '2025-11-23 00:00:07' 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-11-23 00:00:29] Production.INFO: count ==1072 [2025-11-23 00:00:29] Production.ERROR: pbx CDR StartTime 2025-11-22 21:00:07 - End Time 2025-11-23 00:00:07 [2025-11-23 00:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250490', 'tblTempUsageDetail_20' ) start [2025-11-23 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250490', 'tblTempUsageDetail_20' ) end [2025-11-23 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250490', 'tblTempVendorCDR_20' ) start [2025-11-23 00:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250490', 'tblTempVendorCDR_20' ) end [2025-11-23 00:00:29] Production.INFO: ProcessCDR(1,16250490,1,1,2) [2025-11-23 00:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16250490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16250490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16250490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16250490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250490', 'tblTempUsageDetail_20' ) start [2025-11-23 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250490', 'tblTempUsageDetail_20' ) end [2025-11-23 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-11-23 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-11-23 00:06:36] Production.INFO: ==30291== Releasing lock... [2025-11-23 00:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 00:06:36] Production.INFO: 39 MB #Memory Used# [2025-11-23 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 22:00:06 [end_date_ymd] => 2025-11-23 01:00:06 [RateCDR] => 1 ) [2025-11-23 01:00: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-11-22 22:00:06' and `end` < '2025-11-23 01:00: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-11-23 01:00:24] Production.INFO: count ==686 [2025-11-23 01:00:25] Production.ERROR: pbx CDR StartTime 2025-11-22 22:00:06 - End Time 2025-11-23 01:00:06 [2025-11-23 01:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250737', 'tblTempUsageDetail_20' ) start [2025-11-23 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250737', 'tblTempUsageDetail_20' ) end [2025-11-23 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250737', 'tblTempVendorCDR_20' ) start [2025-11-23 01:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250737', 'tblTempVendorCDR_20' ) end [2025-11-23 01:00:25] Production.INFO: ProcessCDR(1,16250737,1,1,2) [2025-11-23 01:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16250737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 01:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16250737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 01:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16250737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16250737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250737', 'tblTempUsageDetail_20' ) start [2025-11-23 01:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250737', 'tblTempUsageDetail_20' ) end [2025-11-23 01:06:24] Production.ERROR: pbx prc_insertCDR start [2025-11-23 01:06:24] Production.ERROR: pbx prc_insertCDR end [2025-11-23 01:06:24] Production.INFO: ==2756== Releasing lock... [2025-11-23 01:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 01:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-11-23 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-22 23:00:07 [end_date_ymd] => 2025-11-23 02:00:07 [RateCDR] => 1 ) [2025-11-23 02:00:07] 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-11-22 23:00:07' and `end` < '2025-11-23 02:00:07' 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-11-23 02:00:19] Production.INFO: count ==638 [2025-11-23 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-22 23:00:07 - End Time 2025-11-23 02:00:07 [2025-11-23 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250984', 'tblTempUsageDetail_20' ) start [2025-11-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16250984', 'tblTempUsageDetail_20' ) end [2025-11-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250984', 'tblTempVendorCDR_20' ) start [2025-11-23 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16250984', 'tblTempVendorCDR_20' ) end [2025-11-23 02:00:19] Production.INFO: ProcessCDR(1,16250984,1,1,2) [2025-11-23 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16250984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 02:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16250984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 02:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16250984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 02:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16250984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 02:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250984', 'tblTempUsageDetail_20' ) start [2025-11-23 02:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16250984', 'tblTempUsageDetail_20' ) end [2025-11-23 02:06:10] Production.ERROR: pbx prc_insertCDR start [2025-11-23 02:06:10] Production.ERROR: pbx prc_insertCDR end [2025-11-23 02:06:10] Production.INFO: ==7842== Releasing lock... [2025-11-23 02:06:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 02:06:10] Production.INFO: 33.25 MB #Memory Used# [2025-11-23 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 00:00:06 [end_date_ymd] => 2025-11-23 03:00:06 [RateCDR] => 1 ) [2025-11-23 03:00: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-11-23 00:00:06' and `end` < '2025-11-23 03:00: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-11-23 03:00:17] Production.INFO: count ==711 [2025-11-23 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 00:00:06 - End Time 2025-11-23 03:00:06 [2025-11-23 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251231', 'tblTempUsageDetail_20' ) start [2025-11-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251231', 'tblTempUsageDetail_20' ) end [2025-11-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251231', 'tblTempVendorCDR_20' ) start [2025-11-23 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251231', 'tblTempVendorCDR_20' ) end [2025-11-23 03:00:18] Production.INFO: ProcessCDR(1,16251231,1,1,2) [2025-11-23 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16251231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 03:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16251231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 03:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16251231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 03:05:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16251231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 03:05:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251231', 'tblTempUsageDetail_20' ) start [2025-11-23 03:05:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251231', 'tblTempUsageDetail_20' ) end [2025-11-23 03:05:46] Production.ERROR: pbx prc_insertCDR start [2025-11-23 03:05:46] Production.ERROR: pbx prc_insertCDR end [2025-11-23 03:05:46] Production.INFO: ==13117== Releasing lock... [2025-11-23 03:05:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 03:05:46] Production.INFO: 33.5 MB #Memory Used# [2025-11-23 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 01:00:06 [end_date_ymd] => 2025-11-23 04:00:06 [RateCDR] => 1 ) [2025-11-23 04:00:07] 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-11-23 01:00:06' and `end` < '2025-11-23 04:00: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-11-23 04:00:18] Production.INFO: count ==579 [2025-11-23 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 01:00:06 - End Time 2025-11-23 04:00:06 [2025-11-23 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251479', 'tblTempUsageDetail_20' ) start [2025-11-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251479', 'tblTempUsageDetail_20' ) end [2025-11-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251479', 'tblTempVendorCDR_20' ) start [2025-11-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251479', 'tblTempVendorCDR_20' ) end [2025-11-23 04:00:19] Production.INFO: ProcessCDR(1,16251479,1,1,2) [2025-11-23 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16251479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 04:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16251479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 04:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16251479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 04:06:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16251479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 04:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251479', 'tblTempUsageDetail_20' ) start [2025-11-23 04:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251479', 'tblTempUsageDetail_20' ) end [2025-11-23 04:06:08] Production.ERROR: pbx prc_insertCDR start [2025-11-23 04:06:08] Production.ERROR: pbx prc_insertCDR end [2025-11-23 04:06:08] Production.INFO: ==18210== Releasing lock... [2025-11-23 04:06:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 04:06:08] Production.INFO: 32.75 MB #Memory Used# [2025-11-23 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 02:00:06 [end_date_ymd] => 2025-11-23 05:00:06 [RateCDR] => 1 ) [2025-11-23 05:00: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-11-23 02:00:06' and `end` < '2025-11-23 05:00: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-11-23 05:00:21] Production.INFO: count ==450 [2025-11-23 05:00:21] Production.ERROR: pbx CDR StartTime 2025-11-23 02:00:06 - End Time 2025-11-23 05:00:06 [2025-11-23 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251727', 'tblTempUsageDetail_20' ) start [2025-11-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251727', 'tblTempUsageDetail_20' ) end [2025-11-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251727', 'tblTempVendorCDR_20' ) start [2025-11-23 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251727', 'tblTempVendorCDR_20' ) end [2025-11-23 05:00:21] Production.INFO: ProcessCDR(1,16251727,1,1,2) [2025-11-23 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16251727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 05:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16251727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 05:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16251727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 05:06:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16251727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 05:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251727', 'tblTempUsageDetail_20' ) start [2025-11-23 05:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251727', 'tblTempUsageDetail_20' ) end [2025-11-23 05:06:11] Production.ERROR: pbx prc_insertCDR start [2025-11-23 05:06:11] Production.ERROR: pbx prc_insertCDR end [2025-11-23 05:06:12] Production.INFO: ==23211== Releasing lock... [2025-11-23 05:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 05:06:12] Production.INFO: 32.25 MB #Memory Used# [2025-11-23 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 03:00:06 [end_date_ymd] => 2025-11-23 06:00:06 [RateCDR] => 1 ) [2025-11-23 06:00: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-11-23 03:00:06' and `end` < '2025-11-23 06:00: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-11-23 06:00:18] Production.INFO: count ==247 [2025-11-23 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 03:00:06 - End Time 2025-11-23 06:00:06 [2025-11-23 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251974', 'tblTempUsageDetail_20' ) start [2025-11-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16251974', 'tblTempUsageDetail_20' ) end [2025-11-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251974', 'tblTempVendorCDR_20' ) start [2025-11-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16251974', 'tblTempVendorCDR_20' ) end [2025-11-23 06:00:18] Production.INFO: ProcessCDR(1,16251974,1,1,2) [2025-11-23 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16251974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 06:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16251974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 06:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16251974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 06:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16251974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 06:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251974', 'tblTempUsageDetail_20' ) start [2025-11-23 06:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16251974', 'tblTempUsageDetail_20' ) end [2025-11-23 06:05:25] Production.ERROR: pbx prc_insertCDR start [2025-11-23 06:05:25] Production.ERROR: pbx prc_insertCDR end [2025-11-23 06:05:25] Production.INFO: ==28982== Releasing lock... [2025-11-23 06:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 06:05:25] Production.INFO: 30.25 MB #Memory Used# [2025-11-23 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 04:00:06 [end_date_ymd] => 2025-11-23 07:00:06 [RateCDR] => 1 ) [2025-11-23 07:00: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-11-23 04:00:06' and `end` < '2025-11-23 07:00: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-11-23 07:00:17] Production.INFO: count ==159 [2025-11-23 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 04:00:06 - End Time 2025-11-23 07:00:06 [2025-11-23 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252220', 'tblTempUsageDetail_20' ) start [2025-11-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252220', 'tblTempUsageDetail_20' ) end [2025-11-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252220', 'tblTempVendorCDR_20' ) start [2025-11-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252220', 'tblTempVendorCDR_20' ) end [2025-11-23 07:00:18] Production.INFO: ProcessCDR(1,16252220,1,1,2) [2025-11-23 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16252220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 07:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16252220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 07:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16252220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 07:05:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16252220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 07:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252220', 'tblTempUsageDetail_20' ) start [2025-11-23 07:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252220', 'tblTempUsageDetail_20' ) end [2025-11-23 07:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-23 07:06:00] Production.ERROR: pbx prc_insertCDR end [2025-11-23 07:06:00] Production.INFO: ==1480== Releasing lock... [2025-11-23 07:06:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 07:06:00] Production.INFO: 29.5 MB #Memory Used# [2025-11-23 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 05:00:05 [end_date_ymd] => 2025-11-23 08:00:05 [RateCDR] => 1 ) [2025-11-23 08:00: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-11-23 05:00:05' and `end` < '2025-11-23 08:00: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-11-23 08:00:17] Production.INFO: count ==98 [2025-11-23 08:00:17] Production.ERROR: pbx CDR StartTime 2025-11-23 05:00:05 - End Time 2025-11-23 08:00:05 [2025-11-23 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252467', 'tblTempUsageDetail_20' ) start [2025-11-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252467', 'tblTempUsageDetail_20' ) end [2025-11-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252467', 'tblTempVendorCDR_20' ) start [2025-11-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252467', 'tblTempVendorCDR_20' ) end [2025-11-23 08:00:17] Production.INFO: ProcessCDR(1,16252467,1,1,2) [2025-11-23 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16252467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 08:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16252467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 08:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16252467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 08:06:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16252467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 08:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252467', 'tblTempUsageDetail_20' ) start [2025-11-23 08:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252467', 'tblTempUsageDetail_20' ) end [2025-11-23 08:06:04] Production.ERROR: pbx prc_insertCDR start [2025-11-23 08:06:04] Production.ERROR: pbx prc_insertCDR end [2025-11-23 08:06:04] Production.INFO: ==7071== Releasing lock... [2025-11-23 08:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 08:06:04] Production.INFO: 28.5 MB #Memory Used# [2025-11-23 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 06:00:07 [end_date_ymd] => 2025-11-23 09:00:07 [RateCDR] => 1 ) [2025-11-23 09:00:07] 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-11-23 06:00:07' and `end` < '2025-11-23 09:00:07' 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-11-23 09:00:18] Production.INFO: count ==210 [2025-11-23 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 06:00:07 - End Time 2025-11-23 09:00:07 [2025-11-23 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252715', 'tblTempUsageDetail_20' ) start [2025-11-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252715', 'tblTempUsageDetail_20' ) end [2025-11-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252715', 'tblTempVendorCDR_20' ) start [2025-11-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252715', 'tblTempVendorCDR_20' ) end [2025-11-23 09:00:18] Production.INFO: ProcessCDR(1,16252715,1,1,2) [2025-11-23 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16252715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 09:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16252715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 09:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16252715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 09:05:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16252715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 09:05:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252715', 'tblTempUsageDetail_20' ) start [2025-11-23 09:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252715', 'tblTempUsageDetail_20' ) end [2025-11-23 09:05:51] Production.ERROR: pbx prc_insertCDR start [2025-11-23 09:05:51] Production.ERROR: pbx prc_insertCDR end [2025-11-23 09:05:51] Production.INFO: ==11853== Releasing lock... [2025-11-23 09:05:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 09:05:51] Production.INFO: 30 MB #Memory Used# [2025-11-23 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 07:00:07 [end_date_ymd] => 2025-11-23 10:00:07 [RateCDR] => 1 ) [2025-11-23 10:00:07] 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-11-23 07:00:07' and `end` < '2025-11-23 10:00:07' 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-11-23 10:00:18] Production.INFO: count ==241 [2025-11-23 10:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 07:00:07 - End Time 2025-11-23 10:00:07 [2025-11-23 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252962', 'tblTempUsageDetail_20' ) start [2025-11-23 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16252962', 'tblTempUsageDetail_20' ) end [2025-11-23 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252962', 'tblTempVendorCDR_20' ) start [2025-11-23 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16252962', 'tblTempVendorCDR_20' ) end [2025-11-23 10:00:18] Production.INFO: ProcessCDR(1,16252962,1,1,2) [2025-11-23 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16252962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 10:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16252962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 10:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16252962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 10:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16252962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 10:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252962', 'tblTempUsageDetail_20' ) start [2025-11-23 10:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16252962', 'tblTempUsageDetail_20' ) end [2025-11-23 10:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-23 10:05:57] Production.ERROR: pbx prc_insertCDR end [2025-11-23 10:05:57] Production.INFO: ==16559== Releasing lock... [2025-11-23 10:05:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 10:05:57] Production.INFO: 30.25 MB #Memory Used# [2025-11-23 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 08:00:06 [end_date_ymd] => 2025-11-23 11:00:06 [RateCDR] => 1 ) [2025-11-23 11:00: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-11-23 08:00:06' and `end` < '2025-11-23 11:00: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-11-23 11:00:18] Production.INFO: count ==415 [2025-11-23 11:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 08:00:06 - End Time 2025-11-23 11:00:06 [2025-11-23 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253208', 'tblTempUsageDetail_20' ) start [2025-11-23 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253208', 'tblTempUsageDetail_20' ) end [2025-11-23 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253208', 'tblTempVendorCDR_20' ) start [2025-11-23 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253208', 'tblTempVendorCDR_20' ) end [2025-11-23 11:00:18] Production.INFO: ProcessCDR(1,16253208,1,1,2) [2025-11-23 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16253208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 11:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16253208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 11:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16253208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 11:06:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16253208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 11:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253208', 'tblTempUsageDetail_20' ) start [2025-11-23 11:06:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253208', 'tblTempUsageDetail_20' ) end [2025-11-23 11:06:16] Production.ERROR: pbx prc_insertCDR start [2025-11-23 11:06:17] Production.ERROR: pbx prc_insertCDR end [2025-11-23 11:06:17] Production.INFO: ==21524== Releasing lock... [2025-11-23 11:06:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 11:06:17] Production.INFO: 32.25 MB #Memory Used# [2025-11-23 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 09:00:06 [end_date_ymd] => 2025-11-23 12:00:06 [RateCDR] => 1 ) [2025-11-23 12:00: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-11-23 09:00:06' and `end` < '2025-11-23 12:00: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-11-23 12:00:17] Production.INFO: count ==509 [2025-11-23 12:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 09:00:06 - End Time 2025-11-23 12:00:06 [2025-11-23 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253455', 'tblTempUsageDetail_20' ) start [2025-11-23 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253455', 'tblTempUsageDetail_20' ) end [2025-11-23 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253455', 'tblTempVendorCDR_20' ) start [2025-11-23 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253455', 'tblTempVendorCDR_20' ) end [2025-11-23 12:00:18] Production.INFO: ProcessCDR(1,16253455,1,1,2) [2025-11-23 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16253455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 12:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16253455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 12:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16253455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 12:05:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16253455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 12:05:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253455', 'tblTempUsageDetail_20' ) start [2025-11-23 12:05:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253455', 'tblTempUsageDetail_20' ) end [2025-11-23 12:05:54] Production.ERROR: pbx prc_insertCDR start [2025-11-23 12:05:55] Production.ERROR: pbx prc_insertCDR end [2025-11-23 12:05:55] Production.INFO: ==27558== Releasing lock... [2025-11-23 12:05:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 12:05:55] Production.INFO: 32.5 MB #Memory Used# [2025-11-23 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 10:00:06 [end_date_ymd] => 2025-11-23 13:00:06 [RateCDR] => 1 ) [2025-11-23 13:00: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-11-23 10:00:06' and `end` < '2025-11-23 13:00: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-11-23 13:00:18] Production.INFO: count ==1017 [2025-11-23 13:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 10:00:06 - End Time 2025-11-23 13:00:06 [2025-11-23 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253703', 'tblTempUsageDetail_20' ) start [2025-11-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253703', 'tblTempUsageDetail_20' ) end [2025-11-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253703', 'tblTempVendorCDR_20' ) start [2025-11-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253703', 'tblTempVendorCDR_20' ) end [2025-11-23 13:00:18] Production.INFO: ProcessCDR(1,16253703,1,1,2) [2025-11-23 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16253703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 13:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16253703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 13:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16253703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 13:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16253703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 13:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253703', 'tblTempUsageDetail_20' ) start [2025-11-23 13:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253703', 'tblTempUsageDetail_20' ) end [2025-11-23 13:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-23 13:05:59] Production.ERROR: pbx prc_insertCDR end [2025-11-23 13:05:59] Production.INFO: ==1313== Releasing lock... [2025-11-23 13:05:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 13:05:59] Production.INFO: 37.25 MB #Memory Used# [2025-11-23 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 11:00:06 [end_date_ymd] => 2025-11-23 14:00:06 [RateCDR] => 1 ) [2025-11-23 14:00: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-11-23 11:00:06' and `end` < '2025-11-23 14:00: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-11-23 14:00:18] Production.INFO: count ==1195 [2025-11-23 14:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 11:00:06 - End Time 2025-11-23 14:00:06 [2025-11-23 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253949', 'tblTempUsageDetail_20' ) start [2025-11-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16253949', 'tblTempUsageDetail_20' ) end [2025-11-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253949', 'tblTempVendorCDR_20' ) start [2025-11-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16253949', 'tblTempVendorCDR_20' ) end [2025-11-23 14:00:18] Production.INFO: ProcessCDR(1,16253949,1,1,2) [2025-11-23 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16253949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 14:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16253949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 14:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16253949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 14:05:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16253949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 14:05:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253949', 'tblTempUsageDetail_20' ) start [2025-11-23 14:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16253949', 'tblTempUsageDetail_20' ) end [2025-11-23 14:05:55] Production.ERROR: pbx prc_insertCDR start [2025-11-23 14:05:55] Production.ERROR: pbx prc_insertCDR end [2025-11-23 14:05:55] Production.INFO: ==7309== Releasing lock... [2025-11-23 14:05:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 14:05:55] Production.INFO: 38.25 MB #Memory Used# [2025-11-23 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 12:00:05 [end_date_ymd] => 2025-11-23 15:00:05 [RateCDR] => 1 ) [2025-11-23 15:00: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-11-23 12:00:05' and `end` < '2025-11-23 15:00: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-11-23 15:00:17] Production.INFO: count ==1369 [2025-11-23 15:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 12:00:05 - End Time 2025-11-23 15:00:05 [2025-11-23 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254197', 'tblTempUsageDetail_20' ) start [2025-11-23 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254197', 'tblTempUsageDetail_20' ) end [2025-11-23 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254197', 'tblTempVendorCDR_20' ) start [2025-11-23 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254197', 'tblTempVendorCDR_20' ) end [2025-11-23 15:00:18] Production.INFO: ProcessCDR(1,16254197,1,1,2) [2025-11-23 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16254197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 15:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16254197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 15:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16254197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 15:05:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16254197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 15:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254197', 'tblTempUsageDetail_20' ) start [2025-11-23 15:05:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254197', 'tblTempUsageDetail_20' ) end [2025-11-23 15:05:51] Production.ERROR: pbx prc_insertCDR start [2025-11-23 15:05:51] Production.ERROR: pbx prc_insertCDR end [2025-11-23 15:05:51] Production.INFO: ==12402== Releasing lock... [2025-11-23 15:05:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 15:05:51] Production.INFO: 38.75 MB #Memory Used# [2025-11-23 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 13:00:06 [end_date_ymd] => 2025-11-23 16:00:06 [RateCDR] => 1 ) [2025-11-23 16:00: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-11-23 13:00:06' and `end` < '2025-11-23 16:00: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-11-23 16:00:18] Production.INFO: count ==1213 [2025-11-23 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 13:00:06 - End Time 2025-11-23 16:00:06 [2025-11-23 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254444', 'tblTempUsageDetail_20' ) start [2025-11-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254444', 'tblTempUsageDetail_20' ) end [2025-11-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254444', 'tblTempVendorCDR_20' ) start [2025-11-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254444', 'tblTempVendorCDR_20' ) end [2025-11-23 16:00:19] Production.INFO: ProcessCDR(1,16254444,1,1,2) [2025-11-23 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16254444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 16:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16254444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 16:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16254444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 16:06:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16254444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 16:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254444', 'tblTempUsageDetail_20' ) start [2025-11-23 16:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254444', 'tblTempUsageDetail_20' ) end [2025-11-23 16:06:15] Production.ERROR: pbx prc_insertCDR start [2025-11-23 16:06:16] Production.ERROR: pbx prc_insertCDR end [2025-11-23 16:06:16] Production.INFO: ==17058== Releasing lock... [2025-11-23 16:06:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 16:06:16] Production.INFO: 37.75 MB #Memory Used# [2025-11-23 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 14:00:06 [end_date_ymd] => 2025-11-23 17:00:06 [RateCDR] => 1 ) [2025-11-23 17:00: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-11-23 14:00:06' and `end` < '2025-11-23 17:00: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-11-23 17:00:19] Production.INFO: count ==1432 [2025-11-23 17:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 14:00:06 - End Time 2025-11-23 17:00:06 [2025-11-23 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254691', 'tblTempUsageDetail_20' ) start [2025-11-23 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254691', 'tblTempUsageDetail_20' ) end [2025-11-23 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254691', 'tblTempVendorCDR_20' ) start [2025-11-23 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254691', 'tblTempVendorCDR_20' ) end [2025-11-23 17:00:19] Production.INFO: ProcessCDR(1,16254691,1,1,2) [2025-11-23 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16254691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 17:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16254691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 17:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16254691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 17:03:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16254691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 17:03:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254691', 'tblTempUsageDetail_20' ) start [2025-11-23 17:03:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254691', 'tblTempUsageDetail_20' ) end [2025-11-23 17:03:16] Production.ERROR: pbx prc_insertCDR start [2025-11-23 17:03:18] Production.ERROR: pbx prc_insertCDR end [2025-11-23 17:03:18] Production.INFO: ==22062== Releasing lock... [2025-11-23 17:03:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 17:03:18] Production.INFO: 39 MB #Memory Used# [2025-11-23 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 15:00:07 [end_date_ymd] => 2025-11-23 18:00:07 [RateCDR] => 1 ) [2025-11-23 18:00:07] 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-11-23 15:00:07' and `end` < '2025-11-23 18:00:07' 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-11-23 18:00:19] Production.INFO: count ==1776 [2025-11-23 18:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 15:00:07 - End Time 2025-11-23 18:00:07 [2025-11-23 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254935', 'tblTempUsageDetail_20' ) start [2025-11-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16254935', 'tblTempUsageDetail_20' ) end [2025-11-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254935', 'tblTempVendorCDR_20' ) start [2025-11-23 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16254935', 'tblTempVendorCDR_20' ) end [2025-11-23 18:00:19] Production.INFO: ProcessCDR(1,16254935,1,1,2) [2025-11-23 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16254935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 18:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16254935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 18:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16254935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 18:03:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16254935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 18:03:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254935', 'tblTempUsageDetail_20' ) start [2025-11-23 18:03:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16254935', 'tblTempUsageDetail_20' ) end [2025-11-23 18:03:17] Production.ERROR: pbx prc_insertCDR start [2025-11-23 18:03:18] Production.ERROR: pbx prc_insertCDR end [2025-11-23 18:03:19] Production.INFO: ==26874== Releasing lock... [2025-11-23 18:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 18:03:19] Production.INFO: 41.5 MB #Memory Used# [2025-11-23 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 16:00:06 [end_date_ymd] => 2025-11-23 19:00:06 [RateCDR] => 1 ) [2025-11-23 19:00: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-11-23 16:00:06' and `end` < '2025-11-23 19:00: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-11-23 19:00:18] Production.INFO: count ==1906 [2025-11-23 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 16:00:06 - End Time 2025-11-23 19:00:06 [2025-11-23 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255182', 'tblTempUsageDetail_20' ) start [2025-11-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255182', 'tblTempUsageDetail_20' ) end [2025-11-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255182', 'tblTempVendorCDR_20' ) start [2025-11-23 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255182', 'tblTempVendorCDR_20' ) end [2025-11-23 19:00:19] Production.INFO: ProcessCDR(1,16255182,1,1,2) [2025-11-23 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16255182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 19:02:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16255182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 19:02:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16255182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 19:02:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16255182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 19:02:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255182', 'tblTempUsageDetail_20' ) start [2025-11-23 19:02:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255182', 'tblTempUsageDetail_20' ) end [2025-11-23 19:02:54] Production.ERROR: pbx prc_insertCDR start [2025-11-23 19:02:55] Production.ERROR: pbx prc_insertCDR end [2025-11-23 19:02:55] Production.INFO: ==31999== Releasing lock... [2025-11-23 19:02:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 19:02:55] Production.INFO: 42.5 MB #Memory Used# [2025-11-23 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 17:00:06 [end_date_ymd] => 2025-11-23 20:00:06 [RateCDR] => 1 ) [2025-11-23 20:00: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-11-23 17:00:06' and `end` < '2025-11-23 20:00: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-11-23 20:00:18] Production.INFO: count ==1811 [2025-11-23 20:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 17:00:06 - End Time 2025-11-23 20:00:06 [2025-11-23 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255429', 'tblTempUsageDetail_20' ) start [2025-11-23 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255429', 'tblTempUsageDetail_20' ) end [2025-11-23 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255429', 'tblTempVendorCDR_20' ) start [2025-11-23 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255429', 'tblTempVendorCDR_20' ) end [2025-11-23 20:00:18] Production.INFO: ProcessCDR(1,16255429,1,1,2) [2025-11-23 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16255429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 20:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16255429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 20:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16255429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 20:03:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16255429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 20:03:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255429', 'tblTempUsageDetail_20' ) start [2025-11-23 20:03:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255429', 'tblTempUsageDetail_20' ) end [2025-11-23 20:03:07] Production.ERROR: pbx prc_insertCDR start [2025-11-23 20:03:08] Production.ERROR: pbx prc_insertCDR end [2025-11-23 20:03:08] Production.INFO: ==4718== Releasing lock... [2025-11-23 20:03:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 20:03:08] Production.INFO: 41.75 MB #Memory Used# [2025-11-23 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 18:00:06 [end_date_ymd] => 2025-11-23 21:00:06 [RateCDR] => 1 ) [2025-11-23 21:00: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-11-23 18:00:06' and `end` < '2025-11-23 21:00: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-11-23 21:00:18] Production.INFO: count ==1376 [2025-11-23 21:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 18:00:06 - End Time 2025-11-23 21:00:06 [2025-11-23 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255675', 'tblTempUsageDetail_20' ) start [2025-11-23 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255675', 'tblTempUsageDetail_20' ) end [2025-11-23 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255675', 'tblTempVendorCDR_20' ) start [2025-11-23 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255675', 'tblTempVendorCDR_20' ) end [2025-11-23 21:00:18] Production.INFO: ProcessCDR(1,16255675,1,1,2) [2025-11-23 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16255675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 21:02:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16255675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 21:02:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16255675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 21:02:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16255675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 21:02:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255675', 'tblTempUsageDetail_20' ) start [2025-11-23 21:02:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255675', 'tblTempUsageDetail_20' ) end [2025-11-23 21:02:52] Production.ERROR: pbx prc_insertCDR start [2025-11-23 21:02:53] Production.ERROR: pbx prc_insertCDR end [2025-11-23 21:02:53] Production.INFO: ==9889== Releasing lock... [2025-11-23 21:02:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 21:02:53] Production.INFO: 38.5 MB #Memory Used# [2025-11-23 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 19:00:06 [end_date_ymd] => 2025-11-23 22:00:06 [RateCDR] => 1 ) [2025-11-23 22:00:07] 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-11-23 19:00:06' and `end` < '2025-11-23 22:00: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-11-23 22:00:18] Production.INFO: count ==1136 [2025-11-23 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-23 19:00:06 - End Time 2025-11-23 22:00:06 [2025-11-23 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255923', 'tblTempUsageDetail_20' ) start [2025-11-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16255923', 'tblTempUsageDetail_20' ) end [2025-11-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255923', 'tblTempVendorCDR_20' ) start [2025-11-23 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16255923', 'tblTempVendorCDR_20' ) end [2025-11-23 22:00:19] Production.INFO: ProcessCDR(1,16255923,1,1,2) [2025-11-23 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16255923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 22:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16255923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 22:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16255923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 22:05:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16255923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 22:05:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255923', 'tblTempUsageDetail_20' ) start [2025-11-23 22:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16255923', 'tblTempUsageDetail_20' ) end [2025-11-23 22:05:55] Production.ERROR: pbx prc_insertCDR start [2025-11-23 22:05:55] Production.ERROR: pbx prc_insertCDR end [2025-11-23 22:05:55] Production.INFO: ==14554== Releasing lock... [2025-11-23 22:05:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 22:05:55] Production.INFO: 37 MB #Memory Used# [2025-11-23 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-23 20:00:06 [end_date_ymd] => 2025-11-23 23:00:06 [RateCDR] => 1 ) [2025-11-23 23:00: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-11-23 20:00:06' and `end` < '2025-11-23 23:00: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-11-23 23:00:18] Production.INFO: count ==852 [2025-11-23 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-23 20:00:06 - End Time 2025-11-23 23:00:06 [2025-11-23 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-23 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256170', 'tblTempUsageDetail_20' ) start [2025-11-23 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16256170', 'tblTempUsageDetail_20' ) end [2025-11-23 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256170', 'tblTempVendorCDR_20' ) start [2025-11-23 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16256170', 'tblTempVendorCDR_20' ) end [2025-11-23 23:00:18] Production.INFO: ProcessCDR(1,16256170,1,1,2) [2025-11-23 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16256170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 23:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16256170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-23 23:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16256170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 23:06:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16256170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-23 23:06:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256170', 'tblTempUsageDetail_20' ) start [2025-11-23 23:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16256170', 'tblTempUsageDetail_20' ) end [2025-11-23 23:06:07] Production.ERROR: pbx prc_insertCDR start [2025-11-23 23:06:07] Production.ERROR: pbx prc_insertCDR end [2025-11-23 23:06:07] Production.INFO: ==19266== Releasing lock... [2025-11-23 23:06:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-23 23:06:07] Production.INFO: 35 MB #Memory Used#