[2025-11-07 00:00:05] Production.INFO: next invoice date [2025-11-07 00:00:05] Production.INFO: 2025-12-07 [2025-11-07 00:00:05] Production.INFO: getdaysdiff [2025-11-07 00:00:05] Production.INFO: +30 [2025-11-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,30,30,'RMScheduler',2025-11-07 00:00:05,1,0,,,0) [2025-11-07 00:00:05] Production.INFO: next invoice date [2025-11-07 00:00:05] Production.INFO: 2025-12-07 [2025-11-07 00:00:05] Production.INFO: getdaysdiff [2025-11-07 00:00:05] Production.INFO: +30 [2025-11-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-11-07 00:00:05,1,0,,,0) [2025-11-07 00:00:05] Production.INFO: next invoice date [2025-11-07 00:00:05] Production.INFO: 2025-12-07 [2025-11-07 00:00:05] Production.INFO: getdaysdiff [2025-11-07 00:00:05] Production.INFO: +30 [2025-11-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,30,30,'RMScheduler',2025-11-07 00:00:05,0,0,,,0) [2025-11-07 00:00:05] Production.INFO: next invoice date [2025-11-07 00:00:05] Production.INFO: 2025-12-07 [2025-11-07 00:00:05] Production.INFO: getdaysdiff [2025-11-07 00:00:05] Production.INFO: +30 [2025-11-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,30,30,'RMScheduler',2025-11-07 00:00:05,0,0,,,0) [2025-11-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 21:00:07 [end_date_ymd] => 2025-11-07 00:00:07 [RateCDR] => 1 ) [2025-11-07 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-06 21:00:07' and `end` < '2025-11-07 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-07 00:00:20] Production.INFO: count ==848 [2025-11-07 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-06 21:00:07 - End Time 2025-11-07 00:00:07 [2025-11-07 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155649', 'tblTempUsageDetail_20' ) start [2025-11-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155649', 'tblTempUsageDetail_20' ) end [2025-11-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155649', 'tblTempVendorCDR_20' ) start [2025-11-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155649', 'tblTempVendorCDR_20' ) end [2025-11-07 00:00:21] Production.INFO: ProcessCDR(1,16155649,1,1,2) [2025-11-07 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16155649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16155649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16155649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16155649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155649', 'tblTempUsageDetail_20' ) start [2025-11-07 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155649', 'tblTempUsageDetail_20' ) end [2025-11-07 00:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-07 00:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-07 00:00:40] Production.INFO: ==12503== Releasing lock... [2025-11-07 00:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 00:00:40] Production.INFO: 38 MB #Memory Used# [2025-11-07 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 22:00:07 [end_date_ymd] => 2025-11-07 01:00:07 [RateCDR] => 1 ) [2025-11-07 01: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-06 22:00:07' and `end` < '2025-11-07 01: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-07 01:00:19] Production.INFO: count ==516 [2025-11-07 01:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 22:00:07 - End Time 2025-11-07 01:00:07 [2025-11-07 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155897', 'tblTempUsageDetail_20' ) start [2025-11-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16155897', 'tblTempUsageDetail_20' ) end [2025-11-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155897', 'tblTempVendorCDR_20' ) start [2025-11-07 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16155897', 'tblTempVendorCDR_20' ) end [2025-11-07 01:00:19] Production.INFO: ProcessCDR(1,16155897,1,1,2) [2025-11-07 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16155897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16155897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16155897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16155897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155897', 'tblTempUsageDetail_20' ) start [2025-11-07 01:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16155897', 'tblTempUsageDetail_20' ) end [2025-11-07 01:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-07 01:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-07 01:00:29] Production.INFO: ==16810== Releasing lock... [2025-11-07 01:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 01:00:29] Production.INFO: 32.25 MB #Memory Used# [2025-11-07 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-06 23:00:07 [end_date_ymd] => 2025-11-07 02:00:07 [RateCDR] => 1 ) [2025-11-07 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-06 23:00:07' and `end` < '2025-11-07 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-07 02:00:19] Production.INFO: count ==483 [2025-11-07 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-06 23:00:07 - End Time 2025-11-07 02:00:07 [2025-11-07 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156144', 'tblTempUsageDetail_20' ) start [2025-11-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156144', 'tblTempUsageDetail_20' ) end [2025-11-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156144', 'tblTempVendorCDR_20' ) start [2025-11-07 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156144', 'tblTempVendorCDR_20' ) end [2025-11-07 02:00:19] Production.INFO: ProcessCDR(1,16156144,1,1,2) [2025-11-07 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16156144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16156144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16156144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16156144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156144', 'tblTempUsageDetail_20' ) start [2025-11-07 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156144', 'tblTempUsageDetail_20' ) end [2025-11-07 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-07 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-07 02:00:29] Production.INFO: ==21231== Releasing lock... [2025-11-07 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 02:00:29] Production.INFO: 32.5 MB #Memory Used# [2025-11-07 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 00:00:05 [end_date_ymd] => 2025-11-07 03:00:05 [RateCDR] => 1 ) [2025-11-07 03: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-07 00:00:05' and `end` < '2025-11-07 03: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-07 03:00:17] Production.INFO: count ==464 [2025-11-07 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-07 00:00:05 - End Time 2025-11-07 03:00:05 [2025-11-07 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156391', 'tblTempUsageDetail_20' ) start [2025-11-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156391', 'tblTempUsageDetail_20' ) end [2025-11-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156391', 'tblTempVendorCDR_20' ) start [2025-11-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156391', 'tblTempVendorCDR_20' ) end [2025-11-07 03:00:18] Production.INFO: ProcessCDR(1,16156391,1,1,2) [2025-11-07 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16156391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 03:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16156391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 03:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16156391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 03:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16156391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156391', 'tblTempUsageDetail_20' ) start [2025-11-07 03:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156391', 'tblTempUsageDetail_20' ) end [2025-11-07 03:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-07 03:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-07 03:00:27] Production.INFO: ==25722== Releasing lock... [2025-11-07 03:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 03:00:27] Production.INFO: 31.75 MB #Memory Used# [2025-11-07 04:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 01:00:08 [end_date_ymd] => 2025-11-07 04:00:08 [RateCDR] => 1 ) [2025-11-07 04:00:08] 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-07 01:00:08' and `end` < '2025-11-07 04:00:08' 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-07 04:00:20] Production.INFO: count ==363 [2025-11-07 04:00:20] Production.ERROR: pbx CDR StartTime 2025-11-07 01:00:08 - End Time 2025-11-07 04:00:08 [2025-11-07 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156639', 'tblTempUsageDetail_20' ) start [2025-11-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156639', 'tblTempUsageDetail_20' ) end [2025-11-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156639', 'tblTempVendorCDR_20' ) start [2025-11-07 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156639', 'tblTempVendorCDR_20' ) end [2025-11-07 04:00:20] Production.INFO: ProcessCDR(1,16156639,1,1,2) [2025-11-07 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16156639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 04:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16156639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 04:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16156639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 04:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16156639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156639', 'tblTempUsageDetail_20' ) start [2025-11-07 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156639', 'tblTempUsageDetail_20' ) end [2025-11-07 04:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-07 04:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-07 04:00:31] Production.INFO: ==30183== Releasing lock... [2025-11-07 04:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 04:00:31] Production.INFO: 31.25 MB #Memory Used# [2025-11-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 02:00:06 [end_date_ymd] => 2025-11-07 05:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 02:00:06' and `end` < '2025-11-07 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-07 05:00:19] Production.INFO: count ==240 [2025-11-07 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-07 02:00:06 - End Time 2025-11-07 05:00:06 [2025-11-07 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156887', 'tblTempUsageDetail_20' ) start [2025-11-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16156887', 'tblTempUsageDetail_20' ) end [2025-11-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156887', 'tblTempVendorCDR_20' ) start [2025-11-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16156887', 'tblTempVendorCDR_20' ) end [2025-11-07 05:00:19] Production.INFO: ProcessCDR(1,16156887,1,1,2) [2025-11-07 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16156887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16156887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16156887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16156887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156887', 'tblTempUsageDetail_20' ) start [2025-11-07 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16156887', 'tblTempUsageDetail_20' ) end [2025-11-07 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-07 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-07 05:00:29] Production.INFO: ==2175== Releasing lock... [2025-11-07 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 05:00:29] Production.INFO: 30.25 MB #Memory Used# [2025-11-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 03:00:06 [end_date_ymd] => 2025-11-07 06:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 03:00:06' and `end` < '2025-11-07 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-07 06:00:18] Production.INFO: count ==111 [2025-11-07 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-07 03:00:06 - End Time 2025-11-07 06:00:06 [2025-11-07 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157134', 'tblTempUsageDetail_20' ) start [2025-11-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157134', 'tblTempUsageDetail_20' ) end [2025-11-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157134', 'tblTempVendorCDR_20' ) start [2025-11-07 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157134', 'tblTempVendorCDR_20' ) end [2025-11-07 06:00:18] Production.INFO: ProcessCDR(1,16157134,1,1,2) [2025-11-07 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16157134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16157134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16157134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16157134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157134', 'tblTempUsageDetail_20' ) start [2025-11-07 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157134', 'tblTempUsageDetail_20' ) end [2025-11-07 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-07 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-07 06:00:28] Production.INFO: ==6562== Releasing lock... [2025-11-07 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 06:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-11-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 04:00:06 [end_date_ymd] => 2025-11-07 07:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 04:00:06' and `end` < '2025-11-07 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-07 07:00:18] Production.INFO: count ==98 [2025-11-07 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-07 04:00:06 - End Time 2025-11-07 07:00:06 [2025-11-07 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157381', 'tblTempUsageDetail_20' ) start [2025-11-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157381', 'tblTempUsageDetail_20' ) end [2025-11-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157381', 'tblTempVendorCDR_20' ) start [2025-11-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157381', 'tblTempVendorCDR_20' ) end [2025-11-07 07:00:18] Production.INFO: ProcessCDR(1,16157381,1,1,2) [2025-11-07 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16157381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16157381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16157381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16157381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157381', 'tblTempUsageDetail_20' ) start [2025-11-07 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157381', 'tblTempUsageDetail_20' ) end [2025-11-07 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-07 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-07 07:00:27] Production.INFO: ==10890== Releasing lock... [2025-11-07 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 07:00:27] Production.INFO: 28.75 MB #Memory Used# [2025-11-07 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 05:00:06 [end_date_ymd] => 2025-11-07 08:00:06 [RateCDR] => 1 ) [2025-11-07 08: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-07 05:00:06' and `end` < '2025-11-07 08: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-07 08:00:19] Production.INFO: count ==123 [2025-11-07 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-07 05:00:06 - End Time 2025-11-07 08:00:06 [2025-11-07 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157628', 'tblTempUsageDetail_20' ) start [2025-11-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157628', 'tblTempUsageDetail_20' ) end [2025-11-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157628', 'tblTempVendorCDR_20' ) start [2025-11-07 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157628', 'tblTempVendorCDR_20' ) end [2025-11-07 08:00:19] Production.INFO: ProcessCDR(1,16157628,1,1,2) [2025-11-07 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16157628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16157628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16157628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16157628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157628', 'tblTempUsageDetail_20' ) start [2025-11-07 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157628', 'tblTempUsageDetail_20' ) end [2025-11-07 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-07 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-07 08:00:28] Production.INFO: ==15443== Releasing lock... [2025-11-07 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 08:00:28] Production.INFO: 29 MB #Memory Used# [2025-11-07 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 06:00:07 [end_date_ymd] => 2025-11-07 09:00:07 [RateCDR] => 1 ) [2025-11-07 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-07 06:00:07' and `end` < '2025-11-07 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-07 09:00:19] Production.INFO: count ==710 [2025-11-07 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-07 06:00:07 - End Time 2025-11-07 09:00:07 [2025-11-07 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157875', 'tblTempUsageDetail_20' ) start [2025-11-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16157875', 'tblTempUsageDetail_20' ) end [2025-11-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157875', 'tblTempVendorCDR_20' ) start [2025-11-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16157875', 'tblTempVendorCDR_20' ) end [2025-11-07 09:00:19] Production.INFO: ProcessCDR(1,16157875,1,1,2) [2025-11-07 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16157875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16157875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16157875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16157875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157875', 'tblTempUsageDetail_20' ) start [2025-11-07 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16157875', 'tblTempUsageDetail_20' ) end [2025-11-07 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-07 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-07 09:00:29] Production.INFO: ==19971== Releasing lock... [2025-11-07 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 09:00:29] Production.INFO: 34.25 MB #Memory Used# [2025-11-07 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 07:00:07 [end_date_ymd] => 2025-11-07 10:00:07 [RateCDR] => 1 ) [2025-11-07 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-07 07:00:07' and `end` < '2025-11-07 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-07 10:00:22] Production.INFO: count ==2318 [2025-11-07 10:00:23] Production.ERROR: pbx CDR StartTime 2025-11-07 07:00:07 - End Time 2025-11-07 10:00:07 [2025-11-07 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158122', 'tblTempUsageDetail_20' ) start [2025-11-07 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158122', 'tblTempUsageDetail_20' ) end [2025-11-07 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158122', 'tblTempVendorCDR_20' ) start [2025-11-07 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158122', 'tblTempVendorCDR_20' ) end [2025-11-07 10:00:23] Production.INFO: ProcessCDR(1,16158122,1,1,2) [2025-11-07 10:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16158122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 10:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16158122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 10:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16158122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16158122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158122', 'tblTempUsageDetail_20' ) start [2025-11-07 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158122', 'tblTempUsageDetail_20' ) end [2025-11-07 10:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-07 10:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-07 10:00:36] Production.INFO: ==24288== Releasing lock... [2025-11-07 10:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 10:00:36] Production.INFO: 46 MB #Memory Used# [2025-11-07 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 08:00:06 [end_date_ymd] => 2025-11-07 11:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 08:00:06' and `end` < '2025-11-07 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-07 11:00:20] Production.INFO: count ==4020 [2025-11-07 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-07 08:00:06 - End Time 2025-11-07 11:00:06 [2025-11-07 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158369', 'tblTempUsageDetail_20' ) start [2025-11-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158369', 'tblTempUsageDetail_20' ) end [2025-11-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158369', 'tblTempVendorCDR_20' ) start [2025-11-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158369', 'tblTempVendorCDR_20' ) end [2025-11-07 11:00:22] Production.INFO: ProcessCDR(1,16158369,1,1,2) [2025-11-07 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16158369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16158369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16158369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 11:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16158369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158369', 'tblTempUsageDetail_20' ) start [2025-11-07 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158369', 'tblTempUsageDetail_20' ) end [2025-11-07 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-07 11:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-07 11:00:35] Production.INFO: ==28916== Releasing lock... [2025-11-07 11:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 11:00:35] Production.INFO: 58.25 MB #Memory Used# [2025-11-07 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 09:00:06 [end_date_ymd] => 2025-11-07 12:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 09:00:06' and `end` < '2025-11-07 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-07 12:00:22] Production.INFO: count ==5261 [2025-11-07 12:00:24] Production.ERROR: pbx CDR StartTime 2025-11-07 09:00:06 - End Time 2025-11-07 12:00:06 [2025-11-07 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158616', 'tblTempUsageDetail_20' ) start [2025-11-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158616', 'tblTempUsageDetail_20' ) end [2025-11-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158616', 'tblTempVendorCDR_20' ) start [2025-11-07 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158616', 'tblTempVendorCDR_20' ) end [2025-11-07 12:00:25] Production.INFO: ProcessCDR(1,16158616,1,1,2) [2025-11-07 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16158616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16158616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16158616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 12:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16158616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 12:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158616', 'tblTempUsageDetail_20' ) start [2025-11-07 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158616', 'tblTempUsageDetail_20' ) end [2025-11-07 12:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-07 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-07 12:00:39] Production.INFO: ==1766== Releasing lock... [2025-11-07 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 12:00:39] Production.INFO: 67.5 MB #Memory Used# [2025-11-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 10:00:06 [end_date_ymd] => 2025-11-07 13:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 10:00:06' and `end` < '2025-11-07 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-07 13:00:20] Production.INFO: count ==5247 [2025-11-07 13:00:22] Production.ERROR: pbx CDR StartTime 2025-11-07 10:00:06 - End Time 2025-11-07 13:00:06 [2025-11-07 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158863', 'tblTempUsageDetail_20' ) start [2025-11-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16158863', 'tblTempUsageDetail_20' ) end [2025-11-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158863', 'tblTempVendorCDR_20' ) start [2025-11-07 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16158863', 'tblTempVendorCDR_20' ) end [2025-11-07 13:00:23] Production.INFO: ProcessCDR(1,16158863,1,1,2) [2025-11-07 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16158863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16158863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16158863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 13:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16158863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 13:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158863', 'tblTempUsageDetail_20' ) start [2025-11-07 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16158863', 'tblTempUsageDetail_20' ) end [2025-11-07 13:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-07 13:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-07 13:00:36] Production.INFO: ==6682== Releasing lock... [2025-11-07 13:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 13:00:36] Production.INFO: 67.5 MB #Memory Used# [2025-11-07 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 11:00:07 [end_date_ymd] => 2025-11-07 14:00:07 [RateCDR] => 1 ) [2025-11-07 14: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-07 11:00:07' and `end` < '2025-11-07 14: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-07 14:00:20] Production.INFO: count ==5179 [2025-11-07 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-07 11:00:07 - End Time 2025-11-07 14:00:07 [2025-11-07 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159110', 'tblTempUsageDetail_20' ) start [2025-11-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159110', 'tblTempUsageDetail_20' ) end [2025-11-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159110', 'tblTempVendorCDR_20' ) start [2025-11-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159110', 'tblTempVendorCDR_20' ) end [2025-11-07 14:00:23] Production.INFO: ProcessCDR(1,16159110,1,1,2) [2025-11-07 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16159110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 14:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16159110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 14:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16159110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16159110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159110', 'tblTempUsageDetail_20' ) start [2025-11-07 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159110', 'tblTempUsageDetail_20' ) end [2025-11-07 14:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-07 14:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-07 14:00:37] Production.INFO: ==11429== Releasing lock... [2025-11-07 14:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 14:00:37] Production.INFO: 67 MB #Memory Used# [2025-11-07 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 12:00:06 [end_date_ymd] => 2025-11-07 15:00:06 [RateCDR] => 1 ) [2025-11-07 15: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-07 12:00:06' and `end` < '2025-11-07 15: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-07 15:00:31] Production.INFO: count ==4992 [2025-11-07 15:00:33] Production.ERROR: pbx CDR StartTime 2025-11-07 12:00:06 - End Time 2025-11-07 15:00:06 [2025-11-07 15:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 15:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159357', 'tblTempUsageDetail_20' ) start [2025-11-07 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159357', 'tblTempUsageDetail_20' ) end [2025-11-07 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159357', 'tblTempVendorCDR_20' ) start [2025-11-07 15:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159357', 'tblTempVendorCDR_20' ) end [2025-11-07 15:00:34] Production.INFO: ProcessCDR(1,16159357,1,1,2) [2025-11-07 15:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16159357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 15:00:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16159357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 15:00:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16159357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 15:00:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16159357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 15:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159357', 'tblTempUsageDetail_20' ) start [2025-11-07 15:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159357', 'tblTempUsageDetail_20' ) end [2025-11-07 15:00:45] Production.ERROR: pbx prc_insertCDR start [2025-11-07 15:00:48] Production.ERROR: pbx prc_insertCDR end [2025-11-07 15:00:48] Production.INFO: ==15690== Releasing lock... [2025-11-07 15:00:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 15:00:48] Production.INFO: 65.5 MB #Memory Used# [2025-11-07 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 13:00:07 [end_date_ymd] => 2025-11-07 16:00:07 [RateCDR] => 1 ) [2025-11-07 16: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-07 13:00:07' and `end` < '2025-11-07 16: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-07 16:00:20] Production.INFO: count ==5122 [2025-11-07 16:00:23] Production.ERROR: pbx CDR StartTime 2025-11-07 13:00:07 - End Time 2025-11-07 16:00:07 [2025-11-07 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159604', 'tblTempUsageDetail_20' ) start [2025-11-07 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159604', 'tblTempUsageDetail_20' ) end [2025-11-07 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159604', 'tblTempVendorCDR_20' ) start [2025-11-07 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159604', 'tblTempVendorCDR_20' ) end [2025-11-07 16:00:23] Production.INFO: ProcessCDR(1,16159604,1,1,2) [2025-11-07 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16159604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16159604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16159604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 16:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16159604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 16:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159604', 'tblTempUsageDetail_20' ) start [2025-11-07 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159604', 'tblTempUsageDetail_20' ) end [2025-11-07 16:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-07 16:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-07 16:00:37] Production.INFO: ==20540== Releasing lock... [2025-11-07 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 16:00:37] Production.INFO: 66.5 MB #Memory Used# [2025-11-07 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 14:00:07 [end_date_ymd] => 2025-11-07 17:00:07 [RateCDR] => 1 ) [2025-11-07 17: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-07 14:00:07' and `end` < '2025-11-07 17: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-07 17:00:21] Production.INFO: count ==5164 [2025-11-07 17:00:24] Production.ERROR: pbx CDR StartTime 2025-11-07 14:00:07 - End Time 2025-11-07 17:00:07 [2025-11-07 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159851', 'tblTempUsageDetail_20' ) start [2025-11-07 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16159851', 'tblTempUsageDetail_20' ) end [2025-11-07 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159851', 'tblTempVendorCDR_20' ) start [2025-11-07 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16159851', 'tblTempVendorCDR_20' ) end [2025-11-07 17:00:24] Production.INFO: ProcessCDR(1,16159851,1,1,2) [2025-11-07 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16159851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16159851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16159851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16159851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159851', 'tblTempUsageDetail_20' ) start [2025-11-07 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16159851', 'tblTempUsageDetail_20' ) end [2025-11-07 17:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-07 17:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-07 17:00:40] Production.INFO: ==25921== Releasing lock... [2025-11-07 17:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 17:00:40] Production.INFO: 67 MB #Memory Used# [2025-11-07 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 15:00:06 [end_date_ymd] => 2025-11-07 18:00:06 [RateCDR] => 1 ) [2025-11-07 18: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-07 15:00:06' and `end` < '2025-11-07 18: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-07 18:00:19] Production.INFO: count ==4798 [2025-11-07 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-07 15:00:06 - End Time 2025-11-07 18:00:06 [2025-11-07 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160094', 'tblTempUsageDetail_20' ) start [2025-11-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160094', 'tblTempUsageDetail_20' ) end [2025-11-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160094', 'tblTempVendorCDR_20' ) start [2025-11-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160094', 'tblTempVendorCDR_20' ) end [2025-11-07 18:00:21] Production.INFO: ProcessCDR(1,16160094,1,1,2) [2025-11-07 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16160094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16160094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16160094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16160094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160094', 'tblTempUsageDetail_20' ) start [2025-11-07 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160094', 'tblTempUsageDetail_20' ) end [2025-11-07 18:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-07 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-07 18:00:34] Production.INFO: ==31031== Releasing lock... [2025-11-07 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 18:00:34] Production.INFO: 64.25 MB #Memory Used# [2025-11-07 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 16:00:06 [end_date_ymd] => 2025-11-07 19:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 16:00:06' and `end` < '2025-11-07 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-07 19:00:19] Production.INFO: count ==4001 [2025-11-07 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-07 16:00:06 - End Time 2025-11-07 19:00:06 [2025-11-07 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160342', 'tblTempUsageDetail_20' ) start [2025-11-07 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160342', 'tblTempUsageDetail_20' ) end [2025-11-07 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160342', 'tblTempVendorCDR_20' ) start [2025-11-07 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160342', 'tblTempVendorCDR_20' ) end [2025-11-07 19:00:21] Production.INFO: ProcessCDR(1,16160342,1,1,2) [2025-11-07 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16160342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16160342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16160342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16160342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160342', 'tblTempUsageDetail_20' ) start [2025-11-07 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160342', 'tblTempUsageDetail_20' ) end [2025-11-07 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-07 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-07 19:00:32] Production.INFO: ==3413== Releasing lock... [2025-11-07 19:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 19:00:32] Production.INFO: 58 MB #Memory Used# [2025-11-07 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 17:00:07 [end_date_ymd] => 2025-11-07 20:00:07 [RateCDR] => 1 ) [2025-11-07 20: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-07 17:00:07' and `end` < '2025-11-07 20: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-07 20:00:19] Production.INFO: count ==3073 [2025-11-07 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-07 17:00:07 - End Time 2025-11-07 20:00:07 [2025-11-07 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160589', 'tblTempUsageDetail_20' ) start [2025-11-07 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160589', 'tblTempUsageDetail_20' ) end [2025-11-07 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160589', 'tblTempVendorCDR_20' ) start [2025-11-07 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160589', 'tblTempVendorCDR_20' ) end [2025-11-07 20:00:21] Production.INFO: ProcessCDR(1,16160589,1,1,2) [2025-11-07 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16160589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16160589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16160589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16160589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160589', 'tblTempUsageDetail_20' ) start [2025-11-07 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160589', 'tblTempUsageDetail_20' ) end [2025-11-07 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-07 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-07 20:00:31] Production.INFO: ==7893== Releasing lock... [2025-11-07 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 20:00:31] Production.INFO: 51 MB #Memory Used# [2025-11-07 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 18:00:07 [end_date_ymd] => 2025-11-07 21:00:07 [RateCDR] => 1 ) [2025-11-07 21: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-07 18:00:07' and `end` < '2025-11-07 21: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-07 21:00:19] Production.INFO: count ==2513 [2025-11-07 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-07 18:00:07 - End Time 2025-11-07 21:00:07 [2025-11-07 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160836', 'tblTempUsageDetail_20' ) start [2025-11-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16160836', 'tblTempUsageDetail_20' ) end [2025-11-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160836', 'tblTempVendorCDR_20' ) start [2025-11-07 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16160836', 'tblTempVendorCDR_20' ) end [2025-11-07 21:00:20] Production.INFO: ProcessCDR(1,16160836,1,1,2) [2025-11-07 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16160836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 21:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16160836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 21:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16160836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16160836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160836', 'tblTempUsageDetail_20' ) start [2025-11-07 21:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16160836', 'tblTempUsageDetail_20' ) end [2025-11-07 21:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-07 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-07 21:00:31] Production.INFO: ==12361== Releasing lock... [2025-11-07 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 21:00:31] Production.INFO: 47 MB #Memory Used# [2025-11-07 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 19:00:07 [end_date_ymd] => 2025-11-07 22:00:07 [RateCDR] => 1 ) [2025-11-07 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-07 19:00:07' and `end` < '2025-11-07 22: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-07 22:00:20] Production.INFO: count ==2101 [2025-11-07 22:00:21] Production.ERROR: pbx CDR StartTime 2025-11-07 19:00:07 - End Time 2025-11-07 22:00:07 [2025-11-07 22:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161083', 'tblTempUsageDetail_20' ) start [2025-11-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161083', 'tblTempUsageDetail_20' ) end [2025-11-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161083', 'tblTempVendorCDR_20' ) start [2025-11-07 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161083', 'tblTempVendorCDR_20' ) end [2025-11-07 22:00:21] Production.INFO: ProcessCDR(1,16161083,1,1,2) [2025-11-07 22:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16161083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16161083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16161083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16161083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161083', 'tblTempUsageDetail_20' ) start [2025-11-07 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161083', 'tblTempUsageDetail_20' ) end [2025-11-07 22:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-07 22:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-07 22:00:32] Production.INFO: ==16827== Releasing lock... [2025-11-07 22:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 22:00:32] Production.INFO: 44.25 MB #Memory Used# [2025-11-07 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 20:00:06 [end_date_ymd] => 2025-11-07 23:00:06 [RateCDR] => 1 ) [2025-11-07 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-07 20:00:06' and `end` < '2025-11-07 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-07 23:00:19] Production.INFO: count ==1825 [2025-11-07 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-07 20:00:06 - End Time 2025-11-07 23:00:06 [2025-11-07 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161329', 'tblTempUsageDetail_20' ) start [2025-11-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161329', 'tblTempUsageDetail_20' ) end [2025-11-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161329', 'tblTempVendorCDR_20' ) start [2025-11-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161329', 'tblTempVendorCDR_20' ) end [2025-11-07 23:00:19] Production.INFO: ProcessCDR(1,16161329,1,1,2) [2025-11-07 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16161329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 23:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16161329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-07 23:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16161329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 23:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16161329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-07 23:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161329', 'tblTempUsageDetail_20' ) start [2025-11-07 23:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161329', 'tblTempUsageDetail_20' ) end [2025-11-07 23:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-07 23:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-07 23:00:30] Production.INFO: ==24111== Releasing lock... [2025-11-07 23:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-07 23:00:30] Production.INFO: 41.75 MB #Memory Used#