[2025-11-18 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 21:00:07 [end_date_ymd] => 2025-11-18 00:00:07 [RateCDR] => 1 ) [2025-11-18 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-17 21:00:07' and `end` < '2025-11-18 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-18 00:00:20] Production.INFO: count ==862 [2025-11-18 00:00:20] Production.ERROR: pbx CDR StartTime 2025-11-17 21:00:07 - End Time 2025-11-18 00:00:07 [2025-11-18 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220853', 'tblTempUsageDetail_20' ) start [2025-11-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220853', 'tblTempUsageDetail_20' ) end [2025-11-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220853', 'tblTempVendorCDR_20' ) start [2025-11-18 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220853', 'tblTempVendorCDR_20' ) end [2025-11-18 00:00:20] Production.INFO: ProcessCDR(1,16220853,1,1,2) [2025-11-18 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16220853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16220853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16220853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 00:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16220853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220853', 'tblTempUsageDetail_20' ) start [2025-11-18 00:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220853', 'tblTempUsageDetail_20' ) end [2025-11-18 00:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-18 00:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-18 00:00:36] Production.INFO: ==23355== Releasing lock... [2025-11-18 00:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 00:00:36] Production.INFO: 37.75 MB #Memory Used# [2025-11-18 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 22:00:06 [end_date_ymd] => 2025-11-18 01:00:06 [RateCDR] => 1 ) [2025-11-18 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-17 22:00:06' and `end` < '2025-11-18 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-18 01:00:18] Production.INFO: count ==490 [2025-11-18 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-17 22:00:06 - End Time 2025-11-18 01:00:06 [2025-11-18 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221099', 'tblTempUsageDetail_20' ) start [2025-11-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221099', 'tblTempUsageDetail_20' ) end [2025-11-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221099', 'tblTempVendorCDR_20' ) start [2025-11-18 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221099', 'tblTempVendorCDR_20' ) end [2025-11-18 01:00:18] Production.INFO: ProcessCDR(1,16221099,1,1,2) [2025-11-18 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16221099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16221099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16221099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16221099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221099', 'tblTempUsageDetail_20' ) start [2025-11-18 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221099', 'tblTempUsageDetail_20' ) end [2025-11-18 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-18 01:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-18 01:00:29] Production.INFO: ==28053== Releasing lock... [2025-11-18 01:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 01:00:29] Production.INFO: 32.25 MB #Memory Used# [2025-11-18 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 23:00:06 [end_date_ymd] => 2025-11-18 02:00:06 [RateCDR] => 1 ) [2025-11-18 02: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-17 23:00:06' and `end` < '2025-11-18 02: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-18 02:00:18] Production.INFO: count ==414 [2025-11-18 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 23:00:06 - End Time 2025-11-18 02:00:06 [2025-11-18 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221347', 'tblTempUsageDetail_20' ) start [2025-11-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221347', 'tblTempUsageDetail_20' ) end [2025-11-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221347', 'tblTempVendorCDR_20' ) start [2025-11-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221347', 'tblTempVendorCDR_20' ) end [2025-11-18 02:00:19] Production.INFO: ProcessCDR(1,16221347,1,1,2) [2025-11-18 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16221347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 02:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16221347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 02:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16221347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16221347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221347', 'tblTempUsageDetail_20' ) start [2025-11-18 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221347', 'tblTempUsageDetail_20' ) end [2025-11-18 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-18 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-18 02:00:30] Production.INFO: ==427== Releasing lock... [2025-11-18 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 02:00:30] Production.INFO: 31.75 MB #Memory Used# [2025-11-18 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 00:00:05 [end_date_ymd] => 2025-11-18 03:00:05 [RateCDR] => 1 ) [2025-11-18 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-18 00:00:05' and `end` < '2025-11-18 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-18 03:00:18] Production.INFO: count ==328 [2025-11-18 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-18 00:00:05 - End Time 2025-11-18 03:00:05 [2025-11-18 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221594', 'tblTempUsageDetail_20' ) start [2025-11-18 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221594', 'tblTempUsageDetail_20' ) end [2025-11-18 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221594', 'tblTempVendorCDR_20' ) start [2025-11-18 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221594', 'tblTempVendorCDR_20' ) end [2025-11-18 03:00:18] Production.INFO: ProcessCDR(1,16221594,1,1,2) [2025-11-18 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16221594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16221594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16221594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16221594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221594', 'tblTempUsageDetail_20' ) start [2025-11-18 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221594', 'tblTempUsageDetail_20' ) end [2025-11-18 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-18 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-18 03:00:28] Production.INFO: ==5288== Releasing lock... [2025-11-18 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 03:00:28] Production.INFO: 31.25 MB #Memory Used# [2025-11-18 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 01:00:06 [end_date_ymd] => 2025-11-18 04:00:06 [RateCDR] => 1 ) [2025-11-18 04: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-18 01:00:06' and `end` < '2025-11-18 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-18 04:00:18] Production.INFO: count ==209 [2025-11-18 04:00:18] Production.ERROR: pbx CDR StartTime 2025-11-18 01:00:06 - End Time 2025-11-18 04:00:06 [2025-11-18 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221842', 'tblTempUsageDetail_20' ) start [2025-11-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16221842', 'tblTempUsageDetail_20' ) end [2025-11-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221842', 'tblTempVendorCDR_20' ) start [2025-11-18 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16221842', 'tblTempVendorCDR_20' ) end [2025-11-18 04:00:18] Production.INFO: ProcessCDR(1,16221842,1,1,2) [2025-11-18 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16221842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16221842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16221842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16221842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221842', 'tblTempUsageDetail_20' ) start [2025-11-18 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16221842', 'tblTempUsageDetail_20' ) end [2025-11-18 04:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-18 04:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-18 04:00:28] Production.INFO: ==9894== Releasing lock... [2025-11-18 04:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 04:00:28] Production.INFO: 30.25 MB #Memory Used# [2025-11-18 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 02:00:07 [end_date_ymd] => 2025-11-18 05:00:07 [RateCDR] => 1 ) [2025-11-18 05: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-18 02:00:07' and `end` < '2025-11-18 05: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-18 05:00:20] Production.INFO: count ==145 [2025-11-18 05:00:20] Production.ERROR: pbx CDR StartTime 2025-11-18 02:00:07 - End Time 2025-11-18 05:00:07 [2025-11-18 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222090', 'tblTempUsageDetail_20' ) start [2025-11-18 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222090', 'tblTempUsageDetail_20' ) end [2025-11-18 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222090', 'tblTempVendorCDR_20' ) start [2025-11-18 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222090', 'tblTempVendorCDR_20' ) end [2025-11-18 05:00:20] Production.INFO: ProcessCDR(1,16222090,1,1,2) [2025-11-18 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16222090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16222090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16222090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16222090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222090', 'tblTempUsageDetail_20' ) start [2025-11-18 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222090', 'tblTempUsageDetail_20' ) end [2025-11-18 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-11-18 05:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-18 05:00:27] Production.INFO: ==14417== Releasing lock... [2025-11-18 05:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 05:00:27] Production.INFO: 29.75 MB #Memory Used# [2025-11-18 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 03:00:06 [end_date_ymd] => 2025-11-18 06:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 03:00:06' and `end` < '2025-11-18 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-18 06:00:18] Production.INFO: count ==85 [2025-11-18 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-18 03:00:06 - End Time 2025-11-18 06:00:06 [2025-11-18 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222336', 'tblTempUsageDetail_20' ) start [2025-11-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222336', 'tblTempUsageDetail_20' ) end [2025-11-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222336', 'tblTempVendorCDR_20' ) start [2025-11-18 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222336', 'tblTempVendorCDR_20' ) end [2025-11-18 06:00:18] Production.INFO: ProcessCDR(1,16222336,1,1,2) [2025-11-18 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16222336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16222336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16222336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16222336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222336', 'tblTempUsageDetail_20' ) start [2025-11-18 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222336', 'tblTempUsageDetail_20' ) end [2025-11-18 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-18 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-18 06:00:29] Production.INFO: ==19938== Releasing lock... [2025-11-18 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 06:00:29] Production.INFO: 28.5 MB #Memory Used# [2025-11-18 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 04:00:06 [end_date_ymd] => 2025-11-18 07:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 04:00:06' and `end` < '2025-11-18 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-18 07:00:18] Production.INFO: count ==83 [2025-11-18 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-18 04:00:06 - End Time 2025-11-18 07:00:06 [2025-11-18 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222584', 'tblTempUsageDetail_20' ) start [2025-11-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222584', 'tblTempUsageDetail_20' ) end [2025-11-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222584', 'tblTempVendorCDR_20' ) start [2025-11-18 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222584', 'tblTempVendorCDR_20' ) end [2025-11-18 07:00:18] Production.INFO: ProcessCDR(1,16222584,1,1,2) [2025-11-18 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16222584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16222584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16222584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16222584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222584', 'tblTempUsageDetail_20' ) start [2025-11-18 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222584', 'tblTempUsageDetail_20' ) end [2025-11-18 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-18 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-18 07:00:28] Production.INFO: ==24761== Releasing lock... [2025-11-18 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 07:00:28] Production.INFO: 28.25 MB #Memory Used# [2025-11-18 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 05:00:07 [end_date_ymd] => 2025-11-18 08:00:07 [RateCDR] => 1 ) [2025-11-18 08: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-18 05:00:07' and `end` < '2025-11-18 08: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-18 08:00:19] Production.INFO: count ==147 [2025-11-18 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-18 05:00:07 - End Time 2025-11-18 08:00:07 [2025-11-18 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222831', 'tblTempUsageDetail_20' ) start [2025-11-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16222831', 'tblTempUsageDetail_20' ) end [2025-11-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222831', 'tblTempVendorCDR_20' ) start [2025-11-18 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16222831', 'tblTempVendorCDR_20' ) end [2025-11-18 08:00:19] Production.INFO: ProcessCDR(1,16222831,1,1,2) [2025-11-18 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16222831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 08:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16222831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 08:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16222831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16222831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222831', 'tblTempUsageDetail_20' ) start [2025-11-18 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16222831', 'tblTempUsageDetail_20' ) end [2025-11-18 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-18 08:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-18 08:00:29] Production.INFO: ==29120== Releasing lock... [2025-11-18 08:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 08:00:29] Production.INFO: 29.5 MB #Memory Used# [2025-11-18 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 06:00:06 [end_date_ymd] => 2025-11-18 09:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 06:00:06' and `end` < '2025-11-18 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-18 09:00:18] Production.INFO: count ==787 [2025-11-18 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-18 06:00:06 - End Time 2025-11-18 09:00:06 [2025-11-18 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223078', 'tblTempUsageDetail_20' ) start [2025-11-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223078', 'tblTempUsageDetail_20' ) end [2025-11-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223078', 'tblTempVendorCDR_20' ) start [2025-11-18 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223078', 'tblTempVendorCDR_20' ) end [2025-11-18 09:00:19] Production.INFO: ProcessCDR(1,16223078,1,1,2) [2025-11-18 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16223078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16223078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16223078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 09:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16223078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 09:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223078', 'tblTempUsageDetail_20' ) start [2025-11-18 09:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223078', 'tblTempUsageDetail_20' ) end [2025-11-18 09:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-18 09:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-18 09:00:30] Production.INFO: ==1276== Releasing lock... [2025-11-18 09:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 09:00:30] Production.INFO: 33.5 MB #Memory Used# [2025-11-18 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 07:00:06 [end_date_ymd] => 2025-11-18 10:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 07:00:06' and `end` < '2025-11-18 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-18 10:00:19] Production.INFO: count ==2258 [2025-11-18 10:00:20] Production.ERROR: pbx CDR StartTime 2025-11-18 07:00:06 - End Time 2025-11-18 10:00:06 [2025-11-18 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223325', 'tblTempUsageDetail_20' ) start [2025-11-18 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223325', 'tblTempUsageDetail_20' ) end [2025-11-18 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223325', 'tblTempVendorCDR_20' ) start [2025-11-18 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223325', 'tblTempVendorCDR_20' ) end [2025-11-18 10:00:21] Production.INFO: ProcessCDR(1,16223325,1,1,2) [2025-11-18 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16223325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16223325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16223325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 10:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16223325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223325', 'tblTempUsageDetail_20' ) start [2025-11-18 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223325', 'tblTempUsageDetail_20' ) end [2025-11-18 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-18 10:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-18 10:00:34] Production.INFO: ==7427== Releasing lock... [2025-11-18 10:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 10:00:34] Production.INFO: 45.25 MB #Memory Used# [2025-11-18 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 08:00:06 [end_date_ymd] => 2025-11-18 11:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 08:00:06' and `end` < '2025-11-18 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-18 11:00:20] Production.INFO: count ==3912 [2025-11-18 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-18 08:00:06 - End Time 2025-11-18 11:00:06 [2025-11-18 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223572', 'tblTempUsageDetail_20' ) start [2025-11-18 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223572', 'tblTempUsageDetail_20' ) end [2025-11-18 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223572', 'tblTempVendorCDR_20' ) start [2025-11-18 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223572', 'tblTempVendorCDR_20' ) end [2025-11-18 11:00:22] Production.INFO: ProcessCDR(1,16223572,1,1,2) [2025-11-18 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16223572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16223572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16223572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 11:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16223572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223572', 'tblTempUsageDetail_20' ) start [2025-11-18 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223572', 'tblTempUsageDetail_20' ) end [2025-11-18 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-18 11:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-18 11:00:36] Production.INFO: ==12274== Releasing lock... [2025-11-18 11:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 11:00:36] Production.INFO: 57.5 MB #Memory Used# [2025-11-18 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 09:00:06 [end_date_ymd] => 2025-11-18 12:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 09:00:06' and `end` < '2025-11-18 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-18 12:00:21] Production.INFO: count ==5283 [2025-11-18 12:00:24] Production.ERROR: pbx CDR StartTime 2025-11-18 09:00:06 - End Time 2025-11-18 12:00:06 [2025-11-18 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223818', 'tblTempUsageDetail_20' ) start [2025-11-18 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16223818', 'tblTempUsageDetail_20' ) end [2025-11-18 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223818', 'tblTempVendorCDR_20' ) start [2025-11-18 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16223818', 'tblTempVendorCDR_20' ) end [2025-11-18 12:00:24] Production.INFO: ProcessCDR(1,16223818,1,1,2) [2025-11-18 12:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16223818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16223818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16223818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16223818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223818', 'tblTempUsageDetail_20' ) start [2025-11-18 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16223818', 'tblTempUsageDetail_20' ) end [2025-11-18 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-18 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-18 12:00:39] Production.INFO: ==16936== Releasing lock... [2025-11-18 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 12:00:39] Production.INFO: 67.75 MB #Memory Used# [2025-11-18 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 10:00:06 [end_date_ymd] => 2025-11-18 13:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 10:00:06' and `end` < '2025-11-18 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-18 13:00:20] Production.INFO: count ==5627 [2025-11-18 13:00:22] Production.ERROR: pbx CDR StartTime 2025-11-18 10:00:06 - End Time 2025-11-18 13:00:06 [2025-11-18 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224066', 'tblTempUsageDetail_20' ) start [2025-11-18 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224066', 'tblTempUsageDetail_20' ) end [2025-11-18 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224066', 'tblTempVendorCDR_20' ) start [2025-11-18 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224066', 'tblTempVendorCDR_20' ) end [2025-11-18 13:00:23] Production.INFO: ProcessCDR(1,16224066,1,1,2) [2025-11-18 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16224066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16224066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16224066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16224066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224066', 'tblTempUsageDetail_20' ) start [2025-11-18 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224066', 'tblTempUsageDetail_20' ) end [2025-11-18 13:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-18 13:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-18 13:00:37] Production.INFO: ==21680== Releasing lock... [2025-11-18 13:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 13:00:37] Production.INFO: 70.25 MB #Memory Used# [2025-11-18 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 11:00:05 [end_date_ymd] => 2025-11-18 14:00:05 [RateCDR] => 1 ) [2025-11-18 14: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-18 11:00:05' and `end` < '2025-11-18 14: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-18 14:00:22] Production.INFO: count ==5557 [2025-11-18 14:00:25] Production.ERROR: pbx CDR StartTime 2025-11-18 11:00:05 - End Time 2025-11-18 14:00:05 [2025-11-18 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224312', 'tblTempUsageDetail_20' ) start [2025-11-18 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224312', 'tblTempUsageDetail_20' ) end [2025-11-18 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224312', 'tblTempVendorCDR_20' ) start [2025-11-18 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224312', 'tblTempVendorCDR_20' ) end [2025-11-18 14:00:25] Production.INFO: ProcessCDR(1,16224312,1,1,2) [2025-11-18 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16224312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 14:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16224312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 14:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16224312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 14:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16224312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224312', 'tblTempUsageDetail_20' ) start [2025-11-18 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224312', 'tblTempUsageDetail_20' ) end [2025-11-18 14:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-18 14:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-18 14:00:39] Production.INFO: ==26231== Releasing lock... [2025-11-18 14:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 14:00:39] Production.INFO: 69.75 MB #Memory Used# [2025-11-18 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 12:00:06 [end_date_ymd] => 2025-11-18 15:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 12:00:06' and `end` < '2025-11-18 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-18 15:00:20] Production.INFO: count ==5229 [2025-11-18 15:00:22] Production.ERROR: pbx CDR StartTime 2025-11-18 12:00:06 - End Time 2025-11-18 15:00:06 [2025-11-18 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224560', 'tblTempUsageDetail_20' ) start [2025-11-18 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224560', 'tblTempUsageDetail_20' ) end [2025-11-18 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224560', 'tblTempVendorCDR_20' ) start [2025-11-18 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224560', 'tblTempVendorCDR_20' ) end [2025-11-18 15:00:23] Production.INFO: ProcessCDR(1,16224560,1,1,2) [2025-11-18 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16224560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16224560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16224560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16224560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224560', 'tblTempUsageDetail_20' ) start [2025-11-18 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224560', 'tblTempUsageDetail_20' ) end [2025-11-18 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-18 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-18 15:00:38] Production.INFO: ==31220== Releasing lock... [2025-11-18 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 15:00:38] Production.INFO: 67.25 MB #Memory Used# [2025-11-18 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 13:00:06 [end_date_ymd] => 2025-11-18 16:00:06 [RateCDR] => 1 ) [2025-11-18 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-18 13:00:06' and `end` < '2025-11-18 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-18 16:00:23] Production.INFO: count ==5479 [2025-11-18 16:00:25] Production.ERROR: pbx CDR StartTime 2025-11-18 13:00:06 - End Time 2025-11-18 16:00:06 [2025-11-18 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224807', 'tblTempUsageDetail_20' ) start [2025-11-18 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16224807', 'tblTempUsageDetail_20' ) end [2025-11-18 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224807', 'tblTempVendorCDR_20' ) start [2025-11-18 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16224807', 'tblTempVendorCDR_20' ) end [2025-11-18 16:00:26] Production.INFO: ProcessCDR(1,16224807,1,1,2) [2025-11-18 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16224807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16224807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16224807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16224807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224807', 'tblTempUsageDetail_20' ) start [2025-11-18 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16224807', 'tblTempUsageDetail_20' ) end [2025-11-18 16:00:38] Production.ERROR: pbx prc_insertCDR start [2025-11-18 16:00:41] Production.ERROR: pbx prc_insertCDR end [2025-11-18 16:00:41] Production.INFO: ==3257== Releasing lock... [2025-11-18 16:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 16:00:41] Production.INFO: 69.25 MB #Memory Used# [2025-11-18 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 14:00:06 [end_date_ymd] => 2025-11-18 17:00:06 [RateCDR] => 1 ) [2025-11-18 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-18 14:00:06' and `end` < '2025-11-18 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-18 17:00:22] Production.INFO: count ==5538 [2025-11-18 17:00:24] Production.ERROR: pbx CDR StartTime 2025-11-18 14:00:06 - End Time 2025-11-18 17:00:06 [2025-11-18 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225054', 'tblTempUsageDetail_20' ) start [2025-11-18 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225054', 'tblTempUsageDetail_20' ) end [2025-11-18 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225054', 'tblTempVendorCDR_20' ) start [2025-11-18 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225054', 'tblTempVendorCDR_20' ) end [2025-11-18 17:00:25] Production.INFO: ProcessCDR(1,16225054,1,1,2) [2025-11-18 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16225054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 17:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16225054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 17:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16225054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16225054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225054', 'tblTempUsageDetail_20' ) start [2025-11-18 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225054', 'tblTempUsageDetail_20' ) end [2025-11-18 17:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-18 17:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-18 17:00:39] Production.INFO: ==7856== Releasing lock... [2025-11-18 17:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 17:00:39] Production.INFO: 69.75 MB #Memory Used# [2025-11-18 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 15:00:06 [end_date_ymd] => 2025-11-18 18:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 15:00:06' and `end` < '2025-11-18 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-18 18:00:19] Production.INFO: count ==4911 [2025-11-18 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-18 15:00:06 - End Time 2025-11-18 18:00:06 [2025-11-18 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225298', 'tblTempUsageDetail_20' ) start [2025-11-18 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225298', 'tblTempUsageDetail_20' ) end [2025-11-18 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225298', 'tblTempVendorCDR_20' ) start [2025-11-18 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225298', 'tblTempVendorCDR_20' ) end [2025-11-18 18:00:22] Production.INFO: ProcessCDR(1,16225298,1,1,2) [2025-11-18 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16225298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16225298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16225298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 18:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16225298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225298', 'tblTempUsageDetail_20' ) start [2025-11-18 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225298', 'tblTempUsageDetail_20' ) end [2025-11-18 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-18 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-18 18:00:34] Production.INFO: ==12540== Releasing lock... [2025-11-18 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 18:00:34] Production.INFO: 65 MB #Memory Used# [2025-11-18 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 16:00:06 [end_date_ymd] => 2025-11-18 19:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 16:00:06' and `end` < '2025-11-18 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-18 19:00:19] Production.INFO: count ==3549 [2025-11-18 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-18 16:00:06 - End Time 2025-11-18 19:00:06 [2025-11-18 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225545', 'tblTempUsageDetail_20' ) start [2025-11-18 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225545', 'tblTempUsageDetail_20' ) end [2025-11-18 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225545', 'tblTempVendorCDR_20' ) start [2025-11-18 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225545', 'tblTempVendorCDR_20' ) end [2025-11-18 19:00:21] Production.INFO: ProcessCDR(1,16225545,1,1,2) [2025-11-18 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16225545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16225545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16225545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16225545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225545', 'tblTempUsageDetail_20' ) start [2025-11-18 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225545', 'tblTempUsageDetail_20' ) end [2025-11-18 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-18 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-18 19:00:33] Production.INFO: ==17505== Releasing lock... [2025-11-18 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 19:00:33] Production.INFO: 54.75 MB #Memory Used# [2025-11-18 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 17:00:05 [end_date_ymd] => 2025-11-18 20:00:05 [RateCDR] => 1 ) [2025-11-18 20: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-18 17:00:05' and `end` < '2025-11-18 20: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-18 20:00:17] Production.INFO: count ==2254 [2025-11-18 20:00:18] Production.ERROR: pbx CDR StartTime 2025-11-18 17:00:05 - End Time 2025-11-18 20:00:05 [2025-11-18 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225792', 'tblTempUsageDetail_20' ) start [2025-11-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16225792', 'tblTempUsageDetail_20' ) end [2025-11-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225792', 'tblTempVendorCDR_20' ) start [2025-11-18 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16225792', 'tblTempVendorCDR_20' ) end [2025-11-18 20:00:18] Production.INFO: ProcessCDR(1,16225792,1,1,2) [2025-11-18 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16225792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16225792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16225792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 20:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16225792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 20:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225792', 'tblTempUsageDetail_20' ) start [2025-11-18 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16225792', 'tblTempUsageDetail_20' ) end [2025-11-18 20:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-18 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-18 20:00:30] Production.INFO: ==22182== Releasing lock... [2025-11-18 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 20:00:30] Production.INFO: 45 MB #Memory Used# [2025-11-18 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 18:00:06 [end_date_ymd] => 2025-11-18 21:00:06 [RateCDR] => 1 ) [2025-11-18 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-18 18:00:06' and `end` < '2025-11-18 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-18 21:00:18] Production.INFO: count ==1725 [2025-11-18 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-18 18:00:06 - End Time 2025-11-18 21:00:06 [2025-11-18 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226039', 'tblTempUsageDetail_20' ) start [2025-11-18 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226039', 'tblTempUsageDetail_20' ) end [2025-11-18 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226039', 'tblTempVendorCDR_20' ) start [2025-11-18 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226039', 'tblTempVendorCDR_20' ) end [2025-11-18 21:00:19] Production.INFO: ProcessCDR(1,16226039,1,1,2) [2025-11-18 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16226039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16226039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16226039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16226039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226039', 'tblTempUsageDetail_20' ) start [2025-11-18 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226039', 'tblTempUsageDetail_20' ) end [2025-11-18 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-18 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-18 21:00:31] Production.INFO: ==27924== Releasing lock... [2025-11-18 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 21:00:31] Production.INFO: 41 MB #Memory Used# [2025-11-18 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 19:00:07 [end_date_ymd] => 2025-11-18 22:00:07 [RateCDR] => 1 ) [2025-11-18 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-18 19:00:07' and `end` < '2025-11-18 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-18 22:00:19] Production.INFO: count ==1238 [2025-11-18 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-18 19:00:07 - End Time 2025-11-18 22:00:07 [2025-11-18 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226286', 'tblTempUsageDetail_20' ) start [2025-11-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226286', 'tblTempUsageDetail_20' ) end [2025-11-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226286', 'tblTempVendorCDR_20' ) start [2025-11-18 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226286', 'tblTempVendorCDR_20' ) end [2025-11-18 22:00:19] Production.INFO: ProcessCDR(1,16226286,1,1,2) [2025-11-18 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16226286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16226286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16226286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16226286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226286', 'tblTempUsageDetail_20' ) start [2025-11-18 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226286', 'tblTempUsageDetail_20' ) end [2025-11-18 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-18 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-18 22:00:30] Production.INFO: ==32482== Releasing lock... [2025-11-18 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 22:00:30] Production.INFO: 37.5 MB #Memory Used# [2025-11-18 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 20:00:05 [end_date_ymd] => 2025-11-18 23:00:05 [RateCDR] => 1 ) [2025-11-18 23: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-18 20:00:05' and `end` < '2025-11-18 23: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-18 23:00:18] Production.INFO: count ==1510 [2025-11-18 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-18 20:00:05 - End Time 2025-11-18 23:00:05 [2025-11-18 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-18 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226532', 'tblTempUsageDetail_20' ) start [2025-11-18 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226532', 'tblTempUsageDetail_20' ) end [2025-11-18 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226532', 'tblTempVendorCDR_20' ) start [2025-11-18 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226532', 'tblTempVendorCDR_20' ) end [2025-11-18 23:00:19] Production.INFO: ProcessCDR(1,16226532,1,1,2) [2025-11-18 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16226532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16226532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-18 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16226532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16226532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-18 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226532', 'tblTempUsageDetail_20' ) start [2025-11-18 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226532', 'tblTempUsageDetail_20' ) end [2025-11-18 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-18 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-18 23:00:29] Production.INFO: ==4572== Releasing lock... [2025-11-18 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-18 23:00:29] Production.INFO: 39.5 MB #Memory Used#