[2025-11-20 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 21:00:07 [end_date_ymd] => 2025-11-20 00:00:07 [RateCDR] => 1 ) [2025-11-20 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-19 21:00:07' and `end` < '2025-11-20 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-20 00:00:20] Production.INFO: count ==902 [2025-11-20 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-19 21:00:07 - End Time 2025-11-20 00:00:07 [2025-11-20 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232708', 'tblTempUsageDetail_20' ) start [2025-11-20 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232708', 'tblTempUsageDetail_20' ) end [2025-11-20 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232708', 'tblTempVendorCDR_20' ) start [2025-11-20 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232708', 'tblTempVendorCDR_20' ) end [2025-11-20 00:00:21] Production.INFO: ProcessCDR(1,16232708,1,1,2) [2025-11-20 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16232708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 00:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16232708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 00:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16232708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 00:06:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16232708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 00:06:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232708', 'tblTempUsageDetail_20' ) start [2025-11-20 00:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232708', 'tblTempUsageDetail_20' ) end [2025-11-20 00:06:05] Production.ERROR: pbx prc_insertCDR start [2025-11-20 00:06:05] Production.ERROR: pbx prc_insertCDR end [2025-11-20 00:06:07] Production.INFO: ==4607== Releasing lock... [2025-11-20 00:06:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 00:06:07] Production.INFO: 38.25 MB #Memory Used# [2025-11-20 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 22:00:06 [end_date_ymd] => 2025-11-20 01:00:06 [RateCDR] => 1 ) [2025-11-20 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-19 22:00:06' and `end` < '2025-11-20 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-20 01:00:28] Production.INFO: count ==547 [2025-11-20 01:00:29] Production.ERROR: pbx CDR StartTime 2025-11-19 22:00:06 - End Time 2025-11-20 01:00:06 [2025-11-20 01:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 01:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232955', 'tblTempUsageDetail_20' ) start [2025-11-20 01:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232955', 'tblTempUsageDetail_20' ) end [2025-11-20 01:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232955', 'tblTempVendorCDR_20' ) start [2025-11-20 01:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232955', 'tblTempVendorCDR_20' ) end [2025-11-20 01:00:29] Production.INFO: ProcessCDR(1,16232955,1,1,2) [2025-11-20 01:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16232955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 01:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16232955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 01:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16232955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 01:06:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16232955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 01:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232955', 'tblTempUsageDetail_20' ) start [2025-11-20 01:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232955', 'tblTempUsageDetail_20' ) end [2025-11-20 01:06:12] Production.ERROR: pbx prc_insertCDR start [2025-11-20 01:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-20 01:06:12] Production.INFO: ==9465== Releasing lock... [2025-11-20 01:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 01:06:12] Production.INFO: 32.75 MB #Memory Used# [2025-11-20 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 23:00:07 [end_date_ymd] => 2025-11-20 02:00:07 [RateCDR] => 1 ) [2025-11-20 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-19 23:00:07' and `end` < '2025-11-20 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-20 02:00:19] Production.INFO: count ==475 [2025-11-20 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 23:00:07 - End Time 2025-11-20 02:00:07 [2025-11-20 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233201', 'tblTempUsageDetail_20' ) start [2025-11-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233201', 'tblTempUsageDetail_20' ) end [2025-11-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233201', 'tblTempVendorCDR_20' ) start [2025-11-20 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233201', 'tblTempVendorCDR_20' ) end [2025-11-20 02:00:19] Production.INFO: ProcessCDR(1,16233201,1,1,2) [2025-11-20 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16233201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 02:03:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16233201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 02:03:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16233201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16233201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233201', 'tblTempUsageDetail_20' ) start [2025-11-20 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233201', 'tblTempUsageDetail_20' ) end [2025-11-20 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-20 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-11-20 02:06:21] Production.INFO: ==14791== Releasing lock... [2025-11-20 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 02:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-11-20 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 00:00:06 [end_date_ymd] => 2025-11-20 03:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 00:00:06' and `end` < '2025-11-20 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-20 03:00:20] Production.INFO: count ==376 [2025-11-20 03:00:21] Production.ERROR: pbx CDR StartTime 2025-11-20 00:00:06 - End Time 2025-11-20 03:00:06 [2025-11-20 03:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233449', 'tblTempUsageDetail_20' ) start [2025-11-20 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233449', 'tblTempUsageDetail_20' ) end [2025-11-20 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233449', 'tblTempVendorCDR_20' ) start [2025-11-20 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233449', 'tblTempVendorCDR_20' ) end [2025-11-20 03:00:21] Production.INFO: ProcessCDR(1,16233449,1,1,2) [2025-11-20 03:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16233449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 03:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16233449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 03:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16233449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 03:06:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16233449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 03:06:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233449', 'tblTempUsageDetail_20' ) start [2025-11-20 03:06:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233449', 'tblTempUsageDetail_20' ) end [2025-11-20 03:06:09] Production.ERROR: pbx prc_insertCDR start [2025-11-20 03:06:09] Production.ERROR: pbx prc_insertCDR end [2025-11-20 03:06:09] Production.INFO: ==19869== Releasing lock... [2025-11-20 03:06:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 03:06:09] Production.INFO: 31.5 MB #Memory Used# [2025-11-20 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 01:00:07 [end_date_ymd] => 2025-11-20 04:00:07 [RateCDR] => 1 ) [2025-11-20 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-20 01:00:07' and `end` < '2025-11-20 04: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-20 04:00:19] Production.INFO: count ==260 [2025-11-20 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 01:00:07 - End Time 2025-11-20 04:00:07 [2025-11-20 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233697', 'tblTempUsageDetail_20' ) start [2025-11-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233697', 'tblTempUsageDetail_20' ) end [2025-11-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233697', 'tblTempVendorCDR_20' ) start [2025-11-20 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233697', 'tblTempVendorCDR_20' ) end [2025-11-20 04:00:19] Production.INFO: ProcessCDR(1,16233697,1,1,2) [2025-11-20 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16233697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 04:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16233697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 04:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16233697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 04:06:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16233697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 04:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233697', 'tblTempUsageDetail_20' ) start [2025-11-20 04:06:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233697', 'tblTempUsageDetail_20' ) end [2025-11-20 04:06:07] Production.ERROR: pbx prc_insertCDR start [2025-11-20 04:06:07] Production.ERROR: pbx prc_insertCDR end [2025-11-20 04:06:07] Production.INFO: ==24639== Releasing lock... [2025-11-20 04:06:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 04:06:07] Production.INFO: 30.5 MB #Memory Used# [2025-11-20 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 02:00:05 [end_date_ymd] => 2025-11-20 05:00:05 [RateCDR] => 1 ) [2025-11-20 05: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-20 02:00:05' and `end` < '2025-11-20 05: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-20 05:00:19] Production.INFO: count ==176 [2025-11-20 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 02:00:05 - End Time 2025-11-20 05:00:05 [2025-11-20 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233944', 'tblTempUsageDetail_20' ) start [2025-11-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16233944', 'tblTempUsageDetail_20' ) end [2025-11-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233944', 'tblTempVendorCDR_20' ) start [2025-11-20 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16233944', 'tblTempVendorCDR_20' ) end [2025-11-20 05:00:19] Production.INFO: ProcessCDR(1,16233944,1,1,2) [2025-11-20 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16233944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 05:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16233944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 05:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16233944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 05:05:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16233944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 05:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233944', 'tblTempUsageDetail_20' ) start [2025-11-20 05:05:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16233944', 'tblTempUsageDetail_20' ) end [2025-11-20 05:05:57] Production.ERROR: pbx prc_insertCDR start [2025-11-20 05:05:57] Production.ERROR: pbx prc_insertCDR end [2025-11-20 05:05:57] Production.INFO: ==29406== Releasing lock... [2025-11-20 05:05:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 05:05:57] Production.INFO: 29.25 MB #Memory Used# [2025-11-20 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 03:00:06 [end_date_ymd] => 2025-11-20 06:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 03:00:06' and `end` < '2025-11-20 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-20 06:00:18] Production.INFO: count ==152 [2025-11-20 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-20 03:00:06 - End Time 2025-11-20 06:00:06 [2025-11-20 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234192', 'tblTempUsageDetail_20' ) start [2025-11-20 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234192', 'tblTempUsageDetail_20' ) end [2025-11-20 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234192', 'tblTempVendorCDR_20' ) start [2025-11-20 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234192', 'tblTempVendorCDR_20' ) end [2025-11-20 06:00:18] Production.INFO: ProcessCDR(1,16234192,1,1,2) [2025-11-20 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16234192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 06:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16234192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 06:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16234192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 06:05:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16234192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 06:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234192', 'tblTempUsageDetail_20' ) start [2025-11-20 06:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234192', 'tblTempUsageDetail_20' ) end [2025-11-20 06:05:56] Production.ERROR: pbx prc_insertCDR start [2025-11-20 06:05:56] Production.ERROR: pbx prc_insertCDR end [2025-11-20 06:05:56] Production.INFO: ==2039== Releasing lock... [2025-11-20 06:05:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 06:05:56] Production.INFO: 29.5 MB #Memory Used# [2025-11-20 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 04:00:06 [end_date_ymd] => 2025-11-20 07:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 04:00:06' and `end` < '2025-11-20 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-20 07:00:18] Production.INFO: count ==112 [2025-11-20 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-20 04:00:06 - End Time 2025-11-20 07:00:06 [2025-11-20 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234438', 'tblTempUsageDetail_20' ) start [2025-11-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234438', 'tblTempUsageDetail_20' ) end [2025-11-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234438', 'tblTempVendorCDR_20' ) start [2025-11-20 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234438', 'tblTempVendorCDR_20' ) end [2025-11-20 07:00:18] Production.INFO: ProcessCDR(1,16234438,1,1,2) [2025-11-20 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16234438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 07:02:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16234438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 07:02:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16234438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 07:06:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16234438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 07:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234438', 'tblTempUsageDetail_20' ) start [2025-11-20 07:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234438', 'tblTempUsageDetail_20' ) end [2025-11-20 07:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-20 07:06:18] Production.ERROR: pbx prc_insertCDR end [2025-11-20 07:06:18] Production.INFO: ==6440== Releasing lock... [2025-11-20 07:06:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 07:06:18] Production.INFO: 28.75 MB #Memory Used# [2025-11-20 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 05:00:06 [end_date_ymd] => 2025-11-20 08:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 05:00:06' and `end` < '2025-11-20 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-20 08:00:18] Production.INFO: count ==312 [2025-11-20 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 05:00:06 - End Time 2025-11-20 08:00:06 [2025-11-20 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234686', 'tblTempUsageDetail_20' ) start [2025-11-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234686', 'tblTempUsageDetail_20' ) end [2025-11-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234686', 'tblTempVendorCDR_20' ) start [2025-11-20 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234686', 'tblTempVendorCDR_20' ) end [2025-11-20 08:00:19] Production.INFO: ProcessCDR(1,16234686,1,1,2) [2025-11-20 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16234686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 08:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16234686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 08:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16234686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 08:05:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16234686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 08:05:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234686', 'tblTempUsageDetail_20' ) start [2025-11-20 08:05:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234686', 'tblTempUsageDetail_20' ) end [2025-11-20 08:05:52] Production.ERROR: pbx prc_insertCDR start [2025-11-20 08:05:52] Production.ERROR: pbx prc_insertCDR end [2025-11-20 08:05:52] Production.INFO: ==10998== Releasing lock... [2025-11-20 08:05:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 08:05:52] Production.INFO: 31 MB #Memory Used# [2025-11-20 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 06:00:06 [end_date_ymd] => 2025-11-20 09:00:06 [RateCDR] => 1 ) [2025-11-20 09: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-20 06:00:06' and `end` < '2025-11-20 09: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-20 09:00:19] Production.INFO: count ==942 [2025-11-20 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 06:00:06 - End Time 2025-11-20 09:00:06 [2025-11-20 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234933', 'tblTempUsageDetail_20' ) start [2025-11-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16234933', 'tblTempUsageDetail_20' ) end [2025-11-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234933', 'tblTempVendorCDR_20' ) start [2025-11-20 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16234933', 'tblTempVendorCDR_20' ) end [2025-11-20 09:00:19] Production.INFO: ProcessCDR(1,16234933,1,1,2) [2025-11-20 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16234933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 09:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16234933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 09:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16234933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 09:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16234933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 09:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234933', 'tblTempUsageDetail_20' ) start [2025-11-20 09:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16234933', 'tblTempUsageDetail_20' ) end [2025-11-20 09:06:29] Production.ERROR: pbx prc_insertCDR start [2025-11-20 09:06:30] Production.ERROR: pbx prc_insertCDR end [2025-11-20 09:06:30] Production.INFO: ==15690== Releasing lock... [2025-11-20 09:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 09:06:30] Production.INFO: 35.5 MB #Memory Used# [2025-11-20 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 07:00:06 [end_date_ymd] => 2025-11-20 10:00:06 [RateCDR] => 1 ) [2025-11-20 10: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-20 07:00:06' and `end` < '2025-11-20 10: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-20 10:00:20] Production.INFO: count ==2409 [2025-11-20 10:00:21] Production.ERROR: pbx CDR StartTime 2025-11-20 07:00:06 - End Time 2025-11-20 10:00:06 [2025-11-20 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235179', 'tblTempUsageDetail_20' ) start [2025-11-20 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235179', 'tblTempUsageDetail_20' ) end [2025-11-20 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235179', 'tblTempVendorCDR_20' ) start [2025-11-20 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235179', 'tblTempVendorCDR_20' ) end [2025-11-20 10:00:21] Production.INFO: ProcessCDR(1,16235179,1,1,2) [2025-11-20 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16235179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 10:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16235179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 10:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16235179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 10:06:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16235179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 10:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235179', 'tblTempUsageDetail_20' ) start [2025-11-20 10:06:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235179', 'tblTempUsageDetail_20' ) end [2025-11-20 10:06:01] Production.ERROR: pbx prc_insertCDR start [2025-11-20 10:06:04] Production.ERROR: pbx prc_insertCDR end [2025-11-20 10:06:04] Production.INFO: ==20101== Releasing lock... [2025-11-20 10:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 10:06:04] Production.INFO: 47 MB #Memory Used# [2025-11-20 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 08:00:06 [end_date_ymd] => 2025-11-20 11:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 08:00:06' and `end` < '2025-11-20 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-20 11:00:19] Production.INFO: count ==3887 [2025-11-20 11:00:21] Production.ERROR: pbx CDR StartTime 2025-11-20 08:00:06 - End Time 2025-11-20 11:00:06 [2025-11-20 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235427', 'tblTempUsageDetail_20' ) start [2025-11-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235427', 'tblTempUsageDetail_20' ) end [2025-11-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235427', 'tblTempVendorCDR_20' ) start [2025-11-20 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235427', 'tblTempVendorCDR_20' ) end [2025-11-20 11:00:21] Production.INFO: ProcessCDR(1,16235427,1,1,2) [2025-11-20 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16235427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16235427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16235427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16235427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235427', 'tblTempUsageDetail_20' ) start [2025-11-20 11:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235427', 'tblTempUsageDetail_20' ) end [2025-11-20 11:06:29] Production.ERROR: pbx prc_insertCDR start [2025-11-20 11:06:31] Production.ERROR: pbx prc_insertCDR end [2025-11-20 11:06:31] Production.INFO: ==24524== Releasing lock... [2025-11-20 11:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 11:06:31] Production.INFO: 57.25 MB #Memory Used# [2025-11-20 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 09:00:06 [end_date_ymd] => 2025-11-20 12:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 09:00:06' and `end` < '2025-11-20 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-20 12:00:19] Production.INFO: count ==5083 [2025-11-20 12:00:22] Production.ERROR: pbx CDR StartTime 2025-11-20 09:00:06 - End Time 2025-11-20 12:00:06 [2025-11-20 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235673', 'tblTempUsageDetail_20' ) start [2025-11-20 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235673', 'tblTempUsageDetail_20' ) end [2025-11-20 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235673', 'tblTempVendorCDR_20' ) start [2025-11-20 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235673', 'tblTempVendorCDR_20' ) end [2025-11-20 12:00:22] Production.INFO: ProcessCDR(1,16235673,1,1,2) [2025-11-20 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16235673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16235673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16235673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 12:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16235673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235673', 'tblTempUsageDetail_20' ) start [2025-11-20 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235673', 'tblTempUsageDetail_20' ) end [2025-11-20 12:06:33] Production.ERROR: pbx prc_insertCDR start [2025-11-20 12:06:35] Production.ERROR: pbx prc_insertCDR end [2025-11-20 12:06:35] Production.INFO: ==29098== Releasing lock... [2025-11-20 12:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 12:06:35] Production.INFO: 66.25 MB #Memory Used# [2025-11-20 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 10:00:06 [end_date_ymd] => 2025-11-20 13:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 10:00:06' and `end` < '2025-11-20 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-20 13:00:21] Production.INFO: count ==5246 [2025-11-20 13:00:24] Production.ERROR: pbx CDR StartTime 2025-11-20 10:00:06 - End Time 2025-11-20 13:00:06 [2025-11-20 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235921', 'tblTempUsageDetail_20' ) start [2025-11-20 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16235921', 'tblTempUsageDetail_20' ) end [2025-11-20 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235921', 'tblTempVendorCDR_20' ) start [2025-11-20 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16235921', 'tblTempVendorCDR_20' ) end [2025-11-20 13:00:24] Production.INFO: ProcessCDR(1,16235921,1,1,2) [2025-11-20 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16235921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 13:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16235921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 13:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16235921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 13:06:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16235921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 13:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235921', 'tblTempUsageDetail_20' ) start [2025-11-20 13:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16235921', 'tblTempUsageDetail_20' ) end [2025-11-20 13:06:43] Production.ERROR: pbx prc_insertCDR start [2025-11-20 13:06:46] Production.ERROR: pbx prc_insertCDR end [2025-11-20 13:06:46] Production.INFO: ==2379== Releasing lock... [2025-11-20 13:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 13:06:46] Production.INFO: 67.5 MB #Memory Used# [2025-11-20 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 11:00:06 [end_date_ymd] => 2025-11-20 14:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 11:00:06' and `end` < '2025-11-20 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-20 14:00:20] Production.INFO: count ==5192 [2025-11-20 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-20 11:00:06 - End Time 2025-11-20 14:00:06 [2025-11-20 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236167', 'tblTempUsageDetail_20' ) start [2025-11-20 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236167', 'tblTempUsageDetail_20' ) end [2025-11-20 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236167', 'tblTempVendorCDR_20' ) start [2025-11-20 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236167', 'tblTempVendorCDR_20' ) end [2025-11-20 14:00:23] Production.INFO: ProcessCDR(1,16236167,1,1,2) [2025-11-20 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16236167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 14:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16236167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 14:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16236167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 14:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16236167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 14:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236167', 'tblTempUsageDetail_20' ) start [2025-11-20 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236167', 'tblTempUsageDetail_20' ) end [2025-11-20 14:06:21] Production.ERROR: pbx prc_insertCDR start [2025-11-20 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-11-20 14:06:23] Production.INFO: ==7663== Releasing lock... [2025-11-20 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 14:06:23] Production.INFO: 67 MB #Memory Used# [2025-11-20 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 12:00:06 [end_date_ymd] => 2025-11-20 15:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 12:00:06' and `end` < '2025-11-20 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-20 15:00:19] Production.INFO: count ==4897 [2025-11-20 15:00:22] Production.ERROR: pbx CDR StartTime 2025-11-20 12:00:06 - End Time 2025-11-20 15:00:06 [2025-11-20 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236415', 'tblTempUsageDetail_20' ) start [2025-11-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236415', 'tblTempUsageDetail_20' ) end [2025-11-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236415', 'tblTempVendorCDR_20' ) start [2025-11-20 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236415', 'tblTempVendorCDR_20' ) end [2025-11-20 15:00:22] Production.INFO: ProcessCDR(1,16236415,1,1,2) [2025-11-20 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16236415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16236415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16236415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 15:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16236415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236415', 'tblTempUsageDetail_20' ) start [2025-11-20 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236415', 'tblTempUsageDetail_20' ) end [2025-11-20 15:06:38] Production.ERROR: pbx prc_insertCDR start [2025-11-20 15:06:40] Production.ERROR: pbx prc_insertCDR end [2025-11-20 15:06:40] Production.INFO: ==12065== Releasing lock... [2025-11-20 15:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 15:06:40] Production.INFO: 64.75 MB #Memory Used# [2025-11-20 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 13:00:07 [end_date_ymd] => 2025-11-20 16:00:07 [RateCDR] => 1 ) [2025-11-20 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-20 13:00:07' and `end` < '2025-11-20 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-20 16:00:24] Production.INFO: count ==4863 [2025-11-20 16:00:27] Production.ERROR: pbx CDR StartTime 2025-11-20 13:00:07 - End Time 2025-11-20 16:00:07 [2025-11-20 16:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236662', 'tblTempUsageDetail_20' ) start [2025-11-20 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236662', 'tblTempUsageDetail_20' ) end [2025-11-20 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236662', 'tblTempVendorCDR_20' ) start [2025-11-20 16:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236662', 'tblTempVendorCDR_20' ) end [2025-11-20 16:00:27] Production.INFO: ProcessCDR(1,16236662,1,1,2) [2025-11-20 16:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16236662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 16:03:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16236662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 16:03:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16236662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16236662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236662', 'tblTempUsageDetail_20' ) start [2025-11-20 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236662', 'tblTempUsageDetail_20' ) end [2025-11-20 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-20 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-11-20 16:06:24] Production.INFO: ==16535== Releasing lock... [2025-11-20 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 16:06:24] Production.INFO: 64.5 MB #Memory Used# [2025-11-20 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 14:00:07 [end_date_ymd] => 2025-11-20 17:00:07 [RateCDR] => 1 ) [2025-11-20 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-20 14:00:07' and `end` < '2025-11-20 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-20 17:00:20] Production.INFO: count ==4999 [2025-11-20 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-20 14:00:07 - End Time 2025-11-20 17:00:07 [2025-11-20 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236908', 'tblTempUsageDetail_20' ) start [2025-11-20 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16236908', 'tblTempUsageDetail_20' ) end [2025-11-20 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236908', 'tblTempVendorCDR_20' ) start [2025-11-20 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16236908', 'tblTempVendorCDR_20' ) end [2025-11-20 17:00:23] Production.INFO: ProcessCDR(1,16236908,1,1,2) [2025-11-20 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16236908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 17:03:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16236908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 17:03:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16236908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16236908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236908', 'tblTempUsageDetail_20' ) start [2025-11-20 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16236908', 'tblTempUsageDetail_20' ) end [2025-11-20 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-20 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-11-20 17:06:25] Production.INFO: ==21347== Releasing lock... [2025-11-20 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 17:06:25] Production.INFO: 65.75 MB #Memory Used# [2025-11-20 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 15:00:06 [end_date_ymd] => 2025-11-20 18:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 15:00:06' and `end` < '2025-11-20 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-20 18:00:19] Production.INFO: count ==4657 [2025-11-20 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-20 15:00:06 - End Time 2025-11-20 18:00:06 [2025-11-20 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237153', 'tblTempUsageDetail_20' ) start [2025-11-20 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237153', 'tblTempUsageDetail_20' ) end [2025-11-20 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237153', 'tblTempVendorCDR_20' ) start [2025-11-20 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237153', 'tblTempVendorCDR_20' ) end [2025-11-20 18:00:21] Production.INFO: ProcessCDR(1,16237153,1,1,2) [2025-11-20 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16237153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 18:02:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16237153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 18:02:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16237153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 18:06:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16237153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 18:06:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237153', 'tblTempUsageDetail_20' ) start [2025-11-20 18:06:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237153', 'tblTempUsageDetail_20' ) end [2025-11-20 18:06:18] Production.ERROR: pbx prc_insertCDR start [2025-11-20 18:06:19] Production.ERROR: pbx prc_insertCDR end [2025-11-20 18:06:20] Production.INFO: ==25999== Releasing lock... [2025-11-20 18:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 18:06:20] Production.INFO: 63 MB #Memory Used# [2025-11-20 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 16:00:05 [end_date_ymd] => 2025-11-20 19:00:05 [RateCDR] => 1 ) [2025-11-20 19: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-20 16:00:05' and `end` < '2025-11-20 19: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-20 19:00:18] Production.INFO: count ==3973 [2025-11-20 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-20 16:00:05 - End Time 2025-11-20 19:00:05 [2025-11-20 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237399', 'tblTempUsageDetail_20' ) start [2025-11-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237399', 'tblTempUsageDetail_20' ) end [2025-11-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237399', 'tblTempVendorCDR_20' ) start [2025-11-20 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237399', 'tblTempVendorCDR_20' ) end [2025-11-20 19:00:20] Production.INFO: ProcessCDR(1,16237399,1,1,2) [2025-11-20 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16237399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 19:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16237399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 19:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16237399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 19:06:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16237399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 19:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237399', 'tblTempUsageDetail_20' ) start [2025-11-20 19:06:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237399', 'tblTempUsageDetail_20' ) end [2025-11-20 19:06:00] Production.ERROR: pbx prc_insertCDR start [2025-11-20 19:06:01] Production.ERROR: pbx prc_insertCDR end [2025-11-20 19:06:01] Production.INFO: ==31268== Releasing lock... [2025-11-20 19:06:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 19:06:01] Production.INFO: 57.75 MB #Memory Used# [2025-11-20 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 17:00:06 [end_date_ymd] => 2025-11-20 20:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 17:00:06' and `end` < '2025-11-20 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-20 20:00:18] Production.INFO: count ==2893 [2025-11-20 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 17:00:06 - End Time 2025-11-20 20:00:06 [2025-11-20 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237647', 'tblTempUsageDetail_20' ) start [2025-11-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237647', 'tblTempUsageDetail_20' ) end [2025-11-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237647', 'tblTempVendorCDR_20' ) start [2025-11-20 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237647', 'tblTempVendorCDR_20' ) end [2025-11-20 20:00:20] Production.INFO: ProcessCDR(1,16237647,1,1,2) [2025-11-20 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16237647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 20:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16237647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 20:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16237647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 20:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16237647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 20:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237647', 'tblTempUsageDetail_20' ) start [2025-11-20 20:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237647', 'tblTempUsageDetail_20' ) end [2025-11-20 20:06:27] Production.ERROR: pbx prc_insertCDR start [2025-11-20 20:06:28] Production.ERROR: pbx prc_insertCDR end [2025-11-20 20:06:28] Production.INFO: ==3635== Releasing lock... [2025-11-20 20:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 20:06:28] Production.INFO: 51 MB #Memory Used# [2025-11-20 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 18:00:06 [end_date_ymd] => 2025-11-20 21:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 18:00:06' and `end` < '2025-11-20 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-20 21:00:18] Production.INFO: count ==2156 [2025-11-20 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 18:00:06 - End Time 2025-11-20 21:00:06 [2025-11-20 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237894', 'tblTempUsageDetail_20' ) start [2025-11-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16237894', 'tblTempUsageDetail_20' ) end [2025-11-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237894', 'tblTempVendorCDR_20' ) start [2025-11-20 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16237894', 'tblTempVendorCDR_20' ) end [2025-11-20 21:00:19] Production.INFO: ProcessCDR(1,16237894,1,1,2) [2025-11-20 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16237894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 21:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16237894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 21:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16237894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 21:06:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16237894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 21:06:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237894', 'tblTempUsageDetail_20' ) start [2025-11-20 21:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16237894', 'tblTempUsageDetail_20' ) end [2025-11-20 21:06:12] Production.ERROR: pbx prc_insertCDR start [2025-11-20 21:06:12] Production.ERROR: pbx prc_insertCDR end [2025-11-20 21:06:13] Production.INFO: ==8571== Releasing lock... [2025-11-20 21:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 21:06:13] Production.INFO: 44.25 MB #Memory Used# [2025-11-20 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 19:00:06 [end_date_ymd] => 2025-11-20 22:00:06 [RateCDR] => 1 ) [2025-11-20 22: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-20 19:00:06' and `end` < '2025-11-20 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-20 22:00:19] Production.INFO: count ==1600 [2025-11-20 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-20 19:00:06 - End Time 2025-11-20 22:00:06 [2025-11-20 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238141', 'tblTempUsageDetail_20' ) start [2025-11-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238141', 'tblTempUsageDetail_20' ) end [2025-11-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238141', 'tblTempVendorCDR_20' ) start [2025-11-20 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238141', 'tblTempVendorCDR_20' ) end [2025-11-20 22:00:19] Production.INFO: ProcessCDR(1,16238141,1,1,2) [2025-11-20 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16238141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 22:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16238141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 22:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16238141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 22:05:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16238141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 22:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238141', 'tblTempUsageDetail_20' ) start [2025-11-20 22:05:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238141', 'tblTempUsageDetail_20' ) end [2025-11-20 22:05:56] Production.ERROR: pbx prc_insertCDR start [2025-11-20 22:05:57] Production.ERROR: pbx prc_insertCDR end [2025-11-20 22:05:57] Production.INFO: ==13011== Releasing lock... [2025-11-20 22:05:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 22:05:57] Production.INFO: 40.25 MB #Memory Used# [2025-11-20 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-20 20:00:06 [end_date_ymd] => 2025-11-20 23:00:06 [RateCDR] => 1 ) [2025-11-20 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-20 20:00:06' and `end` < '2025-11-20 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-20 23:00:18] Production.INFO: count ==1249 [2025-11-20 23:00:18] Production.ERROR: pbx CDR StartTime 2025-11-20 20:00:06 - End Time 2025-11-20 23:00:06 [2025-11-20 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238388', 'tblTempUsageDetail_20' ) start [2025-11-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16238388', 'tblTempUsageDetail_20' ) end [2025-11-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238388', 'tblTempVendorCDR_20' ) start [2025-11-20 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16238388', 'tblTempVendorCDR_20' ) end [2025-11-20 23:00:18] Production.INFO: ProcessCDR(1,16238388,1,1,2) [2025-11-20 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16238388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 23:02:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16238388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-20 23:02:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16238388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 23:06:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16238388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-20 23:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238388', 'tblTempUsageDetail_20' ) start [2025-11-20 23:06:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16238388', 'tblTempUsageDetail_20' ) end [2025-11-20 23:06:03] Production.ERROR: pbx prc_insertCDR start [2025-11-20 23:06:04] Production.ERROR: pbx prc_insertCDR end [2025-11-20 23:06:04] Production.INFO: ==17320== Releasing lock... [2025-11-20 23:06:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-20 23:06:04] Production.INFO: 37.75 MB #Memory Used#